Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Side by Side Diff: LayoutTests/inspector/sources/debugger/debugger-scripts-reload.html

Issue 881263002: DevTools: use target-based model accessors only. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script> 4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 5
6 <script> 6 <script>
7 7
8 function test() 8 function test()
9 { 9 {
10 InspectorTest.evaluateInPage("function foo() {} //# sourceURL=dummyScript.js ", step1); 10 InspectorTest.evaluateInPage("function foo() {} //# sourceURL=dummyScript.js ", step1);
11 11
12 function step1() 12 function step1()
13 { 13 {
14 InspectorTest.startDebuggerTest(step2); 14 InspectorTest.startDebuggerTest(step2);
15 } 15 }
16 16
17 function step2() 17 function step2()
18 { 18 {
19 InspectorTest.queryScripts(function(script) { step3({ data: script }) }) ; 19 InspectorTest.queryScripts(function(script) { step3({ data: script }) }) ;
20 WebInspector.debuggerModel.addEventListener(WebInspector.DebuggerModel.E vents.ParsedScriptSource, step3); 20 InspectorTest.debuggerModel.addEventListener(WebInspector.DebuggerModel. Events.ParsedScriptSource, step3);
21 } 21 }
22 22
23 function step3(event) 23 function step3(event)
24 { 24 {
25 var script = event.data; 25 var script = event.data;
26 if (script.sourceURL.indexOf("dummyScript.js") !== -1) { 26 if (script.sourceURL.indexOf("dummyScript.js") !== -1) {
27 InspectorTest.addResult("Dummy script found: " + script.sourceURL); 27 InspectorTest.addResult("Dummy script found: " + script.sourceURL);
28 // Let scripts dispatch and reload. 28 // Let scripts dispatch and reload.
29 setTimeout(InspectorTest.reloadPage.bind(InspectorTest, afterReload) , 0); 29 setTimeout(InspectorTest.reloadPage.bind(InspectorTest, afterReload) , 0);
30 } 30 }
(...skipping 11 matching lines...) Expand all
42 42
43 } 43 }
44 </script> 44 </script>
45 </head> 45 </head>
46 <body onload="runTest()"> 46 <body onload="runTest()">
47 <p> 47 <p>
48 Tests that scripts list is cleared upon page reload. 48 Tests that scripts list is cleared upon page reload.
49 </p> 49 </p>
50 </body> 50 </body>
51 </html> 51 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698