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

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

Issue 214653002: DevTools: Fix script formatter test. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/unformatted2.js"></script>
6 <script> 6 <script>
7 var test = function() 7 var test = function()
8 { 8 {
9 WebInspector.breakpointManager._storage._breakpoints = {}; 9 WebInspector.breakpointManager._storage._breakpoints = {};
10 var panel = WebInspector.inspectorView.showPanel("sources"); 10 var panel = WebInspector.inspectorView.showPanel("sources");
11 var scriptFormatter = InspectorTest.scriptFormatter(); 11 var scriptFormatter = InspectorTest.scriptFormatter();
12 var sourceFrame; 12 var sourceFrame;
13 var formattedSourceFrame; 13 var formattedSourceFrame;
14 14
15 InspectorTest.runDebuggerTestSuite([ 15 InspectorTest.runDebuggerTestSuite([
16 function testBreakpointsSetInFormattedAndRemoveInOriginalSource(next) 16 function testBreakpointsSetInFormattedAndRemoveInOriginalSource(next)
17 { 17 {
18 InspectorTest.showScriptSource("unformatted.js", didShowScriptSource ); 18 InspectorTest.showScriptSource("unformatted2.js", didShowScriptSourc e);
19 19
20 function didShowScriptSource(frame) 20 function didShowScriptSource(frame)
21 { 21 {
22 sourceFrame = frame; 22 sourceFrame = frame;
23 InspectorTest.addSniffer(WebInspector.ScriptFormatterEditorActio n.prototype, "_updateButton", uiSourceCodeScriptFormatted); 23 InspectorTest.addSniffer(WebInspector.ScriptFormatterEditorActio n.prototype, "_updateButton", uiSourceCodeScriptFormatted);
24 scriptFormatter._toggleFormatScriptSource(); 24 scriptFormatter._toggleFormatScriptSource();
25 } 25 }
26 26
27 function uiSourceCodeScriptFormatted() 27 function uiSourceCodeScriptFormatted()
28 { 28 {
(...skipping 15 matching lines...) Expand all
44 ]); 44 ]);
45 45
46 } 46 }
47 </script> 47 </script>
48 </head> 48 </head>
49 <body onload="runTest()"> 49 <body onload="runTest()">
50 <p>Tests the script formatting is working fine with breakpoints. 50 <p>Tests the script formatting is working fine with breakpoints.
51 </p> 51 </p>
52 </body> 52 </body>
53 </html> 53 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698