diff options
author | WPT Sync Bot <josh+wptsync@joshmatthews.net> | 2020-01-26 08:23:54 +0000 |
---|---|---|
committer | WPT Sync Bot <josh+wptsync@joshmatthews.net> | 2020-01-26 11:15:02 +0000 |
commit | 0cb6acf9a26591464f5ae9012401a3b110b75ac5 (patch) | |
tree | 1c36267f7dfcbe5f17e5c03bfdba76d3e1877993 /tests/wpt/web-platform-tests/css/css-animations/animationevent-interface.js | |
parent | 0bd266149263cbdcd0ddd677ab3a7eaa0322b660 (diff) | |
download | servo-0cb6acf9a26591464f5ae9012401a3b110b75ac5.tar.gz servo-0cb6acf9a26591464f5ae9012401a3b110b75ac5.zip |
Update web-platform-tests to revision e1edaa3dd1bea4415ee88e042affee32028d7f1d
Diffstat (limited to 'tests/wpt/web-platform-tests/css/css-animations/animationevent-interface.js')
-rw-r--r-- | tests/wpt/web-platform-tests/css/css-animations/animationevent-interface.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/wpt/web-platform-tests/css/css-animations/animationevent-interface.js b/tests/wpt/web-platform-tests/css/css-animations/animationevent-interface.js index e35b7fcb0f9..fcb7ceba205 100644 --- a/tests/wpt/web-platform-tests/css/css-animations/animationevent-interface.js +++ b/tests/wpt/web-platform-tests/css/css-animations/animationevent-interface.js @@ -10,7 +10,7 @@ }, "the event inherts from Event"); test(function() { - assert_throws(new TypeError(), function() { + assert_throws_js(TypeError, function() { new AnimationEvent(); }, 'First argument is required, so was expecting a TypeError.'); }, 'Missing type argument'); @@ -176,37 +176,37 @@ }, "elapsedTime set to an object with a valueOf function"); test(function() { - assert_throws(new TypeError(), function() { + assert_throws_js(TypeError, function() { new AnimationEvent("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 AnimationEvent("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 AnimationEvent("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 AnimationEvent("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 AnimationEvent("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 AnimationEvent("test", {elapsedTime: { sample: 0.5}}); }, 'elapsedTime cannot be an object so was expecting a TypeError'); }, "elapsedTime cannot be set to an object"); |