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

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

Issue 2801543002: DevTools: simplify ScriptFormatterEditorAction (Closed)
Patch Set: fixed cleanup Created 3 years, 8 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 Promise.all([ 71 Promise.all([
72 InspectorTest.waitBreakpointSidebarPane(true), 72 InspectorTest.waitBreakpointSidebarPane(true),
73 InspectorTest.waitUntilPausedPromise() 73 InspectorTest.waitUntilPausedPromise()
74 ]).then(pausedInF1Again); 74 ]).then(pausedInF1Again);
75 InspectorTest.evaluateInPageWithTimeout("f1()"); 75 InspectorTest.evaluateInPageWithTimeout("f1()");
76 } 76 }
77 77
78 function pausedInF1Again(callFrames) 78 function pausedInF1Again(callFrames)
79 { 79 {
80 InspectorTest.dumpBreakpointSidebarPane("while paused in pretty printed"); 80 InspectorTest.dumpBreakpointSidebarPane("while paused in pretty printed");
81 scriptFormatter._discardFormattedUISourceCodeScript(panel.visibl eView.uiSourceCode()); 81 scriptFormatter._discardFormattedUISourceCodeScript(panel.visibl eView.uiSourceCode(), true);
82 InspectorTest.waitBreakpointSidebarPane().then(onBreakpointsUpda ted); 82 InspectorTest.waitBreakpointSidebarPane().then(onBreakpointsUpda ted);
83 } 83 }
84 84
85 function onBreakpointsUpdated() 85 function onBreakpointsUpdated()
86 { 86 {
87 InspectorTest.dumpBreakpointSidebarPane("while paused in raw"); 87 InspectorTest.dumpBreakpointSidebarPane("while paused in raw");
88 InspectorTest.removeBreakpoint(sourceFrame, 11); 88 InspectorTest.removeBreakpoint(sourceFrame, 11);
89 InspectorTest.resumeExecution(next); 89 InspectorTest.resumeExecution(next);
90 } 90 }
91 } 91 }
92 ]); 92 ]);
93 93
94 } 94 }
95 </script> 95 </script>
96 </head> 96 </head>
97 <body onload="onload()"> 97 <body onload="onload()">
98 <p>Tests the script formatting is working fine with breakpoints. 98 <p>Tests the script formatting is working fine with breakpoints.
99 </p> 99 </p>
100 </body> 100 </body>
101 </html> 101 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698