OLD | NEW |
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/console-test.js"></script> | 4 <script src="../../../http/tests/inspector/console-test.js"></script> |
5 <script src="../../../http/tests/inspector/debugger-test.js"></script> | 5 <script src="../../../http/tests/inspector/debugger-test.js"></script> |
6 <script> | 6 <script> |
7 | 7 |
8 function nonFormattedFunction() { var i = 2 + 2; var a = 4; return a + i; } | 8 function nonFormattedFunction() { var i = 2 + 2; var a = 4; return a + i; } |
9 | 9 |
10 function f1() | 10 function f1() |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 { | 44 { |
45 sourceFrame = frame; | 45 sourceFrame = frame; |
46 InspectorTest.evaluateInPage("f1()", didEvaluate); | 46 InspectorTest.evaluateInPage("f1()", didEvaluate); |
47 } | 47 } |
48 | 48 |
49 function didEvaluate() | 49 function didEvaluate() |
50 { | 50 { |
51 dumpConsoleMessageURLs(); | 51 dumpConsoleMessageURLs(); |
52 InspectorTest.addResult("Pre-format row message list:"); | 52 InspectorTest.addResult("Pre-format row message list:"); |
53 InspectorTest.addResult(JSON.stringify(Object.keys(sourceFrame._
rowMessageBuckets))); | 53 InspectorTest.addResult(JSON.stringify(Object.keys(sourceFrame._
rowMessageBuckets))); |
54 InspectorTest.addSniffer(WebInspector.ScriptFormatterEditorActio
n.prototype, "_updateButton", uiSourceCodeScriptFormatted); | 54 var name = panel.visibleView.uiSourceCode().name(); |
55 scriptFormatter._toggleFormatScriptSource(); | 55 scriptFormatter._toggleFormatScriptSource(); |
| 56 InspectorTest.showScriptSource(name + ":formatted", uiSourceCode
ScriptFormatted); |
56 } | 57 } |
57 | 58 |
58 function uiSourceCodeScriptFormatted() | 59 function uiSourceCodeScriptFormatted() |
59 { | 60 { |
60 dumpConsoleMessageURLs(); | 61 dumpConsoleMessageURLs(); |
61 InspectorTest.addResult("Post-format row message list:"); | 62 InspectorTest.addResult("Post-format row message list:"); |
62 var formattedSourceFrame = panel.visibleView; | 63 var formattedSourceFrame = panel.visibleView; |
63 InspectorTest.addResult(JSON.stringify(Object.keys(formattedSour
ceFrame._rowMessageBuckets))); | 64 InspectorTest.addResult(JSON.stringify(Object.keys(formattedSour
ceFrame._rowMessageBuckets))); |
64 next(); | 65 next(); |
65 } | 66 } |
(...skipping 14 matching lines...) Expand all Loading... |
80 </script> | 81 </script> |
81 | 82 |
82 </head> | 83 </head> |
83 | 84 |
84 <body onload="onload()"> | 85 <body onload="onload()"> |
85 <p>Tests that the script formatting changes console line numbers. | 86 <p>Tests that the script formatting changes console line numbers. |
86 </p> | 87 </p> |
87 | 88 |
88 </body> | 89 </body> |
89 </html> | 90 </html> |
OLD | NEW |