OLD | NEW |
1 var initialize_ConsoleTest = function() { | 1 var initialize_ConsoleTest = function() { |
2 | 2 |
3 InspectorTest.preloadPanel("console"); | 3 InspectorTest.preloadPanel("console"); |
4 | 4 |
5 InspectorTest.evaluateInConsole = function(code, callback) | 5 InspectorTest.evaluateInConsole = function(code, callback) |
6 { | 6 { |
7 callback = InspectorTest.safeWrap(callback); | 7 callback = InspectorTest.safeWrap(callback); |
8 | 8 |
9 var consoleView = WebInspector.ConsolePanel._view(); | 9 var consoleView = WebInspector.ConsolePanel._view(); |
10 consoleView.visible = true; | 10 consoleView.visible = true; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 InspectorTest.fixConsoleViewportDimensions = function(width, height) | 66 InspectorTest.fixConsoleViewportDimensions = function(width, height) |
67 { | 67 { |
68 var viewport = WebInspector.ConsolePanel._view()._viewport; | 68 var viewport = WebInspector.ConsolePanel._view()._viewport; |
69 viewport.element.style.width = width + "px"; | 69 viewport.element.style.width = width + "px"; |
70 viewport.element.style.height = height + "px"; | 70 viewport.element.style.height = height + "px"; |
71 viewport.element.style.position = "absolute"; | 71 viewport.element.style.position = "absolute"; |
72 viewport.invalidate(); | 72 viewport.invalidate(); |
73 } | 73 } |
74 | 74 |
| 75 InspectorTest.consoleMessagesCount = function() |
| 76 { |
| 77 var consoleView = WebInspector.ConsolePanel._view(); |
| 78 return consoleView._consoleMessages.length; |
| 79 } |
| 80 |
75 InspectorTest.dumpConsoleMessages = function(printOriginatingCommand, dumpClassN
ames, formatter) | 81 InspectorTest.dumpConsoleMessages = function(printOriginatingCommand, dumpClassN
ames, formatter) |
76 { | 82 { |
77 InspectorTest.addResults(InspectorTest.dumpConsoleMessagesIntoArray(printOri
ginatingCommand, dumpClassNames, formatter)); | 83 InspectorTest.addResults(InspectorTest.dumpConsoleMessagesIntoArray(printOri
ginatingCommand, dumpClassNames, formatter)); |
78 } | 84 } |
79 | 85 |
80 InspectorTest.dumpConsoleMessagesIntoArray = function(printOriginatingCommand, d
umpClassNames, formatter) | 86 InspectorTest.dumpConsoleMessagesIntoArray = function(printOriginatingCommand, d
umpClassNames, formatter) |
81 { | 87 { |
82 formatter = formatter || InspectorTest.prepareConsoleMessageText; | 88 formatter = formatter || InspectorTest.prepareConsoleMessageText; |
83 var result = []; | 89 var result = []; |
84 InspectorTest.disableConsoleViewport(); | 90 InspectorTest.disableConsoleViewport(); |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 } | 276 } |
271 if (!option) { | 277 if (!option) { |
272 InspectorTest.addResult("FAILED: context with prefix: " + namePrefix +
" not found in the context list"); | 278 InspectorTest.addResult("FAILED: context with prefix: " + namePrefix +
" not found in the context list"); |
273 return; | 279 return; |
274 } | 280 } |
275 option.selected = true; | 281 option.selected = true; |
276 WebInspector.ConsolePanel._view()._executionContextChanged(); | 282 WebInspector.ConsolePanel._view()._executionContextChanged(); |
277 } | 283 } |
278 | 284 |
279 } | 285 } |
OLD | NEW |