Bug 1298554 - Remove the animation.id mochitest. r=birtles
authorMantaroh Yoshinaga <mantaroh@gmail.com>
Mon, 12 Sep 2016 10:23:10 +0900
changeset 344695 de68ac5bf9e4f75b4116d41ec4992edf4391163c
parent 344694 ce71dd457ebe603861dbf1101802623460cb8f81
child 344696 073c18f01cc10c680ee61178e299a86609a9261e
push id8
push userfmarier@mozilla.com
push dateThu, 15 Sep 2016 05:23:20 +0000
reviewersbirtles
bugs1298554
milestone51.0a1
Bug 1298554 - Remove the animation.id mochitest. r=birtles MozReview-Commit-ID: 8VTAl9WO7eF
dom/animation/test/css-animations/file_animation-id.html
testing/web-platform/tests/web-animations/interfaces/Animation/id.html
--- a/dom/animation/test/css-animations/file_animation-id.html
+++ b/dom/animation/test/css-animations/file_animation-id.html
@@ -13,20 +13,12 @@ test(function(t) {
   div.style.animation = 'abc 100s';
   var animation = div.getAnimations()[0];
   assert_equals(animation.id, '', 'id for CSS Animation is initially empty');
   animation.id = 'anim'
 
   assert_equals(animation.id, 'anim', 'animation.id reflects the value set');
 }, 'Animation.id for CSS Animations');
 
-test(function(t) {
-  var div = addDiv(t);
-  var animation = div.animate({}, 100 * MS_PER_SEC);
-  assert_equals(animation.id, '', 'id for CSS Animation is initially empty');
-  animation.id = 'anim'
-
-  assert_equals(animation.id, 'anim', 'animation.id reflects the value set');
-}, 'Animation.id for CSS Animations');
 done();
 </script>
 </body>
 </html>
--- a/testing/web-platform/tests/web-animations/interfaces/Animation/id.html
+++ b/testing/web-platform/tests/web-animations/interfaces/Animation/id.html
@@ -9,16 +9,21 @@
 <body>
 <div id="log"></div>
 <script>
 "use strict";
 
 test(function(t) {
   var div = createDiv(t);
   var animation = div.animate({}, 100 * MS_PER_SEC);
-  assert_equals(animation.id, '', 'id for CSS Animation is initially empty');
-  animation.id = 'anim'
+  assert_equals(animation.id, '', 'id for Animation is initially empty');
+}, 'Animation.id initial value');
+
+test(function(t) {
+  var div = createDiv(t);
+  var animation = div.animate({}, 100 * MS_PER_SEC);
+  animation.id = 'anim';
 
   assert_equals(animation.id, 'anim', 'animation.id reflects the value set');
-}, 'Animation.id for CSS Animations');
+}, 'Animation.id setter');
 
 </script>
 </body>