OLD | NEW |
1 var initialize_ConsoleTest = function() { | 1 var initialize_ConsoleTest = function() { |
2 | 2 |
3 InspectorTest.preloadModule("source_frame"); | 3 InspectorTest.preloadModule("source_frame"); |
4 InspectorTest.preloadPanel("console"); | 4 InspectorTest.preloadPanel("console"); |
5 | 5 |
6 InspectorTest.selectMainExecutionContext = function() | 6 InspectorTest.selectMainExecutionContext = function() |
7 { | 7 { |
8 var executionContexts = InspectorTest.runtimeModel.executionContexts(); | 8 var executionContexts = InspectorTest.runtimeModel.executionContexts(); |
9 for (var context of executionContexts) { | 9 for (var context of executionContexts) { |
10 if (context.isDefault) { | 10 if (context.isDefault) { |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 | 228 |
229 InspectorTest.dumpConsoleClassesBrief = function() | 229 InspectorTest.dumpConsoleClassesBrief = function() |
230 { | 230 { |
231 var messageViews = Console.ConsoleView.instance()._visibleViewMessages; | 231 var messageViews = Console.ConsoleView.instance()._visibleViewMessages; |
232 for (var i = 0; i < messageViews.length; ++i) | 232 for (var i = 0; i < messageViews.length; ++i) |
233 InspectorTest.addResult(messageViews[i].toMessageElement().className); | 233 InspectorTest.addResult(messageViews[i].toMessageElement().className); |
234 } | 234 } |
235 | 235 |
236 InspectorTest.dumpConsoleCounters = function() | 236 InspectorTest.dumpConsoleCounters = function() |
237 { | 237 { |
238 var counter = Main.Main.WarningErrorCounter._instanceForTest; | 238 var counter = Counters.WarningErrorCounter._instanceForTest; |
239 for (var index = 0; index < counter._titles.length; ++index) | 239 for (var index = 0; index < counter._titles.length; ++index) |
240 InspectorTest.addResult(counter._titles[index]); | 240 InspectorTest.addResult(counter._titles[index]); |
241 InspectorTest.dumpConsoleClassesBrief(); | 241 InspectorTest.dumpConsoleClassesBrief(); |
242 } | 242 } |
243 | 243 |
244 InspectorTest.expandConsoleMessages = function(callback, deepFilter, sectionFilt
er) | 244 InspectorTest.expandConsoleMessages = function(callback, deepFilter, sectionFilt
er) |
245 { | 245 { |
246 Console.ConsoleView.instance()._invalidateViewport(); | 246 Console.ConsoleView.instance()._invalidateViewport(); |
247 var messageViews = Console.ConsoleView.instance()._visibleViewMessages; | 247 var messageViews = Console.ConsoleView.instance()._visibleViewMessages; |
248 | 248 |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 offset: offset - charCount | 441 offset: offset - charCount |
442 }; | 442 }; |
443 } | 443 } |
444 charCount += length; | 444 charCount += length; |
445 } | 445 } |
446 return null; | 446 return null; |
447 } | 447 } |
448 } | 448 } |
449 | 449 |
450 } | 450 } |
OLD | NEW |