mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 1242876 - turn on the display before reftest. r=ahalberstadt
This commit is contained in:
parent
f50db30160
commit
8f5046dca5
@ -49,5 +49,19 @@ setPermissions();
|
||||
var reftest = {};
|
||||
Cu.import("chrome://reftest/content/reftest.jsm", reftest);
|
||||
|
||||
// Start the reftests
|
||||
reftest.OnRefTestLoad(win);
|
||||
// Prevent display off during testing.
|
||||
navigator.mozPower.screenEnabled = true;
|
||||
var settingLock = navigator.mozSettings.createLock();
|
||||
var settingResult = settingLock.set({
|
||||
'screen.timeout': 0
|
||||
});
|
||||
settingResult.onsuccess = function () {
|
||||
dump("Set screen.time to 0\n");
|
||||
// Start the reftests
|
||||
reftest.OnRefTestLoad(win);
|
||||
}
|
||||
settingResult.onerror = function () {
|
||||
dump("Change screen.time failed\n");
|
||||
// Start the reftests
|
||||
reftest.OnRefTestLoad(win);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user