3 <script src=
"inspector-test.js"></script>
4 <script src=
"extensions-test.js"></script>
5 <script src=
"network/resources/random-script.php"></script>
7 <script type=
"text/javascript">
9 function extension_testIgnoreCache(nextTest
)
12 var afterReloadWithIgnoreCache
;
13 var afterNormalReload
;
15 function onNormalReload()
17 webInspector
.inspectedWindow
.eval("randomValue", function(value
) {
18 afterNormalReload
= value
;
19 evaluateOnFrontend("InspectorTest.runWhenPageLoads(reply)", onReloadWithIgnoreCache
);
20 webInspector
.inspectedWindow
.reload({ ignoreCache
: true });
24 function onReloadWithIgnoreCache()
26 webInspector
.inspectedWindow
.eval("randomValue", function(value
) {
27 afterReloadWithIgnoreCache
= value
;
28 output("afterNormalReload " + (afterNormalReload
=== beforeReload
? "===" : "!==" ) + " beforeReload");
29 output("afterNormalReload " + (afterNormalReload
=== afterReloadWithIgnoreCache
? "===" : "!==" ) + " afterReloadWithIgnoreCache");
34 webInspector
.inspectedWindow
.eval("randomValue", function(value
) {
36 evaluateOnFrontend("InspectorTest.runWhenPageLoads(reply)", onNormalReload
);
37 webInspector
.inspectedWindow
.reload();
43 <body onload=
"runTest()">
44 <p>Tests ignoreCache flag of WebInspector.inspectedPage.reload()
</p>