Bug 1320608 - Test case for transform animation on table element. r?birtles draft
authorHiroyuki Ikezoe <hikezoe@mozilla.com>
Tue, 08 May 2018 08:38:25 +0900
changeset 792275 9b0cce2c6d9352fcf7cf2f41e5ee59ca78c7fac4
parent 792224 e5239c8cc7fecc2a2a4878d81a6cb14564b1d55a
child 792276 e5ccb96222d36fd9ddb2bd98f9f1732a7ef07d3a
push id109059
push userhikezoe@mozilla.com
push dateMon, 07 May 2018 23:41:14 +0000
reviewersbirtles
bugs1320608
milestone62.0a1
Bug 1320608 - Test case for transform animation on table element. r?birtles MozReview-Commit-ID: ASfUQQ41FB
dom/animation/test/chrome/test_running_on_compositor.html
--- a/dom/animation/test/chrome/test_running_on_compositor.html
+++ b/dom/animation/test/chrome/test_running_on_compositor.html
@@ -965,10 +965,28 @@ promise_test(async t => {
      'Transition suppressed by an animation which is overridden by an ' +
      '!important rule reports that it is NOT running on the compositor');
   assert_animation_is_not_running_on_compositor(animation,
      'Animation overridden by an !important rule reports that it is ' +
      'NOT running on the compositor');
 }, 'Neither transition nor animation does run on the compositor if the ' +
    'property is overridden by an !important rule');
 
+promise_test(async t => {
+  var div = addDiv(null, { style: 'display: table;' });
+  var animation =
+    div.animate({ transform: ['rotate(0deg)', 'rotate(360deg)'] },
+                100 * MS_PER_SEC);
+
+  await animation.ready;
+
+  if (animationStartsRightNow(animation)) {
+    await waitForFrame();
+  }
+
+  await waitForPaints();
+
+  assert_animation_is_running_on_compositor(animation,
+    'Transform animation on table element should be running on the compositor');
+}, 'Transform animation on table element runs on the compositor');
+
 </script>
 </body>