OLD | NEW |
1 // Ensure plugin load, run the speicified function, then finish the test. | 1 // Ensure plugin load, run the speicified function, then finish the test. |
2 function startAfterLoadAndFinish(f, node) { | 2 function startAfterLoadAndFinish(f, node) { |
3 if (window.testRunner) | 3 if (window.testRunner) |
4 testRunner.waitUntilDone(); | 4 testRunner.waitUntilDone(); |
5 window.addEventListener('load', function() { | 5 window.addEventListener('load', function() { |
6 if (window.internals) | 6 if (window.internals) |
7 internals.updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(
node); | 7 internals.updateStyleAndLayoutIgnorePendingStylesheetsAndRunPostLayo
utTasks(node); |
8 if (f) | 8 if (f) |
9 f(); | 9 f(); |
10 testRunner.notifyDone(); | 10 testRunner.notifyDone(); |
11 }, false); | 11 }, false); |
12 } | 12 } |
OLD | NEW |