mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
Update web-platform-tests to revision e426a6933a05bf144eba06a1d4c47ba876a4e2d1
This commit is contained in:
parent
415b26e4f1
commit
5e5eccabf8
495 changed files with 14920 additions and 784 deletions
|
@ -5,29 +5,29 @@
|
|||
<script nonce="abc" src="/preload/resources/preload_helper.js"></script>
|
||||
<body>
|
||||
<script nonce="abc">
|
||||
setup({explicit_done: true});
|
||||
setup({explicit_done: true});
|
||||
|
||||
var iterations = 0;
|
||||
var iterations = 0;
|
||||
|
||||
function check_finished() {
|
||||
if (numberOfResourceTimingEntries("resources/dummy.js?from-header&without-nonce") == 0 &&
|
||||
numberOfResourceTimingEntries("resources/dummy.js?from-header&with-nonce") == 1) {
|
||||
done();
|
||||
function check_finished() {
|
||||
if (numberOfResourceTimingEntries("resources/dummy.js?from-header&without-nonce") == 0 &&
|
||||
numberOfResourceTimingEntries("resources/dummy.js?from-header&with-nonce") == 1) {
|
||||
done();
|
||||
}
|
||||
iterations++;
|
||||
if (iterations == 10) {
|
||||
// At least one is expected to fail, but this should give details to the exact failure(s).
|
||||
verifyNumberOfResourceTimingEntries("resources/dummy.js?from-header&without-nonce", 0);
|
||||
verifyNumberOfResourceTimingEntries("resources/dummy.js?from-header&with-nonce", 1);
|
||||
done();
|
||||
} else {
|
||||
step_timeout(check_finished, 500);
|
||||
}
|
||||
}
|
||||
iterations++;
|
||||
if (iterations == 10) {
|
||||
// At least one is expected to fail, but this should give details to the exact failure(s).
|
||||
verifyNumberOfResourceTimingEntries("resources/dummy.js?from-header&without-nonce", 0);
|
||||
verifyNumberOfResourceTimingEntries("resources/dummy.js?from-header&with-nonce", 1);
|
||||
done();
|
||||
} else {
|
||||
|
||||
window.addEventListener("load", function() {
|
||||
verifyPreloadAndRTSupport();
|
||||
step_timeout(check_finished, 500);
|
||||
}
|
||||
}
|
||||
|
||||
window.addEventListener("load", function() {
|
||||
verifyPreloadAndRTSupport();
|
||||
step_timeout(check_finished, 0);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue