Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / inspector / extensions-ignore-cache.html
blobe45f7877c27401271c348bf9c48f518b57eba3a5
1 <html>
2 <head>
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)
11 var beforeReload;
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 });
21 });
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");
30 nextTest();
31 });
34 webInspector.inspectedWindow.eval("randomValue", function(value) {
35 beforeReload = value;
36 evaluateOnFrontend("InspectorTest.runWhenPageLoads(reply)", onNormalReload);
37 webInspector.inspectedWindow.reload();
38 });
41 </script>
42 </head>
43 <body onload="runTest()">
44 <p>Tests ignoreCache flag of WebInspector.inspectedPage.reload()</p>
45 </body>
46 </html>