3 <script src=
"/js-test-resources/js-test.js"></script>
4 <iframe id='iframe'
></iframe>
6 description("Test that resources with fragment identifiers are loaded only once.");
8 window
.jsTestIsAsync
= true;
10 function CallCommand(cmd
)
13 var req
= new XMLHttpRequest
;
14 req
.open("GET", "/resources/network-simulator.php?command=" + cmd
, false);
16 return req
.responseText
;
22 function getResourceLog()
24 var log
= CallCommand("get-resource-request-log");
25 var logLines
= log
.split('\n');
26 debug("Resource Requeset Log:<br>");
27 debug(logLines
.join('<br>'));
33 document
.body
.removeChild(iframe
);
34 CallCommand("clear-resource-request-log");
38 CallCommand("start-resource-request-log");
39 var iframe
= document
.getElementById("iframe");
40 iframe
.addEventListener('load', function() { setTimeout(finishTest
, 0); });
41 iframe
.src
= 'resources/subresource-fragment-identifier-iframe.html';