aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/web-animations/interfaces
diff options
context:
space:
mode:
authorWPT Sync Bot <josh+wptsync@joshmatthews.net>2020-01-23 08:22:35 +0000
committerWPT Sync Bot <josh+wptsync@joshmatthews.net>2020-01-23 10:58:08 +0000
commit36e52003a7cb8086ad70bcab8fb65c970cc88b34 (patch)
tree53bea5ba5d87994d65316d84ad76eaa99d7da1f8 /tests/wpt/web-platform-tests/web-animations/interfaces
parent24674687acaaca3a796f8cc61bc98c6e7d0097fb (diff)
downloadservo-36e52003a7cb8086ad70bcab8fb65c970cc88b34.tar.gz
servo-36e52003a7cb8086ad70bcab8fb65c970cc88b34.zip
Update web-platform-tests to revision 7ec633bbfbc01de4972e65f81f593983d9cdc17d
Diffstat (limited to 'tests/wpt/web-platform-tests/web-animations/interfaces')
-rw-r--r--tests/wpt/web-platform-tests/web-animations/interfaces/Animatable/animate.html14
-rw-r--r--tests/wpt/web-platform-tests/web-animations/interfaces/AnimationEffect/updateTiming.html2
-rw-r--r--tests/wpt/web-platform-tests/web-animations/interfaces/KeyframeEffect/processing-a-keyframes-argument-002.html4
-rw-r--r--tests/wpt/web-platform-tests/web-animations/interfaces/KeyframeEffect/setKeyframes.html2
4 files changed, 11 insertions, 11 deletions
diff --git a/tests/wpt/web-platform-tests/web-animations/interfaces/Animatable/animate.html b/tests/wpt/web-platform-tests/web-animations/interfaces/Animatable/animate.html
index 95d7db7bb3b..4d17d2dd00e 100644
--- a/tests/wpt/web-platform-tests/web-animations/interfaces/Animatable/animate.html
+++ b/tests/wpt/web-platform-tests/web-animations/interfaces/Animatable/animate.html
@@ -81,7 +81,7 @@ for (const subtest of gKeyframesTests) {
for (const subtest of gInvalidKeyframesTests) {
test(t => {
const div = createDiv(t);
- assert_throws(new TypeError, () => {
+ assert_throws_js(TypeError, () => {
div.animate(subtest.input, 2000);
});
}, `Element.animate() does not accept ${subtest.desc}`);
@@ -108,7 +108,7 @@ test(t => {
for (const invalid of gBadDelayValues) {
test(t => {
- assert_throws(new TypeError, () => {
+ assert_throws_js(TypeError, () => {
createDiv(t).animate(null, { delay: invalid });
});
}, `Element.animate() does not accept invalid delay value: ${invalid}`);
@@ -127,7 +127,7 @@ for (const invalid of gBadDurationValues) {
continue;
}
test(t => {
- assert_throws(new TypeError, () => {
+ assert_throws_js(TypeError, () => {
createDiv(t).animate(null, invalid);
});
}, 'Element.animate() does not accept invalid duration value: '
@@ -136,7 +136,7 @@ for (const invalid of gBadDurationValues) {
for (const invalid of gBadDurationValues) {
test(t => {
- assert_throws(new TypeError, () => {
+ assert_throws_js(TypeError, () => {
createDiv(t).animate(null, { duration: invalid });
});
}, 'Element.animate() does not accept invalid duration value: '
@@ -146,7 +146,7 @@ for (const invalid of gBadDurationValues) {
for (const invalidEasing of gInvalidEasings) {
test(t => {
- assert_throws(new TypeError, () => {
+ assert_throws_js(TypeError, () => {
createDiv(t).animate({ easing: invalidEasing }, 2000);
});
}, `Element.animate() does not accept invalid easing: '${invalidEasing}'`);
@@ -154,7 +154,7 @@ for (const invalidEasing of gInvalidEasings) {
for (const invalid of gBadIterationStartValues) {
test(t => {
- assert_throws(new TypeError, () => {
+ assert_throws_js(TypeError, () => {
createDiv(t).animate(null, { iterationStart: invalid });
});
}, 'Element.animate() does not accept invalid iterationStart value: ' +
@@ -163,7 +163,7 @@ for (const invalid of gBadIterationStartValues) {
for (const invalid of gBadIterationsValues) {
test(t => {
- assert_throws(new TypeError, () => {
+ assert_throws_js(TypeError, () => {
createDiv(t).animate(null, { iterations: invalid });
});
}, 'Element.animate() does not accept invalid iterations value: ' +
diff --git a/tests/wpt/web-platform-tests/web-animations/interfaces/AnimationEffect/updateTiming.html b/tests/wpt/web-platform-tests/web-animations/interfaces/AnimationEffect/updateTiming.html
index 746f0d74f19..f4f672ab1aa 100644
--- a/tests/wpt/web-platform-tests/web-animations/interfaces/AnimationEffect/updateTiming.html
+++ b/tests/wpt/web-platform-tests/web-animations/interfaces/AnimationEffect/updateTiming.html
@@ -258,7 +258,7 @@ for (const duration of gGoodDurationValues) {
for (const invalid of gBadDurationValues) {
test(t => {
- assert_throws(new TypeError, () => {
+ assert_throws_js(TypeError, () => {
createDiv(t).animate(null, { duration: invalid });
});
}, 'Throws when setting invalid duration: '
diff --git a/tests/wpt/web-platform-tests/web-animations/interfaces/KeyframeEffect/processing-a-keyframes-argument-002.html b/tests/wpt/web-platform-tests/web-animations/interfaces/KeyframeEffect/processing-a-keyframes-argument-002.html
index 8233dc07c5d..e78e13d69aa 100644
--- a/tests/wpt/web-platform-tests/web-animations/interfaces/KeyframeEffect/processing-a-keyframes-argument-002.html
+++ b/tests/wpt/web-platform-tests/web-animations/interfaces/KeyframeEffect/processing-a-keyframes-argument-002.html
@@ -37,7 +37,7 @@ test(() => {
test(() => {
for (const invalidEasing of gInvalidEasings) {
- assert_throws(new TypeError, () => {
+ assert_throws_js(TypeError, () => {
new KeyframeEffect(target, { easing: invalidEasing });
}, `TypeError is thrown for easing '${invalidEasing}'`);
}
@@ -46,7 +46,7 @@ test(() => {
test(() => {
for (const invalidEasing of gInvalidEasings) {
- assert_throws(new TypeError, () => {
+ assert_throws_js(TypeError, () => {
new KeyframeEffect(target, [{ easing: invalidEasing }]);
}, `TypeError is thrown for easing '${invalidEasing}'`);
}
diff --git a/tests/wpt/web-platform-tests/web-animations/interfaces/KeyframeEffect/setKeyframes.html b/tests/wpt/web-platform-tests/web-animations/interfaces/KeyframeEffect/setKeyframes.html
index 675a705891f..a5c81a29bd9 100644
--- a/tests/wpt/web-platform-tests/web-animations/interfaces/KeyframeEffect/setKeyframes.html
+++ b/tests/wpt/web-platform-tests/web-animations/interfaces/KeyframeEffect/setKeyframes.html
@@ -34,7 +34,7 @@ for (const subtest of gKeyframesTests) {
for (const subtest of gInvalidKeyframesTests) {
test(t => {
const effect = new KeyframeEffect(target, {});
- assert_throws(new TypeError, () => {
+ assert_throws_js(TypeError, () => {
effect.setKeyframes(subtest.input);
});
}, `KeyframeEffect constructor throws with ${subtest.desc}`);