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

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

Issue 458753003: Revert of DevTools: Introduce module initializers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | LayoutTests/inspector/editor/editor-test.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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> 5 <script>
6 6
7 function nonFormattedFunction() { var i = 2 + 2; var a = 4; return a + i; } 7 function nonFormattedFunction() { var i = 2 + 2; var a = 4; return a + i; }
8 8
9 function f1() 9 function f1()
10 { 10 {
11 console.error("Test message."); 11 console.error("Test message.");
12 } 12 }
13 13
14 function onload() 14 function onload()
15 { 15 {
16 if (window.testRunner) { 16 if (window.testRunner) {
17 testRunner.waitUntilDone(); 17 testRunner.waitUntilDone();
18 testRunner.showWebInspector(); 18 testRunner.showWebInspector();
19 } 19 }
20 runTest(); 20 runTest();
21 } 21 }
22 22
23 var test = function() 23 var test = function()
24 { 24 {
25 var panel = WebInspector.inspectorView.showPanel("sources"); 25 var panel = WebInspector.inspectorView.showPanel("sources");
26 var worker = new Worker("ScriptFormatterWorker.js");
26 var sourceFrame; 27 var sourceFrame;
27 var scriptFormatter = InspectorTest.scriptFormatter(); 28 var scriptFormatter = InspectorTest.scriptFormatter();
28 29
29 InspectorTest.runDebuggerTestSuite([ 30 InspectorTest.runDebuggerTestSuite([
30 function testConsoleMessagesForFormattedScripts(next) 31 function testConsoleMessagesForFormattedScripts(next)
31 { 32 {
32 InspectorTest.showScriptSource("script-formatter-console.html", didS howScriptSource); 33 InspectorTest.showScriptSource("script-formatter-console.html", didS howScriptSource);
33 34
34 function didShowScriptSource(frame) 35 function didShowScriptSource(frame)
35 { 36 {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 </script> 73 </script>
73 74
74 </head> 75 </head>
75 76
76 <body onload="onload()"> 77 <body onload="onload()">
77 <p>Tests that the script formatting changes console line numbers. 78 <p>Tests that the script formatting changes console line numbers.
78 </p> 79 </p>
79 80
80 </body> 81 </body>
81 </html> 82 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/editor/editor-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698