Index: third_party/WebKit/LayoutTests/imported/web-platform-tests/web-animations/keyframe-effect/effect-easing.html |
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/web-animations/keyframe-effect/effect-easing.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/web-animations/keyframe-effect/effect-easing.html |
index 76a9bd0691788870f0907114ff7b60f5868f7bef..a788f65d948f308349994b0daf22241fbca52e28 100644 |
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/web-animations/keyframe-effect/effect-easing.html |
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/web-animations/keyframe-effect/effect-easing.html |
@@ -6,6 +6,7 @@ |
<script src="../../../../resources/testharness.js"></script> |
<script src="../../../../resources/testharnessreport.js"></script> |
<script src="../testcommon.js"></script> |
+<script src="../resources/effect-easing-tests.js"></script> |
<body> |
<div id="log"></div> |
<div id="target"></div> |
@@ -22,54 +23,6 @@ function assert_style_left_at(animation, time, easingFunction) { |
easingFunction(portion) * 100 + ' at ' + time + 'ms'); |
} |
-var gEffectEasingTests = [ |
- { |
- desc: 'steps(start) function', |
- easing: 'steps(2, start)', |
- easingFunction: stepStart(2) |
- }, |
- { |
- desc: 'steps(end) function', |
- easing: 'steps(2, end)', |
- easingFunction: stepEnd(2) |
- }, |
- { |
- desc: 'linear function', |
- easing: 'linear', // cubic-bezier(0, 0, 1.0, 1.0) |
- easingFunction: cubicBezier(0, 0, 1.0, 1.0) |
- }, |
- { |
- desc: 'ease function', |
- easing: 'ease', // cubic-bezier(0.25, 0.1, 0.25, 1.0) |
- easingFunction: cubicBezier(0.25, 0.1, 0.25, 1.0) |
- }, |
- { |
- desc: 'ease-in function', |
- easing: 'ease-in', // cubic-bezier(0.42, 0, 1.0, 1.0) |
- easingFunction: cubicBezier(0.42, 0, 1.0, 1.0) |
- }, |
- { |
- desc: 'ease-in-out function', |
- easing: 'ease-in-out', // cubic-bezier(0.42, 0, 0.58, 1.0) |
- easingFunction: cubicBezier(0.42, 0, 0.58, 1.0) |
- }, |
- { |
- desc: 'ease-out function', |
- easing: 'ease-out', // cubic-bezier(0, 0, 0.58, 1.0) |
- easingFunction: cubicBezier(0, 0, 0.58, 1.0) |
- }, |
- { |
- desc: 'easing function which produces values greater than 1', |
- easing: 'cubic-bezier(0, 1.5, 1, 1.5)', |
- easingFunction: cubicBezier(0, 1.5, 1, 1.5) |
- }, |
- { |
- desc: 'easing function which produces negative values', |
- easing: 'cubic-bezier(0, -0.5 ,1, -0.5)', |
- easingFunction: cubicBezier(0, -0.5, 1, -0.5) |
- }, |
-]; |
- |
gEffectEasingTests.forEach(function(options) { |
test(function(t) { |
var target = createDiv(t); |
@@ -694,7 +647,7 @@ var gStepTimingFunctionTests = [ |
{ currentTime: 2500, progress: 0.5 }, |
] |
} |
-] |
+]; |
gStepTimingFunctionTests.forEach(function(options) { |
test(function(t) { |