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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/web-animations/keyframe-effect/effect-easing.html

Issue 1923043002: Import web-platform-tests@028d354aba4c8ee6700def957a45f3927241d8b0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix expectations after the test harness was updated Created 4 years, 8 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/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) {

Powered by Google App Engine
This is Rietveld 408576698