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

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

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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="../debugger/resources/unformatted3.js"></script> 5 <script src="../debugger/resources/unformatted3.js"></script>
6 <script> 6 <script>
7 var test = function() 7 var test = function()
8 { 8 {
9 WebInspector.breakpointManager._storage._breakpoints = {}; 9 Bindings.breakpointManager._storage._breakpoints = {};
10 var panel = WebInspector.panels.sources; 10 var panel = UI.panels.sources;
11 var scriptFormatter; 11 var scriptFormatter;
12 12
13 InspectorTest.runDebuggerTestSuite([ 13 InspectorTest.runDebuggerTestSuite([
14 function testSetup(next) 14 function testSetup(next)
15 { 15 {
16 InspectorTest.scriptFormatter().then(function(sf) { 16 InspectorTest.scriptFormatter().then(function(sf) {
17 scriptFormatter = sf; 17 scriptFormatter = sf;
18 next(); 18 next();
19 }); 19 });
20 }, 20 },
21 21
22 function testBreakpointsSetInFormattedAndRemoveInOriginalSource(next) 22 function testBreakpointsSetInFormattedAndRemoveInOriginalSource(next)
23 { 23 {
24 InspectorTest.showScriptSource("unformatted3.js", didShowScriptSourc e); 24 InspectorTest.showScriptSource("unformatted3.js", didShowScriptSourc e);
25 25
26 function didShowScriptSource(frame) 26 function didShowScriptSource(frame)
27 { 27 {
28 InspectorTest.addSniffer(WebInspector.ScriptFormatterEditorActio n.prototype, "_updateButton", uiSourceCodeScriptFormatted); 28 InspectorTest.addSniffer(Sources.ScriptFormatterEditorAction.pro totype, "_updateButton", uiSourceCodeScriptFormatted);
29 scriptFormatter._toggleFormatScriptSource(); 29 scriptFormatter._toggleFormatScriptSource();
30 } 30 }
31 31
32 function uiSourceCodeScriptFormatted() 32 function uiSourceCodeScriptFormatted()
33 { 33 {
34 var formattedSourceFrame = panel.visibleView; 34 var formattedSourceFrame = panel.visibleView;
35 InspectorTest.setBreakpoint(formattedSourceFrame, 3, "", true); 35 InspectorTest.setBreakpoint(formattedSourceFrame, 3, "", true);
36 InspectorTest.waitUntilPaused(pausedInF2); 36 InspectorTest.waitUntilPaused(pausedInF2);
37 InspectorTest.evaluateInPageWithTimeout("f2()"); 37 InspectorTest.evaluateInPageWithTimeout("f2()");
38 } 38 }
(...skipping 10 matching lines...) Expand all
49 ]); 49 ]);
50 50
51 } 51 }
52 </script> 52 </script>
53 </head> 53 </head>
54 <body onload="runTest()"> 54 <body onload="runTest()">
55 <p>Tests the script formatting is working fine with breakpoints. 55 <p>Tests the script formatting is working fine with breakpoints.
56 </p> 56 </p>
57 </body> 57 </body>
58 </html> 58 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698