зеркало из https://github.com/mozilla/gecko-dev.git
Bug 886624 - Defect - Tests fail on HiDPI systems. r=jimm
This commit is contained in:
Родитель
95117da528
Коммит
8f3283d59c
|
@ -252,6 +252,9 @@ function test() {
|
|||
return;
|
||||
}
|
||||
|
||||
// XXX need this until bugs 886624 and 859742 are fully resolved
|
||||
setDevPixelEqualToPx();
|
||||
|
||||
requestLongerTimeout(3);
|
||||
runTests();
|
||||
}
|
||||
|
|
|
@ -198,6 +198,9 @@ function test() {
|
|||
return;
|
||||
}
|
||||
|
||||
// XXX need this until bugs 886624 and 859742 are fully resolved
|
||||
setDevPixelEqualToPx();
|
||||
|
||||
requestLongerTimeout(3);
|
||||
runTests();
|
||||
}
|
||||
|
|
|
@ -27,6 +27,15 @@ function isLandscapeMode()
|
|||
return (MetroUtils.snappedState == Ci.nsIWinMetroUtils.fullScreenLandscape);
|
||||
}
|
||||
|
||||
function setDevPixelEqualToPx()
|
||||
{
|
||||
todo(false, "test depends on devPixelsPerPx set to 1.0 - see bugs 886624 and 859742");
|
||||
SpecialPowers.setCharPref("layout.css.devPixelsPerPx", "1.0");
|
||||
registerCleanupFunction(function () {
|
||||
SpecialPowers.clearUserPref("layout.css.devPixelsPerPx");
|
||||
});
|
||||
}
|
||||
|
||||
function checkContextUIMenuItemCount(aCount)
|
||||
{
|
||||
let visibleCount = 0;
|
||||
|
|
Загрузка…
Ссылка в новой задаче