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

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

Issue 337783003: DevTools: Preload HTML documents content before fetching resource content. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined Created 6 years, 5 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="../../../inspector/sources/debugger/resources/unformatted4.js"></sc ript> 5 <script src="../../../inspector/sources/debugger/resources/unformatted4.js"></sc ript>
6 6
7 <script> 7 <script>
8 8
9 function f1() 9 function f1()
10 { 10 {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 { 44 {
45 InspectorTest.addResult("Formatting."); 45 InspectorTest.addResult("Formatting.");
46 InspectorTest.addSniffer(WebInspector.ScriptFormatterEditorActio n.prototype, "_updateButton", uiSourceCodeScriptFormatted); 46 InspectorTest.addSniffer(WebInspector.ScriptFormatterEditorActio n.prototype, "_updateButton", uiSourceCodeScriptFormatted);
47 scriptFormatter._toggleFormatScriptSource(); 47 scriptFormatter._toggleFormatScriptSource();
48 } 48 }
49 49
50 function uiSourceCodeScriptFormatted() 50 function uiSourceCodeScriptFormatted()
51 { 51 {
52 InspectorTest.addResult("Removing breakpoint."); 52 InspectorTest.addResult("Removing breakpoint.");
53 var formattedSourceFrame = panel.visibleView; 53 var formattedSourceFrame = panel.visibleView;
54 InspectorTest.removeBreakpoint(formattedSourceFrame, 16); 54 InspectorTest.removeBreakpoint(formattedSourceFrame, 19);
55 InspectorTest.addResult("Unformatting."); 55 InspectorTest.addResult("Unformatting.");
56 scriptFormatter._discardFormattedUISourceCodeScript(panel.visibl eView.uiSourceCode()); 56 scriptFormatter._discardFormattedUISourceCodeScript(panel.visibl eView.uiSourceCode());
57 var breakpoints = WebInspector.breakpointManager._storage._setti ng.get(); 57 var breakpoints = WebInspector.breakpointManager._storage._setti ng.get();
58 InspectorTest.assertEquals(breakpoints.length, 0, "There should not be any breakpoints in the storage."); 58 InspectorTest.assertEquals(breakpoints.length, 0, "There should not be any breakpoints in the storage.");
59 next(); 59 next();
60 } 60 }
61 } 61 }
62 ]); 62 ]);
63 63
64 } 64 }
65 </script> 65 </script>
66 </head> 66 </head>
67 <body onload="onload()"> 67 <body onload="onload()">
68 <p>Tests the script formatting is working fine with breakpoints. 68 <p>Tests the script formatting is working fine with breakpoints.
69 </p> 69 </p>
70 </body> 70 </body>
71 </html> 71 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698