Bug 1379516 - Skip offscreen throttling tests on stylo. r?birtles
MozReview-Commit-ID: F3k3snSRDJG
--- a/dom/animation/test/chrome/test_restyles.html
+++ b/dom/animation/test/chrome/test_restyles.html
@@ -62,17 +62,19 @@ function ensureElementRemoval(aElement)
SimpleTest.expectAssertions(0, 1); // bug 1332970
SimpleTest.waitForExplicitFinish();
var omtaEnabled = isOMTAEnabled();
var isAndroid = !!navigator.userAgent.includes("Android");
var offscreenThrottlingEnabled =
- SpecialPowers.getBoolPref('dom.animations.offscreen-throttling');
+ SpecialPowers.getBoolPref('dom.animations.offscreen-throttling') &&
+ !isStyledByServo(); // Bug 1303235 : For stylo we don't yet accumulate change
+ // hints which are used for offscreen throttling.
function add_task_if_omta_enabled(test) {
if (!omtaEnabled) {
info(test.name + " is skipped because OMTA is disabled");
return;
}
add_task(test);
}