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
This commit is contained in:
J. Ryan Stinnett 2017-06-29 10:14:31 -07:00
Родитель ba1293b3ca
Коммит 0338ac2a6a
2 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -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);
});

Просмотреть файл

@ -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);
});