Bug 1332206 - Rename effect easing tests to easing tests; r?hiro draft
authorBrian Birtles <birtles@gmail.com>
Tue, 07 Feb 2017 07:54:40 +0900
changeset 479750 5cb1ecb6a3c2fd9665325e6e457508315ace6ae5
parent 479749 8ab0aaf8644c5cb731ba0a49e1d705f7b5debf80
child 479751 85a7b3b8eff58a3c3be5f8448da80610832cdec4
push id44344
push userbbirtles@mozilla.com
push dateTue, 07 Feb 2017 06:04:57 +0000
reviewershiro
bugs1332206
milestone54.0a1
Bug 1332206 - Rename effect easing tests to easing tests; r?hiro These tests are generic enough to be used for either effect easing or keyframe easing. MozReview-Commit-ID: 5cpnkiCv0z1
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/web-animations/animation-model/keyframe-effects/effect-value-transformed-distance.html
testing/web-platform/tests/web-animations/interfaces/AnimationEffectTiming/easing.html
testing/web-platform/tests/web-animations/interfaces/KeyframeEffect/effect-easing.html
testing/web-platform/tests/web-animations/resources/easing-tests.js
testing/web-platform/tests/web-animations/resources/effect-easing-tests.js
testing/web-platform/tests/web-animations/timing-model/time-transformations/transformed-progress.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -61491,17 +61491,17 @@
      {}
     ]
    ],
    "web-animations/animation-model/animation-types/property-types.js": [
     [
      {}
     ]
    ],
-   "web-animations/resources/effect-easing-tests.js": [
+   "web-animations/resources/easing-tests.js": [
     [
      {}
     ]
    ],
    "web-animations/resources/keyframe-utils.js": [
     [
      {}
     ]
@@ -203743,17 +203743,17 @@
    "10d9ee521240475a1729c2facfcea8b50342614e",
    "testharness"
   ],
   "web-animations/animation-model/keyframe-effects/effect-value-overlapping-keyframes.html": [
    "a79db70a385ad767263f285c9401b66611087e42",
    "testharness"
   ],
   "web-animations/animation-model/keyframe-effects/effect-value-transformed-distance.html": [
-   "cf0631bb268ea1ba2710b10851cb92969dea1fbb",
+   "c8e3b458a9bb34f0674c75318642b438d43bc530",
    "testharness"
   ],
   "web-animations/animation-model/keyframe-effects/effect-value-visibility.html": [
    "b01c7c5145c183fdca80dec4ca1966b0f72a7003",
    "testharness"
   ],
   "web-animations/animation-model/keyframe-effects/spacing-keyframes.html": [
    "318bc877791852b0829a3e10cb19e2a20a15adab",
@@ -203831,17 +203831,17 @@
    "ab150d71daf36949d4d6804033e19c734a68552d",
    "testharness"
   ],
   "web-animations/interfaces/AnimationEffectTiming/duration.html": [
    "2e0f0a270b8acd3d345732327ee2eabd32bdb2b2",
    "testharness"
   ],
   "web-animations/interfaces/AnimationEffectTiming/easing.html": [
-   "e1055f83a2774e4c406b813cfb19d3ea4db83970",
+   "10a1a0244e3f1ff5196a587f78e58165d5e7eeb2",
    "testharness"
   ],
   "web-animations/interfaces/AnimationEffectTiming/endDelay.html": [
    "644eed9bf43bb0332ee33842ba0ad4423d90fc90",
    "testharness"
   ],
   "web-animations/interfaces/AnimationEffectTiming/fill.html": [
    "bf5b77d3c96e737700e51f8a2c5b8e2b9629902f",
@@ -203887,17 +203887,17 @@
    "577241478fdeca6257711e9f90fec64372bd5637",
    "testharness"
   ],
   "web-animations/interfaces/KeyframeEffect/copy-contructor.html": [
    "e1dfb5c05807a37974ecce98bb8c683cc291bfe4",
    "testharness"
   ],
   "web-animations/interfaces/KeyframeEffect/effect-easing.html": [
-   "0bdb64bdaa288b65e4a5eb9abd0d780cc5303a2d",
+   "ffbcc5eca862491a2866ac46cf1b030e17100881",
    "testharness"
   ],
   "web-animations/interfaces/KeyframeEffect/getComputedTiming.html": [
    "c9dcf7c17010e5495007e000b33aeb4dc89f92b7",
    "testharness"
   ],
   "web-animations/interfaces/KeyframeEffect/iterationComposite.html": [
    "5b7dbc28de885751ea952f4fecc2bd07cb3cea11",
@@ -203922,18 +203922,18 @@
   "web-animations/interfaces/KeyframeEffectReadOnly/copy-contructor.html": [
    "8ef986f13e7fe7ffeb7403f647b4169ac0d6a138",
    "testharness"
   ],
   "web-animations/interfaces/KeyframeEffectReadOnly/spacing.html": [
    "ffca3a0ad5c7b08242224b80c52ebb8b9b7bfce6",
    "testharness"
   ],
-  "web-animations/resources/effect-easing-tests.js": [
-   "d06d30ecf22b4019162d6650b99393c19d28ecaa",
+  "web-animations/resources/easing-tests.js": [
+   "78fa1da90b2d65cb5bed9978b8d032e85de8d16e",
    "support"
   ],
   "web-animations/resources/keyframe-utils.js": [
    "7a0f21838f4bbda51fe7e0b5d8e55952c6cdcbd4",
    "support"
   ],
   "web-animations/testcommon.js": [
    "001012b71248cdecba02215c827ab437b672e8c6",
@@ -203971,17 +203971,17 @@
    "6e8e029f813046c3da69b4ff0c9d03d2a56b38a4",
    "testharness"
   ],
   "web-animations/timing-model/animations/updating-the-finished-state.html": [
    "266f1b793aa74a59486081f3ba8f6cbb482e714b",
    "testharness"
   ],
   "web-animations/timing-model/time-transformations/transformed-progress.html": [
-   "fb4a278d34be56d5b2f07d03e30c55fd03eb1fae",
+   "5d32b7e7ea13f0093d645a29ba57977b1ca289c8",
    "testharness"
   ],
   "webaudio/.gitignore": [
    "11bc81247643b0a9fc665f1e4b1f592cc1f4c670",
    "support"
   ],
   "webaudio/OWNERS": [
    "d98264a830bdab63db07061e8b25080188e1aeab",
--- a/testing/web-platform/tests/web-animations/animation-model/keyframe-effects/effect-value-transformed-distance.html
+++ b/testing/web-platform/tests/web-animations/animation-model/keyframe-effects/effect-value-transformed-distance.html
@@ -1,26 +1,26 @@
 <!DOCTYPE html>
 <meta charset=utf-8>
 <title>Tests for calculation of the transformed distance when computing an effect value</title>
 <link rel="help" href="https://w3c.github.io/web-animations/#the-effect-value-of-a-keyframe-animation-effect">
 <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>
+<script src="../../resources/easing-tests.js"></script>
 <body>
 <div id="log"></div>
 <div id="target"></div>
 <script>
 'use strict';
 
 // Test that a linear-equivalent cubic-bezier easing applied to a keyframe does
 // not alter (including clamping) the result.
 
-gEffectEasingTests.forEach(params => {
+gEasingTests.forEach(params => {
   const linearEquivalentEasings = [ 'cubic-bezier(0, 0, 0, 0)',
                                     'cubic-bezier(1, 1, 1, 1)' ];
   test(function(t) {
     linearEquivalentEasings.forEach(linearEquivalentEasing => {
       const timing = { duration: 1000,
                        fill: 'forwards',
                        easing: params.easing };
 
--- a/testing/web-platform/tests/web-animations/interfaces/AnimationEffectTiming/easing.html
+++ b/testing/web-platform/tests/web-animations/interfaces/AnimationEffectTiming/easing.html
@@ -1,32 +1,32 @@
 <!DOCTYPE html>
 <meta charset=utf-8>
 <title>easing tests</title>
 <link rel="help" href="https://w3c.github.io/web-animations/#dom-animationeffecttiming-easing">
 <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>
+<script src="../../resources/easing-tests.js"></script>
 <body>
 <div id="log"></div>
 <script>
 'use strict';
 
 function assert_progress(animation, currentTime, easingFunction) {
   animation.currentTime = currentTime;
   var portion = currentTime / animation.effect.timing.duration;
   assert_approx_equals(animation.effect.getComputedTiming().progress,
                        easingFunction(portion),
                        0.01,
                        'The progress of the animation should be approximately ' +
                        easingFunction(portion) + ' at ' + currentTime + 'ms');
 }
 
-gEffectEasingTests.forEach(function(options) {
+gEasingTests.forEach(function(options) {
   test(function(t) {
     var target = createDiv(t);
     var anim = target.animate([ { opacity: 0 }, { opacity: 1 } ],
                               { duration: 1000 * MS_PER_SEC,
                                 fill: 'forwards' });
     anim.effect.timing.easing = options.easing;
     assert_equals(anim.effect.timing.easing,
                   options.serialization || options.easing);
--- a/testing/web-platform/tests/web-animations/interfaces/KeyframeEffect/effect-easing.html
+++ b/testing/web-platform/tests/web-animations/interfaces/KeyframeEffect/effect-easing.html
@@ -1,17 +1,17 @@
 <!DOCTYPE html>
 <meta charset=utf-8>
 <title>Effect-level easing tests</title>
 <link rel="help" href="http://w3c.github.io/web-animations/#calculating-the-transformed-time">
 <link rel="author" title="Hiroyuki Ikezoe" href="mailto:hiikezoe@mozilla-japan.org">
 <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>
+<script src="../../resources/easing-tests.js"></script>
 <body>
 <div id="log"></div>
 <div id="target"></div>
 <script>
 "use strict";
 
 function assert_style_left_at(animation, time, easingFunction) {
   animation.currentTime = time;
rename from testing/web-platform/tests/web-animations/resources/effect-easing-tests.js
rename to testing/web-platform/tests/web-animations/resources/easing-tests.js
--- a/testing/web-platform/tests/web-animations/resources/effect-easing-tests.js
+++ b/testing/web-platform/tests/web-animations/resources/easing-tests.js
@@ -1,9 +1,9 @@
-var gEffectEasingTests = [
+var gEasingTests = [
   {
     desc: 'step-start function',
     easing: 'step-start',
     easingFunction: stepStart(1),
     serialization: 'steps(1, start)'
   },
   {
     desc: 'steps(1, start) function',
--- a/testing/web-platform/tests/web-animations/timing-model/time-transformations/transformed-progress.html
+++ b/testing/web-platform/tests/web-animations/timing-model/time-transformations/transformed-progress.html
@@ -1,23 +1,23 @@
 <!DOCTYPE html>
 <meta charset=utf-8>
 <title>Tests for the transformed progress</title>
 <link rel="help" href="https://w3c.github.io/web-animations/#calculating-the-transformed-progress">
 <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>
+<script src="../../resources/easing-tests.js"></script>
 <body>
 <div id="log"></div>
 <div id="target"></div>
 <script>
 'use strict';
 
-gEffectEasingTests.forEach(params => {
+gEasingTests.forEach(params => {
   test(function(t) {
     const target = createDiv(t);
     const anim   = target.animate(null, { duration: 1000,
                                           fill: 'forwards',
                                           easing: params.easing });
 
     [ 0, 250, 500, 750, 1000 ].forEach(sampleTime => {
       anim.currentTime = sampleTime;