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> | 5 <script> |
6 | 6 |
7 var a = {name: "a"}; | 7 var a = {name: "a"}; |
8 var b = {name: "b"}; | 8 var b = {name: "b"}; |
9 var c = {name: "c"}; | 9 var c = {name: "c"}; |
10 | 10 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 console.log(b); | 124 console.log(b); |
125 console.log(c); | 125 console.log(c); |
126 console.log(configTest); | 126 console.log(configTest); |
127 console.log(selfReferenceTest); | 127 console.log(selfReferenceTest); |
128 //swap first formatters: test that header+body should be generated by the sa
me formatter | 128 //swap first formatters: test that header+body should be generated by the sa
me formatter |
129 window.devtoolsFormatters = [formatter2, formatter1, formatterWithConfig1, f
ormatterWithConfig2, selfReferencingFormatter]; | 129 window.devtoolsFormatters = [formatter2, formatter1, formatterWithConfig1, f
ormatterWithConfig2, selfReferencingFormatter]; |
130 } | 130 } |
131 | 131 |
132 function test() | 132 function test() |
133 { | 133 { |
134 InspectorTest.mainTarget.runtimeAgent().setCustomObjectFormatterEnabled(true
); | 134 InspectorTest.mainTarget._dispatcher.runtimeAgent().setCustomObjectFormatter
Enabled(true); |
135 InspectorTest.evaluateInPage("logVars()", expandVariablesInConsole); | 135 InspectorTest.evaluateInPage("logVars()", expandVariablesInConsole); |
136 | 136 |
137 function expandVariablesInConsole() | 137 function expandVariablesInConsole() |
138 { | 138 { |
139 var consoleView = Console.ConsoleView.instance(); | 139 var consoleView = Console.ConsoleView.instance(); |
140 if (consoleView._needsFullUpdate) | 140 if (consoleView._needsFullUpdate) |
141 consoleView._updateMessageList(); | 141 consoleView._updateMessageList(); |
142 var viewMessages = consoleView._visibleViewMessages; | 142 var viewMessages = consoleView._visibleViewMessages; |
143 for (var i = 0; i < viewMessages.length; ++i) { | 143 for (var i = 0; i < viewMessages.length; ++i) { |
144 var uiMessage = viewMessages[i]; | 144 var uiMessage = viewMessages[i]; |
(...skipping 12 matching lines...) Expand all Loading... |
157 InspectorTest.completeTest(); | 157 InspectorTest.completeTest(); |
158 } | 158 } |
159 } | 159 } |
160 </script> | 160 </script> |
161 </head> | 161 </head> |
162 | 162 |
163 <body onload="runTest()"> | 163 <body onload="runTest()"> |
164 <p>Tests that console logging dumps properly when there are multiple custom form
atters on the page</p> | 164 <p>Tests that console logging dumps properly when there are multiple custom form
atters on the page</p> |
165 </body> | 165 </body> |
166 </html> | 166 </html> |
OLD | NEW |