Bug 1402170 - Use KeyframeEffect constructor in processing-a-keyframes-argument-002.html; r?hiro draft
authorBrian Birtles <birtles@gmail.com>
Fri, 22 Sep 2017 16:12:44 +0900
changeset 673233 98c0dd058a04f0fdd9e8c7dfe0455951787af504
parent 673232 1fef9cd1843177b6a89c5742dd4b018e3b1c8d1c
child 673234 91aaa221c9232de5ac58855969c0f24d10c9d8d0
push id82504
push userbmo:bbirtles@mozilla.com
push dateMon, 02 Oct 2017 05:09:17 +0000
reviewershiro
bugs1402170
milestone58.0a1
Bug 1402170 - Use KeyframeEffect constructor in processing-a-keyframes-argument-002.html; r?hiro MozReview-Commit-ID: 3JTFxw6Va1r
testing/web-platform/tests/web-animations/interfaces/KeyframeEffect/processing-a-keyframes-argument-002.html
--- a/testing/web-platform/tests/web-animations/interfaces/KeyframeEffect/processing-a-keyframes-argument-002.html
+++ b/testing/web-platform/tests/web-animations/interfaces/KeyframeEffect/processing-a-keyframes-argument-002.html
@@ -9,49 +9,49 @@
 <body>
 <div id="log"></div>
 <div id="target"></div>
 <script>
 'use strict';
 
 test(function(t) {
   for (const [easing, expected] of gEasingParsingTests) {
-    const effect = new KeyframeEffectReadOnly(target, {
+    const effect = new KeyframeEffect(target, {
       left: ['10px', '20px'],
       easing: easing
     });
     assert_equals(effect.getKeyframes()[0].easing, expected,
                   `resulting easing for '${easing}'`);
   }
 }, 'easing values are parsed correctly when passed to the ' +
-   'KeyframeEffectReadOnly constructor in a property-indexed keyframe');
+   'KeyframeEffect constructor in a property-indexed keyframe');
 
 test(function(t) {
   for (const [easing, expected] of gEasingParsingTests) {
-    const effect = new KeyframeEffectReadOnly(target, [
+    const effect = new KeyframeEffect(target, [
       { offset: 0, left: '10px', easing: easing },
       { offset: 1, left: '20px' }
     ]);
     assert_equals(effect.getKeyframes()[0].easing, expected,
                   `resulting easing for '${easing}'`);
   }
 }, 'easing values are parsed correctly when passed to the ' +
-   'KeyframeEffectReadOnly constructor in regular keyframes');
+   'KeyframeEffect constructor in regular keyframes');
 
 test(function(t) {
   for (const invalidEasing of gInvalidEasings) {
     assert_throws(new TypeError, () => {
-      new KeyframeEffectReadOnly(target, { easing: invalidEasing });
+      new KeyframeEffect(target, { easing: invalidEasing });
     }, `TypeError is thrown for easing '${invalidEasing}'`);
   }
 }, 'invalid easing values are correctly rejected when passed to the ' +
-   'KeyframeEffectReadOnly constructor in regular keyframes');
+   'KeyframeEffect constructor in regular keyframes');
 
 test(function(t) {
   for (const invalidEasing of gInvalidEasings) {
     assert_throws(new TypeError, () => {
-      new KeyframeEffectReadOnly(target, [{ easing: invalidEasing }]);
+      new KeyframeEffect(target, [{ easing: invalidEasing }]);
     }, `TypeError is thrown for easing '${invalidEasing}'`);
   }
 }, 'invalid easing values are correctly rejected when passed to the ' +
-   'KeyframeEffectReadOnly constructor in a keyframe sequence');
+   'KeyframeEffect constructor in a keyframe sequence');
 
 </script>