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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-enabled/sources/debugger/script-formatter-breakpoints-1.html

Issue 1609973002: DevTools: promisify ContentProvider.requestContent and all its clients. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaseline Created 4 years, 11 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 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 <script src="../../../inspector/sources/debugger/resources/unformatted.js"></scr ipt> 5 <script src="../../../inspector/sources/debugger/resources/unformatted.js"></scr ipt>
6 6
7 <script> 7 <script>
8 8
9 function f1() 9 function f1()
10 { 10 {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 { 66 {
67 // There should be a breakpoint in f1 although script is pretty- printed. 67 // There should be a breakpoint in f1 although script is pretty- printed.
68 InspectorTest.waitUntilPaused(pausedInF1Again); 68 InspectorTest.waitUntilPaused(pausedInF1Again);
69 InspectorTest.evaluateInPageWithTimeout("f1()"); 69 InspectorTest.evaluateInPageWithTimeout("f1()");
70 } 70 }
71 71
72 function pausedInF1Again(callFrames) 72 function pausedInF1Again(callFrames)
73 { 73 {
74 InspectorTest.dumpBreakpointSidebarPane("while paused in pretty printed"); 74 InspectorTest.dumpBreakpointSidebarPane("while paused in pretty printed");
75 scriptFormatter._discardFormattedUISourceCodeScript(panel.visibl eView.uiSourceCode()); 75 scriptFormatter._discardFormattedUISourceCodeScript(panel.visibl eView.uiSourceCode());
76 InspectorTest.addSniffer(WebInspector.JavaScriptBreakpointsSideb arPane.prototype, "didReceiveBreakpointLineForTest", onBreakpointsUpdated);
77 }
78
79 function onBreakpointsUpdated()
80 {
76 InspectorTest.dumpBreakpointSidebarPane("while paused in raw"); 81 InspectorTest.dumpBreakpointSidebarPane("while paused in raw");
77 InspectorTest.removeBreakpoint(sourceFrame, 11); 82 InspectorTest.removeBreakpoint(sourceFrame, 11);
78 InspectorTest.resumeExecution(next); 83 InspectorTest.resumeExecution(next);
79 } 84 }
80 } 85 }
81 ]); 86 ]);
82 87
83 } 88 }
84 </script> 89 </script>
85 </head> 90 </head>
86 <body onload="onload()"> 91 <body onload="onload()">
87 <p>Tests the script formatting is working fine with breakpoints. 92 <p>Tests the script formatting is working fine with breakpoints.
88 </p> 93 </p>
89 </body> 94 </body>
90 </html> 95 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698