OLD | NEW |
1 var initialize_ConsoleTest = function() { | 1 var initialize_ConsoleTest = function() { |
2 | 2 |
3 | 3 |
4 InspectorTest.showConsolePanel = function() | 4 InspectorTest.showConsolePanel = function() |
5 { | 5 { |
6 WebInspector.inspectorView.showPanel("console"); | 6 WebInspector.inspectorView.showPanel("console"); |
7 } | 7 } |
8 | 8 |
9 InspectorTest.prepareConsoleMessageText = function(messageElement) | 9 InspectorTest.prepareConsoleMessageText = function(messageElement) |
10 { | 10 { |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 InspectorTest.addResult("FAILED: didn't find _parameters field in th
e message."); | 149 InspectorTest.addResult("FAILED: didn't find _parameters field in th
e message."); |
150 } | 150 } |
151 } | 151 } |
152 } | 152 } |
153 | 153 |
154 InspectorTest.waitUntilMessageReceived = function(callback) | 154 InspectorTest.waitUntilMessageReceived = function(callback) |
155 { | 155 { |
156 InspectorTest.addSniffer(WebInspector.console, "addMessage", callback, false
); | 156 InspectorTest.addSniffer(WebInspector.console, "addMessage", callback, false
); |
157 } | 157 } |
158 | 158 |
| 159 InspectorTest.waitUntilNthMessageReceived = function(count, callback) |
| 160 { |
| 161 function override() |
| 162 { |
| 163 if (--count === 0) |
| 164 InspectorTest.safeWrap(callback)(); |
| 165 else |
| 166 InspectorTest.addSniffer(WebInspector.console, "addMessage", overrid
e, false); |
| 167 } |
| 168 InspectorTest.addSniffer(WebInspector.console, "addMessage", override, false
); |
159 } | 169 } |
| 170 |
| 171 } |
OLD | NEW |