зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1251837, part 2 - Use pushPrefEnv in doTestActionOverride in window_wheel_default_action.html. r=masayuki
This commit is contained in:
Родитель
4d1db7462a
Коммит
4ffb7332ed
|
@ -1749,15 +1749,19 @@ function doTestActionOverride(aCallback)
|
|||
|
||||
function runTests()
|
||||
{
|
||||
SpecialPowers.setBoolPref("general.smoothScroll", false);
|
||||
|
||||
SpecialPowers.setIntPref("mousewheel.default.action", 1); // scroll
|
||||
SpecialPowers.setIntPref("mousewheel.default.action.override_x", -1);
|
||||
SpecialPowers.setIntPref("mousewheel.with_shift.action", 2); // history
|
||||
SpecialPowers.setIntPref("mousewheel.with_shift.action.override_x", -1);
|
||||
SpecialPowers.setIntPref("mousewheel.with_control.action", 3); // zoom
|
||||
SpecialPowers.setIntPref("mousewheel.with_control.action.override_x", -1);
|
||||
SpecialPowers.pushPrefEnv({"set": [
|
||||
["general.smoothScroll", false],
|
||||
["mousewheel.default.action", 1], // scroll
|
||||
["mousewheel.default.action.override_x", -1],
|
||||
["mousewheel.with_shift.action", 2], // history
|
||||
["mousewheel.with_shift.action.override_x", -1],
|
||||
["mousewheel.with_control.action", 3], // zoom
|
||||
["mousewheel.with_control.action.override_x", -1]]},
|
||||
runTests2);
|
||||
}
|
||||
|
||||
function runTests2()
|
||||
{
|
||||
const kSettings = [
|
||||
{ description: "all delta values are not customized",
|
||||
deltaMultiplierX: 1.0, deltaMultiplierY: 1.0, deltaMultiplierZ: 1.0 },
|
||||
|
@ -1809,15 +1813,8 @@ function runTests()
|
|||
|
||||
function finishTests()
|
||||
{
|
||||
SpecialPowers.clearUserPref("general.smoothScroll");
|
||||
|
||||
SpecialPowers.clearUserPref("mousewheel.default.action");
|
||||
SpecialPowers.clearUserPref("mousewheel.default.action.override_x");
|
||||
SpecialPowers.clearUserPref("mousewheel.with_shift.action");
|
||||
SpecialPowers.clearUserPref("mousewheel.with_shift.action.override_x");
|
||||
SpecialPowers.clearUserPref("mousewheel.with_control.action");
|
||||
SpecialPowers.clearUserPref("mousewheel.with_control.action.override_x");
|
||||
|
||||
SpecialPowers.clearUserPref("mousewheel.default.delta_multiplier_x");
|
||||
SpecialPowers.clearUserPref("mousewheel.default.delta_multiplier_y");
|
||||
SpecialPowers.clearUserPref("mousewheel.default.delta_multiplier_z");
|
||||
|
|
Загрузка…
Ссылка в новой задаче