Bug 1298554 - Remove the animation.id mochitest. r=birtles draft
authorMantaroh Yoshinaga <mantaroh@gmail.com>
Mon, 12 Sep 2016 10:23:10 +0900
changeset 412464 b9f7f257a7509ad26d839644e77b2afc7877cd2f
parent 412448 7e873393cc11d326338779e5a3ed2da031e30936
child 530992 fe3bc3d602d18db17382d293dcf684e9f74c41eb
push id29179
push usermantaroh@gmail.com
push dateMon, 12 Sep 2016 01:23:32 +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>