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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/pause-in-inline-script.html

Issue 2186753002: [DevTools] Track URL through the target (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed Created 4 years, 4 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script>function foo() { }; 3 <script>function foo() { };
4 </script> 4 </script>
5 <script> 5 <script>
6 function bar() { }; 6 function bar() { };
7 </script><script>function f1() { debugger; }</script> 7 </script><script>function f1() { debugger; }</script>
8 <script> 8 <script>
9 function f2() { return f1(); } 9 function f2() { return f1(); }
10 </script> 10 </script>
11 11
12 <script> 12 <script>
13 function f3() 13 function f3()
14 { 14 {
15 return f2(); 15 return f2();
16 } 16 }
17 f3(); 17 f3();
18 </script> 18 </script>
19 19
20 <script src="../../../http/tests/inspector/inspector-test.js"></script> 20 <script src="../../../http/tests/inspector/inspector-test.js"></script>
21 <script src="../../../http/tests/inspector/debugger-test.js"></script> 21 <script src="../../../http/tests/inspector/debugger-test.js"></script>
22 22
23 <script> 23 <script>
24 24
25 var test = function() 25 var test = function()
26 { 26 {
27 var testName = InspectorTest.resourceTreeModel.inspectedPageURL(); 27 var testName = InspectorTest.mainTarget.inspectedURL();
28 testName = testName.substring(testName.lastIndexOf('/') + 1); 28 testName = testName.substring(testName.lastIndexOf('/') + 1);
29 29
30 InspectorTest.startDebuggerTest(step1); 30 InspectorTest.startDebuggerTest(step1);
31 31
32 function step1() 32 function step1()
33 { 33 {
34 InspectorTest.addResult("Did load front-end"); 34 InspectorTest.addResult("Did load front-end");
35 InspectorTest.addResult("Paused: " + !!InspectorTest.debuggerModel.debug gerPausedDetails()); 35 InspectorTest.addResult("Paused: " + !!InspectorTest.debuggerModel.debug gerPausedDetails());
36 InspectorTest.reloadPage(didReload.bind(this)); 36 InspectorTest.reloadPage(didReload.bind(this));
37 InspectorTest.debuggerModel.addEventListener(WebInspector.DebuggerModel. Events.DebuggerPaused, didPauseAfterReload, this); 37 InspectorTest.debuggerModel.addEventListener(WebInspector.DebuggerModel. Events.DebuggerPaused, didPauseAfterReload, this);
38 } 38 }
39 39
40 function didReload() 40 function didReload()
41 { 41 {
42 InspectorTest.addResult("didReload"); 42 InspectorTest.addResult("didReload");
43 InspectorTest.completeDebuggerTest(); 43 InspectorTest.completeDebuggerTest();
44 } 44 }
45 45
46 function didPauseAfterReload(details) 46 function didPauseAfterReload(details)
47 { 47 {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 </head> 88 </head>
89 89
90 <body onload="runTest()"> 90 <body onload="runTest()">
91 <p> 91 <p>
92 Tests that main resource script text is correct when paused in inline script on reload. 92 Tests that main resource script text is correct when paused in inline script on reload.
93 <a href="https://bugs.webkit.org/show_bug.cgi?id=77548">Bug 77548.</a> 93 <a href="https://bugs.webkit.org/show_bug.cgi?id=77548">Bug 77548.</a>
94 </p> 94 </p>
95 95
96 </body> 96 </body>
97 </html> 97 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698