mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 000905d008db2538360020335bc2dbba16d322b5.
This commit is contained in:
parent
53d2432c90
commit
2d49203b9c
100 changed files with 3807 additions and 201 deletions
|
@ -1,11 +1,13 @@
|
|||
importScripts("/resources/testharness.js");
|
||||
|
||||
test(function() {
|
||||
test(function(t) {
|
||||
var i = 0;
|
||||
addEventListener("message", this.step_func(function listener(evt) {
|
||||
++i;
|
||||
removeEventListener("message", listener, true);
|
||||
}), true);
|
||||
addEventListener("message", function listener(evt) {
|
||||
t.step(function() {
|
||||
++i;
|
||||
removeEventListener("message", listener, true);
|
||||
});
|
||||
}, true);
|
||||
self.dispatchEvent(new Event("message"));
|
||||
self.dispatchEvent(new Event("message"));
|
||||
assert_equals(i, 1);
|
||||
|
|
|
@ -21,7 +21,7 @@ async_test(function() {
|
|||
assert_equals(typeof e.message, 'string', 'typeof e.message');
|
||||
assert_equals(e.filename, document.URL+'#', 'e.filename');
|
||||
assert_equals(typeof e.lineno, 'number', 'typeof e.lineno');
|
||||
assert_equals(typeof e.column, 'number', 'typeof e.column');
|
||||
assert_equals(typeof e.colno, 'number', 'typeof e.column');
|
||||
e.preventDefault(); // "handled"
|
||||
this.done();
|
||||
});
|
||||
|
@ -29,4 +29,4 @@ async_test(function() {
|
|||
</script>
|
||||
<!--
|
||||
*/
|
||||
//-->
|
||||
//-->
|
||||
|
|
|
@ -21,7 +21,7 @@ async_test(function() {
|
|||
assert_equals(typeof e.message, 'string', 'typeof e.message');
|
||||
assert_equals(e.filename, document.URL+'#', 'e.filename');
|
||||
assert_equals(typeof e.lineno, 'number', 'typeof e.lineno');
|
||||
assert_equals(typeof e.column, 'number', 'typeof e.column');
|
||||
assert_equals(typeof e.colno, 'number', 'typeof e.column');
|
||||
e.preventDefault(); // "handled"
|
||||
this.done();
|
||||
});
|
||||
|
@ -29,4 +29,4 @@ async_test(function() {
|
|||
</script>
|
||||
<!--
|
||||
*/
|
||||
//-->
|
||||
//-->
|
||||
|
|
|
@ -16,15 +16,11 @@ setup({
|
|||
});
|
||||
async_test(function() {
|
||||
var worker = new Worker('#');
|
||||
var timeout = setTimeout(this.step_func(function() {
|
||||
assert_unreached();
|
||||
}, 500));
|
||||
window.onerror = this.step_func(function(a, b, c, d) {
|
||||
assert_true(typeof a, 'string', 'first argument');
|
||||
assert_equals(typeof a, 'string', 'first argument');
|
||||
assert_equals(b, document.URL+'#', 'second argument');
|
||||
assert_equals(typeof c, 'number', 'third argument');
|
||||
assert_equals(typeof d, 'number', 'fourth argument');
|
||||
clearTimeout(timeout);
|
||||
this.done();
|
||||
return true; // "handled"
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue