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

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

Issue 213383010: DevTools: split slow formatter breakpoints tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed from TestExpectations Created 6 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 | 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 <script src="resources/unformatted.js"></script> 5 <script src="resources/unformatted.js"></script>
6 6
7 <script> 7 <script>
8 8
9 function f1() 9 function f1()
10 { 10 {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 } 54 }
55 55
56 function pausedInF1Again(callFrames) 56 function pausedInF1Again(callFrames)
57 { 57 {
58 InspectorTest.dumpBreakpointSidebarPane("while paused in pretty printed"); 58 InspectorTest.dumpBreakpointSidebarPane("while paused in pretty printed");
59 scriptFormatter._discardFormattedUISourceCodeScript(panel.visibl eView.uiSourceCode()); 59 scriptFormatter._discardFormattedUISourceCodeScript(panel.visibl eView.uiSourceCode());
60 InspectorTest.dumpBreakpointSidebarPane("while paused in raw"); 60 InspectorTest.dumpBreakpointSidebarPane("while paused in raw");
61 InspectorTest.removeBreakpoint(sourceFrame, 11); 61 InspectorTest.removeBreakpoint(sourceFrame, 11);
62 InspectorTest.resumeExecution(next); 62 InspectorTest.resumeExecution(next);
63 } 63 }
64 },
65
66 function testBreakpointsSetInFormattedAndRemoveInOriginalSource(next)
67 {
68 InspectorTest.showScriptSource("unformatted.js", didShowScriptSource );
69
70 function didShowScriptSource(frame)
71 {
72 sourceFrame = frame;
73 InspectorTest.addSniffer(WebInspector.ScriptFormatterEditorActio n.prototype, "_updateButton", uiSourceCodeScriptFormatted);
74 scriptFormatter._toggleFormatScriptSource();
75 }
76
77 function uiSourceCodeScriptFormatted()
78 {
79 formattedSourceFrame = panel.visibleView;
80 InspectorTest.setBreakpoint(formattedSourceFrame, 3, "", true);
81 InspectorTest.waitUntilPaused(pausedInF2);
82 InspectorTest.evaluateInPageWithTimeout("f2()");
83 }
84
85 function pausedInF2(callFrames)
86 {
87 InspectorTest.dumpBreakpointSidebarPane("while paused in pretty printed");
88 scriptFormatter._discardFormattedUISourceCodeScript(panel.visibl eView.uiSourceCode());
89 InspectorTest.dumpBreakpointSidebarPane("while paused in raw");
90 // No need to remove breakpoint since formattedUISourceCode was removed.
91 InspectorTest.resumeExecution(next);
92 }
93 } 64 }
94 ]); 65 ]);
95 66
96 } 67 }
97
98 </script> 68 </script>
99
100 </head> 69 </head>
101
102 <body onload="runTest()"> 70 <body onload="runTest()">
103 <p>Tests the script formatting is working fine with breakpoints. 71 <p>Tests the script formatting is working fine with breakpoints.
104 </p> 72 </p>
105
106 </body> 73 </body>
107 </html> 74 </html>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/inspector/sources/debugger/script-formatter-breakpoints-1-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698