Update web-platform-tests to revision 332b7c4e711d75ead4c0dfbf7f6f0b683206756d

This commit is contained in:
WPT Sync Bot 2019-09-25 10:24:05 +00:00
parent 46611b012e
commit b60afa18f5
389 changed files with 7767 additions and 2421 deletions

View file

@ -14,6 +14,9 @@
test_invalid_value("animation-delay", "infinite");
test_invalid_value("animation-delay", "0");
test_invalid_value("animation-delay", "1s 2s");
test_invalid_value("animation-delay", "initial, -3s");
test_invalid_value("animation-delay", "-3s, initial");
</script>
</body>
</html>

View file

@ -13,6 +13,9 @@
<script>
test_invalid_value("animation-direction", "auto");
test_invalid_value("animation-direction", "normal reverse");
test_invalid_value("animation-direction", "reverse, initial");
test_invalid_value("animation-direction", "initial, reverse");
</script>
</body>
</html>

View file

@ -15,6 +15,9 @@ test_invalid_value("animation-duration", '-3s');
test_invalid_value("animation-duration", '0');
test_invalid_value("animation-duration", 'infinite');
test_invalid_value("animation-duration", '1s 2s');
test_invalid_value("animation-duration", 'initial, 1s');
test_invalid_value("animation-duration", '1s, initial');
</script>
</body>
</html>

View file

@ -13,6 +13,9 @@
<script>
test_invalid_value("animation-fill-mode", "auto");
test_invalid_value("animation-fill-mode", "forwards backwards");
test_invalid_value("animation-fill-mode", "both, initial");
test_invalid_value("animation-fill-mode", "initial, both");
</script>
</body>
</html>

View file

@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Animations: parsing animation with invalid values</title>
<link rel="help" href="https://drafts.csswg.org/css-animations/#propdef-animation">
<meta name="assert" content="animation supports only the grammar '<single-animation> #'.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
</head>
<body>
<script>
test_invalid_value("animation", "1s 2s 3s");
test_invalid_value("animation", "-1s -2s");
test_invalid_value("animation", "steps(1) steps(2)");
test_invalid_value("animation", "1 2");
test_invalid_value("animation", "reverse alternate anim");
test_invalid_value("animation", "both backwards anim");
test_invalid_value("animation", "paused running anim");
test_invalid_value("animation", "anim1 anim2");
</script>
</body>
</html>

View file

@ -14,6 +14,9 @@
test_invalid_value("animation-iteration-count", "auto");
test_invalid_value("animation-iteration-count", "-2");
test_invalid_value("animation-iteration-count", "3 4");
test_invalid_value("animation-iteration-count", "initial, 4");
test_invalid_value("animation-iteration-count", "4, initial");
</script>
</body>
</html>

View file

@ -13,6 +13,9 @@
<script>
test_invalid_value("animation-play-state", "auto");
test_invalid_value("animation-play-state", "paused running");
test_invalid_value("animation-play-state", "paused, initial");
test_invalid_value("animation-play-state", "initial, paused");
</script>
</body>
</html>

View file

@ -0,0 +1,48 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Animations: animation sets longhands</title>
<link rel="help" href="https://drafts.csswg.org/css-animations/#propdef-animation">
<meta name="assert" content="animation supports the full grammar '<single-animation> #'.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/shorthand-testcommon.js"></script>
</head>
<body>
<script>
test_shorthand_value('animation', 'anim paused both reverse 4 1s -3s cubic-bezier(0, -2, 1, 3)', {
'animation-duration': '1s',
'animation-timing-function': 'cubic-bezier(0, -2, 1, 3)',
'animation-delay': '-3s',
'animation-iteration-count': '4',
'animation-direction': 'reverse',
'animation-fill-mode': 'both',
'animation-play-state': 'paused',
'animation-name': 'anim'
});
test_shorthand_value('animation', 'anim paused both reverse, 4 1s -3s cubic-bezier(0, -2, 1, 3)', {
'animation-duration': '0s, 1s',
'animation-timing-function': 'ease, cubic-bezier(0, -2, 1, 3)',
'animation-delay': '0s, -3s',
'animation-iteration-count': '1, 4',
'animation-direction': 'reverse, normal',
'animation-fill-mode': 'both, none',
'animation-play-state': 'paused, running',
'animation-name': 'anim, none'
});
test_shorthand_value('animation', '4 1s -3s cubic-bezier(0, -2, 1, 3), anim paused both reverse', {
'animation-duration': '1s, 0s',
'animation-timing-function': 'cubic-bezier(0, -2, 1, 3), ease',
'animation-delay': '-3s, 0s',
'animation-iteration-count': '4, 1',
'animation-direction': 'normal, reverse',
'animation-fill-mode': 'none, both',
'animation-play-state': 'running, paused',
'animation-name': 'none, anim'
});
</script>
</body>
</html>

View file

@ -18,6 +18,9 @@ test_invalid_value("animation-timing-function", "cubic-bezier(1, 2, 3, infinite)
test_invalid_value("animation-timing-function", "cubic-bezier(1, 2, 3, 4, 5)");
test_invalid_value("animation-timing-function", "cubic-bezier(-0.1, 0.1, 0.5, 0.9)");
test_invalid_value("animation-timing-function", "cubic-bezier(0.5, 0.1, 1.1, 0.9)");
test_invalid_value("animation-timing-function", "initial, cubic-bezier(0, -2, 1, 3)");
test_invalid_value("animation-timing-function", "cubic-bezier(0, -2, 1, 3), initial");
</script>
</body>
</html>

View file

@ -0,0 +1,38 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Animations: parsing animation with valid values</title>
<link rel="help" href="https://drafts.csswg.org/css-animations/#propdef-animation">
<meta name="assert" content="animation supports the full grammar '<single-animation> #'.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
</head>
<body>
<script>
// <single-animation> = <time> || <easing-function> || <time> ||
// <single-animation-iteration-count> || <single-animation-direction> ||
// <single-animation-fill-mode> || <single-animation-play-state> ||
// [ none | <keyframes-name> ]
test_valid_value("animation", "1s", ["1s", "1s ease 0s 1 normal none running none"]);
test_valid_value("animation", "cubic-bezier(0, -2, 1, 3)", ["cubic-bezier(0, -2, 1, 3)", "0s cubic-bezier(0, -2, 1, 3) 0s 1 normal none running none"]);
test_valid_value("animation", "1s -3s", ["1s -3s", "1s ease -3s 1 normal none running none"]);
test_valid_value("animation", "4", ["4", "0s ease 0s 4 normal none running none"]);
test_valid_value("animation", "reverse", ["reverse", "0s ease 0s 1 reverse none running none"]);
test_valid_value("animation", "both", ["both", "0s ease 0s 1 normal both running none"]);
test_valid_value("animation", "paused", ["paused", "0s ease 0s 1 normal none paused none"]);
test_valid_value("animation", "none", ["none", "0s ease 0s 1 normal none running none"]);
test_valid_value("animation", "anim", ["anim", "0s ease 0s 1 normal none running anim"]);
test_valid_value("animation", "anim paused both reverse 4 1s -3s cubic-bezier(0, -2, 1, 3)",
"1s cubic-bezier(0, -2, 1, 3) -3s 4 reverse both paused anim");
test_valid_value("animation", "anim paused both reverse, 4 1s -3s cubic-bezier(0, -2, 1, 3)",
"0s ease 0s 1 reverse both paused anim, 1s cubic-bezier(0, -2, 1, 3) -3s 4 normal none running none");
// TODO: Add test with a single negative time.
// TODO: Add test with a single timing-function keyword.
</script>
</body>
</html>