Bug 1259313 - Need a test for checking result of ParseEasing in GetKeyframeListFromPropertyIndexedKeyframe. r?birtles draft
authorDaisuke Akatsuka <daisuke@mozilla-japan.org>
Mon, 23 May 2016 11:54:55 +0900
changeset 369572 040847fd8cea923937bfd8bd460ff7ec8223836a
parent 368365 c4449eab07d39e20ea315603f1b1863eeed7dcfe
child 521560 6f7dfafd54adf7e9a36a6038452c6638616565a0
push id18848
push userbmo:daisuke@mozilla-japan.org
push dateMon, 23 May 2016 02:55:11 +0000
reviewersbirtles
bugs1259313
milestone49.0a1
Bug 1259313 - Need a test for checking result of ParseEasing in GetKeyframeListFromPropertyIndexedKeyframe. r?birtles MozReview-Commit-ID: IBAg87EsFUQ
testing/web-platform/tests/web-animations/resources/keyframe-utils.js
--- a/testing/web-platform/tests/web-animations/resources/keyframe-utils.js
+++ b/testing/web-platform/tests/web-animations/resources/keyframe-utils.js
@@ -172,16 +172,22 @@ var gPropertyIndexedKeyframesTests = [
                left: "10px" }] },
   { desc:   "a one property two value property-indexed keyframes specification"
             + " where the second value is invalid",
     input:  { left: ["10px", "invalid"] },
     output: [{ offset: null, computedOffset: 0, easing: "linear",
                left: "10px" },
              { offset: null, computedOffset: 1, easing: "linear",
                left: "invalid" }] },
+  { desc:   "specified easing property-indexed keyframes specification",
+    input:  { left: ["10px", "20px"], easing: "step-start" },
+    output: [{ offset: null, computedOffset: 0, easing: "step-start",
+               left: "10px" },
+             { offset: null, computedOffset: 1, easing: "step-start",
+               left: "20px" }] },
 ];
 
 var gKeyframeSequenceTests = [
   { desc:   "a one property one keyframe sequence",
     input:  [{ offset: 1, left: "10px" }],
     output: [{ offset: null, computedOffset: 1, easing: "linear",
                left: "10px" }] },
   { desc:   "a one property two keyframe sequence",