mirror of
https://github.com/servo/servo.git
synced 2025-08-30 09:38:19 +01:00
Update web-platform-tests to revision 81962ac8802223d038b188b6f9cb88a0a9c5beee
This commit is contained in:
parent
fe1a057bd1
commit
24183668c4
1960 changed files with 29853 additions and 10555 deletions
2
tests/wpt/web-platform-tests/old-tests/OWNERS
Normal file
2
tests/wpt/web-platform-tests/old-tests/OWNERS
Normal file
|
@ -0,0 +1,2 @@
|
|||
@foolip
|
||||
@Ms2ger
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue