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:
Joel Maher 2020-05-27 21:22:54 +00:00
Родитель 76400f97fe
Коммит 9e0ee8988a
4 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -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: