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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger/debug-inlined-scripts.html

Issue 2727373002: [DevTools] prepare tets for V8 roll (Closed)
Patch Set: rebased Created 3 years, 9 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 f1() { return 0; }; f1(); </script> <script>function f 2() { return 0; }</script><script> 3 <script> function f1() { return 0; }; f1(); </script> <script>function f 2() { return 0; }</script><script>
4 function f3() { return 0; } 4 function f3() { return 0; }
5 </script> 5 </script>
6 6
7 <script> 7 <script>
8 function f4() 8 function f4()
9 { 9 {
10 return 0; 10 return 0;
(...skipping 18 matching lines...) Expand all
29 } 29 }
30 30
31 function step1() 31 function step1()
32 { 32 {
33 InspectorTest.showScriptSource("debug-inlined-scripts.html", step2); 33 InspectorTest.showScriptSource("debug-inlined-scripts.html", step2);
34 } 34 }
35 35
36 function step2(sourceFrame) 36 function step2(sourceFrame)
37 { 37 {
38 InspectorTest.addResult("Script source was shown."); 38 InspectorTest.addResult("Script source was shown.");
39 InspectorTest.prepareSourceFrameForBreakpointTest(sourceFrame);
40
39 InspectorTest.setBreakpoint(sourceFrame, 2, "", true); 41 InspectorTest.setBreakpoint(sourceFrame, 2, "", true);
40 InspectorTest.setBreakpoint(sourceFrame, 9, "", true); 42 InspectorTest.setBreakpoint(sourceFrame, 9, "", true);
43
44 InspectorTest.waitJavaScriptSourceFrameBreakpoints(sourceFrame)
45 .then(() => {
46 InspectorTest.reloadPage(() => InspectorTest.completeDebuggerTes t());
47 });
48
41 InspectorTest.waitUntilPaused(step3); 49 InspectorTest.waitUntilPaused(step3);
42 InspectorTest.reloadPage(InspectorTest.completeDebuggerTest.bind(Inspect orTest));
43 } 50 }
44 51
45 function step3(callFrames) 52 function step3(callFrames)
46 { 53 {
47 InspectorTest.addResult("Script execution paused."); 54 InspectorTest.addResult("Script execution paused.");
48 InspectorTest.captureStackTrace(callFrames); 55 InspectorTest.captureStackTrace(callFrames);
49 InspectorTest.addResult("Call stack status: " + callstackStatus()); 56 InspectorTest.addResult("Call stack status: " + callstackStatus());
50 InspectorTest.showScriptSource("debug-inlined-scripts.html", step4); 57 InspectorTest.showScriptSource("debug-inlined-scripts.html", step4);
51 } 58 }
52 59
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 </head> 92 </head>
86 93
87 <body onload="runTest()"> 94 <body onload="runTest()">
88 <p> 95 <p>
89 Tests that all inlined scripts from the same document are shown in the same sour ce frame with html script tags. 96 Tests that all inlined scripts from the same document are shown in the same sour ce frame with html script tags.
90 <a href="https://bugs.webkit.org/show_bug.cgi?id=54544">Bug 54544.</a> 97 <a href="https://bugs.webkit.org/show_bug.cgi?id=54544">Bug 54544.</a>
91 </p> 98 </p>
92 99
93 </body> 100 </body>
94 </html> 101 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698