Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/web-animations/resources/effect-easing-tests.js

Issue 2212873003: W3C auto test importer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/imported/wpt/web-animations/resources/effect-easing-tests.js
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/resources/effect-easing-tests.js b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/resources/effect-easing-tests.js
index edce67ede44b403c9d3b9885d7679dfea198ca0f..49c4ff5b8c2e8a5d734502873c0302b7c4ef49ac 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/resources/effect-easing-tests.js
+++ b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/resources/effect-easing-tests.js
@@ -1,13 +1,42 @@
var gEffectEasingTests = [
{
- desc: 'steps(start) function',
+ desc: 'step-start function',
+ easing: 'step-start',
+ easingFunction: stepStart(1),
+ serialization: 'steps(1, start)'
+ },
+ {
+ desc: 'steps(1, start) function',
+ easing: 'steps(1, start)',
+ easingFunction: stepStart(1)
+ },
+ {
+ desc: 'steps(2, start) function',
easing: 'steps(2, start)',
easingFunction: stepStart(2)
},
{
- desc: 'steps(end) function',
+ desc: 'step-end function',
+ easing: 'step-end',
+ easingFunction: stepEnd(1),
+ serialization: 'steps(1)'
+ },
+ {
+ desc: 'steps(1) function',
+ easing: 'steps(1)',
+ easingFunction: stepEnd(1)
+ },
+ {
+ desc: 'steps(1, end) function',
+ easing: 'steps(1, end)',
+ easingFunction: stepEnd(1),
+ serialization: 'steps(1)'
+ },
+ {
+ desc: 'steps(2, end) function',
easing: 'steps(2, end)',
- easingFunction: stepEnd(2)
+ easingFunction: stepEnd(2),
+ serialization: 'steps(2)'
},
{
desc: 'linear function',
@@ -40,3 +69,30 @@ var gEffectEasingTests = [
easingFunction: cubicBezier(0, 1.5, 1, 1.5)
}
];
+
+var gInvalidEasingTests = [
+ {
+ easing: ''
+ },
+ {
+ easing: 'test'
+ },
+ {
+ easing: 'cubic-bezier(1.1, 0, 1, 1)'
+ },
+ {
+ easing: 'cubic-bezier(0, 0, 1.1, 1)'
+ },
+ {
+ easing: 'cubic-bezier(-0.1, 0, 1, 1)'
+ },
+ {
+ easing: 'cubic-bezier(0, 0, -0.1, 1)'
+ },
+ {
+ easing: 'steps(-1, start)'
+ },
+ {
+ easing: 'steps(0.1, start)'
+ },
+];

Powered by Google App Engine
This is Rietveld 408576698