Bug 1275142 - Ensure display style change is painted. r=birtles

MozReview-Commit-ID: 5CylqPdRFhE
This commit is contained in:
Hiroyuki Ikezoe 2016-07-13 16:22:02 +09:00
parent 286c4461e3
commit cf0599e349

View File

@ -89,11 +89,15 @@ add_task(function* smil_is_in_display_none_subtree() {
div.style.display = "none";
getComputedStyle(div).display;
yield waitForPaintFlushed();
var displayNoneMarkers = yield observeStyling(5);
is(displayNoneMarkers.length, 0, "should never restyle if display:none");
div.style.display = "";
getComputedStyle(div).display;
yield waitForPaintFlushed();
var displayAgainMarkers = yield observeStyling(5);
is(displayAgainMarkers.length, 5, "should restyle again");