blob: d12c336a97c463293d5751a77436fbd924a31b5e [file] [log] [blame]
// Ensure plugin load, run the speicified function, then finish the test.
function startAfterLoadAndFinish(f, node) {
if (window.testRunner)
testRunner.waitUntilDone();
window.addEventListener('load', function() {
if (window.internals)
internals.updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(node);
if (f)
f();
testRunner.notifyDone();
}, false);
}