@webcomponents/custom-elements
Version:
HTML Custom Elements Polyfill
13 lines (12 loc) • 429 B
JavaScript
// 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);
}