Update web-platform-tests to revision 41a7d8732d8e5c65728c153d29a34fe9d5192b29

This commit is contained in:
James Graham 2015-05-13 16:20:27 +01:00
parent b05c3fc0c0
commit 5e8b92f3de
77 changed files with 1871 additions and 1412 deletions

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>