Bug 1177651 - Ensure that the preventDefault calls work with APZ enabled if the test is running slowly. r=dvander

This commit is contained in:
Kartikaya Gupta 2015-06-30 06:43:08 -04:00
parent a91fce0ff8
commit 5a90b6ad27

View File

@ -1330,6 +1330,9 @@ function* testBody()
SpecialPowers.setIntPref("mousewheel.with_win.delta_multiplier_x", 100);
SpecialPowers.setIntPref("mousewheel.with_win.delta_multiplier_y", 100);
SpecialPowers.setIntPref("mousewheel.with_win.delta_multiplier_z", 100);
// If APZ is enabled we should ensure the preventDefault calls work even
// if the test is running slowly.
SpecialPowers.setIntPref("apz.content_response_timeout", 2000);
yield* prepareScrollUnits();
yield* doTests();
@ -1352,6 +1355,7 @@ function* testBody()
SpecialPowers.clearUserPref("mousewheel.with_win.delta_multiplier_x");
SpecialPowers.clearUserPref("mousewheel.with_win.delta_multiplier_y");
SpecialPowers.clearUserPref("mousewheel.with_win.delta_multiplier_z");
SpecialPowers.clearUserPref("apz.content_response_timeout");
}
var gTestContinuation = null;