зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1138444 - Add Mulet detection for reftests. r=jgriffin
--HG-- extra : rebase_source : 5b50f02fe229b8d0dfaaba3924061dc6b985f3b8
This commit is contained in:
Родитель
97690309a8
Коммит
c87d8ae9ed
|
@ -41,7 +41,7 @@ class B2GDesktopReftest(RefTest):
|
|||
assert(self.marionette.wait_for_port())
|
||||
self.marionette.start_session()
|
||||
if self.build_type == "mulet":
|
||||
self._wait_for_homescreen(timeout=15)
|
||||
self._wait_for_homescreen(timeout=300)
|
||||
self._unlockScreen()
|
||||
self.marionette.set_context(self.marionette.CONTEXT_CHROME)
|
||||
|
||||
|
|
|
@ -60,6 +60,7 @@ const BLANK_URL_FOR_CLEARING = "data:text/html;charset=UTF-8,%3C%21%2D%2DCLEAR%2
|
|||
var gBrowser;
|
||||
// Are we testing web content loaded in a separate process?
|
||||
var gBrowserIsRemote; // bool
|
||||
var gB2GisMulet; // bool
|
||||
// Are we using <iframe mozbrowser>?
|
||||
var gBrowserIsIframe; // bool
|
||||
var gBrowserMessageManager;
|
||||
|
@ -248,6 +249,12 @@ this.OnRefTestLoad = function OnRefTestLoad(win)
|
|||
gBrowserIsRemote = false;
|
||||
}
|
||||
|
||||
try {
|
||||
gB2GisMulet = prefs.getBoolPref("b2g.is_mulet");
|
||||
} catch (e) {
|
||||
gB2GisMulet = false;
|
||||
}
|
||||
|
||||
try {
|
||||
gBrowserIsIframe = prefs.getBoolPref("reftest.browser.iframe.enabled");
|
||||
} catch (e) {
|
||||
|
@ -730,6 +737,7 @@ function BuildConditionSandbox(aURL) {
|
|||
// Tests shouldn't care about this except for when they need to
|
||||
// crash the content process
|
||||
sandbox.browserIsRemote = gBrowserIsRemote;
|
||||
sandbox.Mulet = gB2GisMulet;
|
||||
|
||||
try {
|
||||
sandbox.asyncPanZoom = prefs.getBoolPref("layers.async-pan-zoom.enabled");
|
||||
|
|
Загрузка…
Ссылка в новой задаче