Bug 1377541 - Change the order of serialized value for mochitest. r?birtles draft
authorMantaroh Yoshinaga <mantaroh@gmail.com>
Tue, 01 Aug 2017 23:20:35 +0900
changeset 619070 23115d650d6085b94801e465f260fece7e8b07dd
parent 618186 6d1b50a370b4adffbb1ee73b9f51707c90d6a2b1
child 619071 2be914dac57cdeda15734ac4bc7db47e5b0cbff1
push id71562
push usermantaroh@gmail.com
push dateTue, 01 Aug 2017 14:30:59 +0000
reviewersbirtles
bugs1377541
milestone56.0a1
Bug 1377541 - Change the order of serialized value for mochitest. r?birtles MozReview-Commit-ID: 1zL93y3Lkxd
dom/animation/test/css-animations/file_keyframeeffect-getkeyframes.html
--- a/dom/animation/test/css-animations/file_keyframeeffect-getkeyframes.html
+++ b/dom/animation/test/css-animations/file_keyframeeffect-getkeyframes.html
@@ -573,19 +573,19 @@ test(function(t) {
 
   div.style.animation = 'anim-filter-drop-shadow 100s';
   var frames = getKeyframes(div);
 
   assert_equals(frames.length, 2, "number of frames");
 
   var expected = [
     { offset: 0, computedOffset: 0, easing: "ease",
-      filter: "drop-shadow(10px 10px 10px rgb(0, 255, 0))" },
+      filter: "drop-shadow(rgb(0, 255, 0) 10px 10px 10px)" },
     { offset: 1, computedOffset: 1, easing: "ease",
-      filter: "drop-shadow(50px 30px 10px rgb(255, 0, 0))" },
+      filter: "drop-shadow(rgb(255, 0, 0) 50px 30px 10px)" },
   ];
 
   for (var i = 0; i < frames.length; i++) {
     assert_frames_equal(frames[i], expected[i], "ComputedKeyframe #" + i);
   }
 }, 'KeyframeEffectReadOnly.getKeyframes() returns expected values for ' +
    'animation with drop-shadow of filter property');
 
@@ -601,19 +601,19 @@ test(function(t) {
                          '0 0 3.2px rgb(0, 0, 255)';
   div.style.animation = 'anim-text-shadow 100s';
   var frames = getKeyframes(div);
 
   assert_equals(frames.length, 2, "number of frames");
 
   var expected = [
     { offset: 0, computedOffset: 0, easing: "ease",
-      textShadow: "1px 1px 2px rgb(0, 0, 0),"
-                  + " 0px 0px 16px rgb(0, 0, 255),"
-                  + " 0px 0px 3.2px rgb(0, 0, 255)" },
+      textShadow: "rgb(0, 0, 0) 1px 1px 2px,"
+                  + " rgb(0, 0, 255) 0px 0px 16px,"
+                  + " rgb(0, 0, 255) 0px 0px 3.2px" },
     { offset: 1, computedOffset: 1, easing: "ease", textShadow: "none" },
   ];
 
   for (var i = 0; i < frames.length; i++) {
     assert_frames_equal(frames[i], expected[i], "ComputedKeyframe #" + i);
   }
 }, 'KeyframeEffectReadOnly.getKeyframes() returns expected values for ' +
    'animations with text-shadow properties and missing keyframes');