mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision e1edaa3dd1bea4415ee88e042affee32028d7f1d
This commit is contained in:
parent
0bd2661492
commit
0cb6acf9a2
4828 changed files with 87680 additions and 41620 deletions
|
@ -19,7 +19,7 @@ test(function() {
|
|||
}, "the event inherts from Event");
|
||||
|
||||
test(function() {
|
||||
assert_throws(new TypeError(), function() {
|
||||
assert_throws_js(TypeError, function() {
|
||||
new TransitionEvent();
|
||||
}, 'First argument is required, so was expecting a TypeError.');
|
||||
}, 'Missing type argument');
|
||||
|
@ -185,37 +185,37 @@ test(function() {
|
|||
}, "elapsedTime set to an object with a valueOf function");
|
||||
|
||||
test(function() {
|
||||
assert_throws(new TypeError(), function() {
|
||||
assert_throws_js(TypeError, function() {
|
||||
new TransitionEvent("test", {elapsedTime: NaN});
|
||||
}, 'elapsedTime cannot be NaN so was expecting a TypeError');
|
||||
}, "elapsedTime cannot be set to NaN");
|
||||
|
||||
test(function() {
|
||||
assert_throws(new TypeError(), function() {
|
||||
assert_throws_js(TypeError, function() {
|
||||
new TransitionEvent("test", {elapsedTime: Infinity});
|
||||
}, 'elapsedTime cannot be Infinity so was expecting a TypeError');
|
||||
}, "elapsedTime cannot be set to Infinity");
|
||||
|
||||
test(function() {
|
||||
assert_throws(new TypeError(), function() {
|
||||
assert_throws_js(TypeError, function() {
|
||||
new TransitionEvent("test", {elapsedTime: -Infinity});
|
||||
}, 'elapsedTime cannot be -Infinity so was expecting a TypeError');
|
||||
}, "elapsedTime cannot be set to -Infinity");
|
||||
|
||||
test(function() {
|
||||
assert_throws(new TypeError(), function() {
|
||||
assert_throws_js(TypeError, function() {
|
||||
new TransitionEvent("test", {elapsedTime: "sample"});
|
||||
}, 'elapsedTime cannot be a string so was expecting a TypeError');
|
||||
}, "elapsedTime cannot be set to 'sample'");
|
||||
|
||||
test(function() {
|
||||
assert_throws(new TypeError(), function() {
|
||||
assert_throws_js(TypeError, function() {
|
||||
new TransitionEvent("test", {elapsedTime: [0.5, 1.0]});
|
||||
}, 'elapsedTime cannot be a multi-element array so was expecting a TypeError');
|
||||
}, "elapsedTime cannot be set to [0.5, 1.0]");
|
||||
|
||||
test(function() {
|
||||
assert_throws(new TypeError(), function() {
|
||||
assert_throws_js(TypeError, function() {
|
||||
new TransitionEvent("test", {elapsedTime: { sample: 0.5}});
|
||||
}, 'elapsedTime cannot be an object so was expecting a TypeError');
|
||||
}, "elapsedTime cannot be set to an object");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue