mirror of
https://github.com/servo/servo.git
synced 2025-08-12 00:45:33 +01:00
Update web-platform-tests to revision 41a7d8732d8e5c65728c153d29a34fe9d5192b29
This commit is contained in:
parent
b05c3fc0c0
commit
5e8b92f3de
77 changed files with 1871 additions and 1412 deletions
|
@ -13,20 +13,18 @@ document.body.appendChild(iframe);
|
|||
</script>
|
||||
<div id=log></div>
|
||||
<script>
|
||||
var t = async_test();
|
||||
onload = t.step_func(function() {
|
||||
onload = function() {
|
||||
window[0].postMessage(1, location.href, []);
|
||||
window[1].postMessage(2, url, []);
|
||||
var i = 0;
|
||||
onmessage = t.step_func(function(e) {
|
||||
onmessage = function(e) {
|
||||
i++;
|
||||
assert_equals(e.data[0], i);
|
||||
assert_equals(e.data[1], location.protocol + '//' + location.host);
|
||||
if (i === 2) {
|
||||
t.done();
|
||||
done();
|
||||
}
|
||||
});
|
||||
setTimeout(t.step_func(function() { assert_unreached("Only got " + i + " events before timeout, expected 2") }), 1000);
|
||||
});
|
||||
};
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
|
@ -13,20 +13,18 @@ document.body.appendChild(iframe);
|
|||
</script>
|
||||
<div id=log></div>
|
||||
<script>
|
||||
var t = async_test();
|
||||
onload = t.step_func(function() {
|
||||
onload = function() {
|
||||
window[0].postMessage(1, '*', []);
|
||||
window[1].postMessage(2, '*', []);
|
||||
var i = 0;
|
||||
onmessage = t.step_func(function(e) {
|
||||
onmessage = function(e) {
|
||||
i++;
|
||||
assert_equals(e.data[0], i);
|
||||
assert_equals(e.data[1], location.protocol + '//' + location.host);
|
||||
if (i === 2) {
|
||||
t.done();
|
||||
done();
|
||||
}
|
||||
});
|
||||
setTimeout(t.step_func(function() { assert_unreached("Only got " + i + " events before timeout, expected 2") }), 1000);
|
||||
});
|
||||
};
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
|
@ -13,20 +13,18 @@ document.body.appendChild(iframe);
|
|||
</script>
|
||||
<div id=log></div>
|
||||
<script>
|
||||
var t = async_test();
|
||||
onload = t.step_func(function() {
|
||||
onload = function() {
|
||||
window[0].postMessage(1, location.href);
|
||||
window[1].postMessage(2, url);
|
||||
var i = 0;
|
||||
onmessage = t.step_func(function(e) {
|
||||
onmessage = function(e) {
|
||||
i++;
|
||||
assert_equals(e.data[0], i);
|
||||
assert_equals(e.data[1], location.protocol + '//' + location.host);
|
||||
if (i == 2) {
|
||||
t.done();
|
||||
done();
|
||||
}
|
||||
});
|
||||
setTimeout(t.step_func(function() {assert_unreached("Only got " + i + " events before timeout, expected 2")}), 1000);
|
||||
});
|
||||
};
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
|
@ -13,20 +13,18 @@ document.body.appendChild(iframe);
|
|||
</script>
|
||||
<div id=log></div>
|
||||
<script>
|
||||
var t = async_test();
|
||||
onload = t.step_func(function() {
|
||||
onload = function() {
|
||||
window[0].postMessage(1, '*');
|
||||
window[1].postMessage(2, '*');
|
||||
var i = 0;
|
||||
onmessage = t.step_func(function(e) {
|
||||
onmessage = function(e) {
|
||||
i++;
|
||||
assert_equals(e.data[0], i);
|
||||
assert_equals(e.data[1], location.protocol + '//' + location.host);
|
||||
if (i === 2) {
|
||||
t.done();
|
||||
done();
|
||||
}
|
||||
});
|
||||
setTimeout(t.step_func(function() { assert_unreached("Only got " + i + " events before timeout, expected 2")}), 1000);
|
||||
});
|
||||
};
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue