Update web-platform-tests to revision 81962ac8802223d038b188b6f9cb88a0a9c5beee

This commit is contained in:
WPT Sync Bot 2018-05-18 22:02:29 -04:00
parent fe1a057bd1
commit 24183668c4
1960 changed files with 29853 additions and 10555 deletions

View file

@ -0,0 +1,2 @@
@foolip
@Ms2ger

View file

@ -322,8 +322,25 @@
}
add_result_callback(testFinished);
//start the first test manually
queue(testCollection[testIndex]);
function startTestsWhenIframesLoaded() {
if (testframe1.contentWindow.document.readyState != 'complete' ||
testframe2.contentWindow.document.readyState != 'complete') {
return;
}
testframe1.removeEventListener('load', startTestsWhenIframesLoaded, false);
testframe2.removeEventListener('load', startTestsWhenIframesLoaded, false);
//start the first test
queue(testCollection[testIndex]);
}
// add listeners to trigger the tests once the iframes are loaded,
// but also try to start it right away in case the load events have
// already fired and we missed them.
testframe1.addEventListener('load', startTestsWhenIframesLoaded, false);
testframe2.addEventListener('load', startTestsWhenIframesLoaded, false);
startTestsWhenIframesLoaded();
</script>
</body>
</html>