From 0338ac2a6a72e7396b26b08891522c53a112f998 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Thu, 29 Jun 2017 10:14:31 -0700 Subject: [PATCH] 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 --HG-- extra : rebase_source : fdaa5855e94d68ce2a70d00fde11582c9a538f45 --- dom/animation/test/chrome/test_restyles.html | 4 +--- layout/style/test/test_restyles_in_smil_animation.html | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dom/animation/test/chrome/test_restyles.html b/dom/animation/test/chrome/test_restyles.html index ab94f9f02e23..c761d6033868 100644 --- a/dom/animation/test/chrome/test_restyles.html +++ b/dom/animation/test/chrome/test_restyles.html @@ -46,9 +46,7 @@ function observeStyling(frameCount, onFrame) { 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); }); diff --git a/layout/style/test/test_restyles_in_smil_animation.html b/layout/style/test/test_restyles_in_smil_animation.html index 64bf0ccc10d0..f984dc688b6d 100644 --- a/layout/style/test/test_restyles_in_smil_animation.html +++ b/layout/style/test/test_restyles_in_smil_animation.html @@ -46,7 +46,7 @@ function observeStyling(frameCount) { 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); });