зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1641160 - add support for isCoverageBuild in reftests. r=gbrown
add support for isCoverageBuild in reftests. Differential Revision: https://phabricator.services.mozilla.com/D77139
This commit is contained in:
Родитель
76400f97fe
Коммит
9e0ee8988a
|
@ -69,6 +69,7 @@ for (let [key, val] of Object.entries({
|
|||
contentGfxInfo: null,
|
||||
focusFilterMode: "all",
|
||||
compareRetainedDisplayLists: false,
|
||||
isCoverageBuild: false,
|
||||
|
||||
browser: undefined,
|
||||
// Are we testing web content loaded in a separate process?
|
||||
|
|
|
@ -441,6 +441,7 @@ function BuildConditionSandbox(aURL) {
|
|||
var xr = Cc[NS_XREAPPINFO_CONTRACTID].getService(Ci.nsIXULRuntime);
|
||||
var appInfo = Cc[NS_XREAPPINFO_CONTRACTID].getService(Ci.nsIXULAppInfo);
|
||||
sandbox.isDebugBuild = g.debug.isDebugBuild;
|
||||
sandbox.isCoverageBuild = g.isCoverageBuild;
|
||||
var prefs = Cc["@mozilla.org/preferences-service;1"].
|
||||
getService(Ci.nsIPrefBranch);
|
||||
var env = Cc["@mozilla.org/process/environment;1"].
|
||||
|
|
|
@ -281,6 +281,10 @@ function InitAndStartRefTests()
|
|||
g.focusFilterMode = prefs.getStringPref("reftest.focusFilterMode");
|
||||
} catch(e) {}
|
||||
|
||||
try {
|
||||
g.isCoverageBuild = prefs.getBoolPref("reftest.isCoverageBuild");
|
||||
} catch(e) {}
|
||||
|
||||
try {
|
||||
g.compareRetainedDisplayLists = prefs.getBoolPref("reftest.compareRetainedDisplayLists");
|
||||
} catch (e) {}
|
||||
|
|
|
@ -395,6 +395,7 @@ class RefTest(object):
|
|||
prefs['gfx.font_rendering.ahem_antialias_none'] = True
|
||||
# Disable dark scrollbars because it's semi-transparent.
|
||||
prefs['widget.disable-dark-scrollbar'] = True
|
||||
prefs['reftest.isCoverageBuild'] = mozinfo.info.get('ccov', False)
|
||||
|
||||
# Set tests to run or manifests to parse.
|
||||
if tests:
|
||||
|
|
Загрузка…
Ссылка в новой задаче