Bug 1371457 - Update animation restyle tests. r=hiro draft
authorJ. Ryan Stinnett <jryans@gmail.com>
Thu, 29 Jun 2017 10:14:31 -0700
changeset 602212 027b56ebcf40ee79ebbfa100d46d53ee01838601
parent 602211 c57dc5e153e2230890bc285a5c7ec3a7b80ebbff
child 635517 0b2f323ad20e6d0bfd3b66050fe5c2d427a5d8ca
push id66342
push userbmo:jryans@gmail.com
push dateThu, 29 Jun 2017 21:00:49 +0000
reviewershiro
bugs1371457
milestone56.0a1
Bug 1371457 - Update animation restyle tests. r=hiro Update the various animation restyle tests to check the new animation only data inside the restyle marker. MozReview-Commit-ID: HEe8x45IhHj
dom/animation/test/chrome/test_restyles.html
layout/style/test/test_restyles_in_smil_animation.html
--- a/dom/animation/test/chrome/test_restyles.html
+++ b/dom/animation/test/chrome/test_restyles.html
@@ -41,19 +41,17 @@ function observeStyling(frameCount, onFr
   docShell.recordProfileTimelineMarkers = true;
   docShell.popProfileTimelineMarkers();
 
   return new Promise(function(resolve) {
     return waitForAnimationFrames(frameCount, onFrame).then(function() {
       var markers = docShell.popProfileTimelineMarkers();
       docShell.recordProfileTimelineMarkers = false;
       var stylingMarkers = markers.filter(function(marker, index) {
-        return marker.name == 'Styles' &&
-               (marker.restyleHint == 'eRestyle_CSSAnimations' ||
-                marker.restyleHint == 'eRestyle_CSSTransitions');
+        return marker.name == 'Styles' && marker.isAnimationOnly;
       });
       resolve(stylingMarkers);
     });
   });
 }
 
 function ensureElementRemoval(aElement) {
   return new Promise(function(resolve) {
--- a/layout/style/test/test_restyles_in_smil_animation.html
+++ b/layout/style/test/test_restyles_in_smil_animation.html
@@ -41,17 +41,17 @@ function observeStyling(frameCount) {
   docShell.recordProfileTimelineMarkers = true;
   docShell.popProfileTimelineMarkers();
 
   return new Promise(function(resolve) {
     return waitForAnimationFrames(frameCount).then(function() {
       var markers = docShell.popProfileTimelineMarkers();
       docShell.recordProfileTimelineMarkers = false;
       var stylingMarkers = markers.filter(function(marker, index) {
-        return marker.restyleHint == "eRestyle_StyleAttribute_Animations";
+        return marker.name == 'Styles' && marker.isAnimationOnly;
       });
       resolve(stylingMarkers);
     });
   });
 }
 
 function ensureElementRemoval(aElement) {
   return new Promise(function(resolve) {