Bug 1181678 - Improve the check for skipping test_layerization if APZ is disabled. r=botond

This commit is contained in:
Kartikaya Gupta 2015-07-09 09:54:09 -04:00
parent 2ac9fc7c20
commit 88bd31d648

View File

@ -137,7 +137,7 @@ function driveTest() {
function startTest() {
// This test requires APZ - if it's not enabled, skip it.
var apzEnabled = SpecialPowers.getBoolPref("layers.async-pan-zoom.enabled");
var apzEnabled = SpecialPowers.getDOMWindowUtils(window).asyncPanZoomEnabled;
if (!apzEnabled) {
ok(true, "APZ not enabled, skipping test");
SimpleTest.finish();