| OLD | NEW |
| 1 if (window.GCController) | 1 if (window.GCController) |
| 2 GCController.collectAll(); | 2 GCController.collectAll(); |
| 3 var initialize_InspectorTest = function() { | 3 var initialize_InspectorTest = function() { |
| 4 | 4 |
| 5 var results = []; | 5 var results = []; |
| 6 | 6 |
| 7 function consoleOutputHook(messageType) | 7 function consoleOutputHook(messageType) |
| 8 { | 8 { |
| 9 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu
ments, 1)); | 9 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu
ments, 1)); |
| 10 } | 10 } |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 // FIXME: we need a better way of waiting for chromium events to happen | 97 // FIXME: we need a better way of waiting for chromium events to happen |
| 98 InspectorTest.evaluateInPage("setTimeout(unescape('" + escape(code) + "'), 1
)"); | 98 InspectorTest.evaluateInPage("setTimeout(unescape('" + escape(code) + "'), 1
)"); |
| 99 } | 99 } |
| 100 | 100 |
| 101 InspectorTest.evaluateFunctionInOverlay = function(func, callback) | 101 InspectorTest.evaluateFunctionInOverlay = function(func, callback) |
| 102 { | 102 { |
| 103 var expression = "testRunner.evaluateInWebInspectorOverlay(\"(\" + " + func
+ " + \")()\")"; | 103 var expression = "testRunner.evaluateInWebInspectorOverlay(\"(\" + " + func
+ " + \")()\")"; |
| 104 var mainContext = InspectorTest.runtimeModel.executionContexts()[0]; | 104 var mainContext = InspectorTest.runtimeModel.executionContexts()[0]; |
| 105 mainContext.evaluate(expression, "", false, false, true, false, false, wrapC
allback); | 105 mainContext.evaluate(expression, "", false, false, true, false, false, wrapC
allback); |
| 106 | 106 |
| 107 function wrapCallback(val, err, result) | 107 function wrapCallback(result, exceptionDetails) |
| 108 { | 108 { |
| 109 callback(result.value) | 109 callback(result.value) |
| 110 } | 110 } |
| 111 } | 111 } |
| 112 | 112 |
| 113 InspectorTest.waitForOverlayRepaint = function(callback) | 113 InspectorTest.waitForOverlayRepaint = function(callback) |
| 114 { | 114 { |
| 115 InspectorTest.invokePageFunctionAsync("requestAnimationFrame", callback); | 115 InspectorTest.invokePageFunctionAsync("requestAnimationFrame", callback); |
| 116 } | 116 } |
| 117 | 117 |
| (...skipping 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1195 _output("[page] " + text); | 1195 _output("[page] " + text); |
| 1196 } | 1196 } |
| 1197 | 1197 |
| 1198 function _output(result) | 1198 function _output(result) |
| 1199 { | 1199 { |
| 1200 if (!outputElement) | 1200 if (!outputElement) |
| 1201 createOutputElement(); | 1201 createOutputElement(); |
| 1202 outputElement.appendChild(document.createTextNode(result)); | 1202 outputElement.appendChild(document.createTextNode(result)); |
| 1203 outputElement.appendChild(document.createElement("br")); | 1203 outputElement.appendChild(document.createElement("br")); |
| 1204 } | 1204 } |
| OLD | NEW |