mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision 7ec633bbfbc01de4972e65f81f593983d9cdc17d
This commit is contained in:
parent
24674687ac
commit
36e52003a7
107 changed files with 1452 additions and 646 deletions
|
@ -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: ' +
|
||||
|
|
|
@ -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: '
|
||||
|
|
|
@ -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}'`);
|
||||
}
|
||||
|
|
|
@ -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}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue