Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 var initialize_InspectorTest = function() { | 1 var initialize_InspectorTest = function() { |
| 2 | 2 |
| 3 var results = []; | 3 var results = []; |
| 4 var resultsSynchronized = false; | 4 var resultsSynchronized = false; |
| 5 | 5 |
| 6 function consoleOutputHook(messageType) | 6 function consoleOutputHook(messageType) |
| 7 { | 7 { |
| 8 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu ments, 1)); | 8 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu ments, 1)); |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 473 setTimeout(step, 100); | 473 setTimeout(step, 100); |
| 474 } | 474 } |
| 475 | 475 |
| 476 function runTest(enableWatchDogWhileDebugging) | 476 function runTest(enableWatchDogWhileDebugging) |
| 477 { | 477 { |
| 478 if (!window.testRunner) | 478 if (!window.testRunner) |
| 479 return; | 479 return; |
| 480 | 480 |
| 481 testRunner.dumpAsText(); | 481 testRunner.dumpAsText(); |
| 482 testRunner.waitUntilDone(); | 482 testRunner.waitUntilDone(); |
| 483 testRunner.display(); | |
|
caseq
2013/10/17 12:37:38
Why is this necessary? We used to invoke this only
shawnsingh
2013/10/17 19:00:05
Without testRunner.display() here, compositing was
| |
| 483 | 484 |
| 484 function initializeFrontend(initializationFunctions) | 485 function initializeFrontend(initializationFunctions) |
| 485 { | 486 { |
| 486 if (window.InspectorTest) { | 487 if (window.InspectorTest) { |
| 487 InspectorTest.pageLoaded(); | 488 InspectorTest.pageLoaded(); |
| 488 return; | 489 return; |
| 489 } | 490 } |
| 490 | 491 |
| 491 InspectorTest = {}; | 492 InspectorTest = {}; |
| 492 | 493 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 616 evaluateInWebInspector: function(callId, script) | 617 evaluateInWebInspector: function(callId, script) |
| 617 { | 618 { |
| 618 window.opener.postMessage(["evaluateInWebInspector", callId, script], "* "); | 619 window.opener.postMessage(["evaluateInWebInspector", callId, script], "* "); |
| 619 }, | 620 }, |
| 620 | 621 |
| 621 display: function() { } | 622 display: function() { } |
| 622 } | 623 } |
| 623 | 624 |
| 624 if (!window.testRunner && window.opener) | 625 if (!window.testRunner && window.opener) |
| 625 window.testRunner = new StandaloneTestRunnerStub(); | 626 window.testRunner = new StandaloneTestRunnerStub(); |
| OLD | NEW |