3 <script src=
"../../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../../http/tests/inspector/debugger-test.js"></script>
10 InspectorTest
.evaluateInPage("function foo() {} //# sourceURL=dummyScript.js", step1
);
14 InspectorTest
.startDebuggerTest(step2
);
19 InspectorTest
.queryScripts(function(script
) { step3({ data
: script
}) });
20 InspectorTest
.debuggerModel
.addEventListener(WebInspector
.DebuggerModel
.Events
.ParsedScriptSource
, step3
);
25 var script
= event
.data
;
26 if (script
.sourceURL
.indexOf("dummyScript.js") !== -1) {
27 InspectorTest
.addResult("Dummy script found: " + script
.sourceURL
);
28 // Let scripts dispatch and reload.
29 setTimeout(InspectorTest
.reloadPage
.bind(InspectorTest
, afterReload
), 0);
33 function afterReload()
35 var scripts
= InspectorTest
.queryScripts();
36 for (var i
= 0; i
< scripts
.length
; ++i
) {
37 if (scripts
[i
].sourceURL
.indexOf("dummyScript.js") !== -1)
38 InspectorTest
.addResult("FAILED: dummy script found after navigation");
40 InspectorTest
.completeDebuggerTest();
46 <body onload=
"runTest()">
48 Tests that scripts list is cleared upon page reload.