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

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

Issue 1153923005: DevTools: shard inspector/debugger tests for faster execution. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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
(Empty)
1 <html>
2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script src="resources/unformatted2.js"></script>
6 <script>
7 var test = function()
8 {
9 WebInspector.breakpointManager._storage._breakpoints = {};
10 var panel = WebInspector.panels.sources;
11 var scriptFormatter;
12 var formattedSourceFrame;
13
14 InspectorTest.runDebuggerTestSuite([
15 function testSetup(next)
16 {
17 InspectorTest.scriptFormatter().then(function(sf) {
18 scriptFormatter = sf;
19 next();
20 });
21 },
22
23 function testBreakpointsSetAndRemoveInFormattedSource(next)
24 {
25 InspectorTest.showScriptSource("unformatted2.js", didShowScriptSourc e);
26
27 function didShowScriptSource(frame)
28 {
29 InspectorTest.addSniffer(WebInspector.ScriptFormatterEditorActio n.prototype, "_updateButton", uiSourceCodeScriptFormatted);
30 scriptFormatter._toggleFormatScriptSource();
31 }
32
33 function uiSourceCodeScriptFormatted()
34 {
35 formattedSourceFrame = panel.visibleView;
36 InspectorTest.setBreakpoint(formattedSourceFrame, 3, "", true);
37 InspectorTest.waitUntilPaused(pausedInF2);
38 InspectorTest.evaluateInPageWithTimeout("f2()");
39 }
40
41 function pausedInF2(callFrames)
42 {
43 InspectorTest.dumpBreakpointSidebarPane("while paused in pretty printed");
44 InspectorTest.removeBreakpoint(formattedSourceFrame, 3);
45 scriptFormatter._discardFormattedUISourceCodeScript(panel.visibl eView.uiSourceCode());
46 InspectorTest.dumpBreakpointSidebarPane("while paused in raw");
47 InspectorTest.resumeExecution(next);
48 }
49 }
50 ]);
51
52 }
53 </script>
54 </head>
55 <body onload="runTest()">
56 <p>Tests the script formatting is working fine with breakpoints.
57 </p>
58 </body>
59 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698