Bug 1296360 - Add a dwrite enabled check to the reftest sandbox. r=lsalzman
authorMason Chang <mchang@mozilla.com>
Thu, 18 Aug 2016 16:06:51 -0700
changeset 310057 f6a32bf33e423d7bb2fadc1c100c0de317170b54
parent 310056 856b1b82372a8273af0c327bb5b6ce5e8e7ff359
child 310116 cb1295738c37d58a454dedf4a7ac15b90effe8c1
push id80770
push usermchang@mozilla.com
push dateThu, 18 Aug 2016 23:07:03 +0000
treeherdermozilla-inbound@f6a32bf33e42 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslsalzman
bugs1296360
milestone51.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1296360 - Add a dwrite enabled check to the reftest sandbox. r=lsalzman
layout/tools/reftest/reftest.jsm
--- a/layout/tools/reftest/reftest.jsm
+++ b/layout/tools/reftest/reftest.jsm
@@ -637,18 +637,20 @@ function BuildConditionSandbox(aURL) {
     sandbox.smallScreen = false;
     if (gContainingWindow.innerWidth < 800 || gContainingWindow.innerHeight < 1000) {
         sandbox.smallScreen = true;
     }
 
     var gfxInfo = (NS_GFXINFO_CONTRACTID in CC) && CC[NS_GFXINFO_CONTRACTID].getService(CI.nsIGfxInfo);
     try {
       sandbox.d2d = gfxInfo.D2DEnabled;
+      sandbox.dwrite = gfxInfo.DWriteEnabled;
     } catch (e) {
       sandbox.d2d = false;
+      sandbox.dwrite = false;
     }
     var info = gfxInfo.getInfo();
     sandbox.azureCairo = info.AzureCanvasBackend == "cairo";
     sandbox.azureQuartz = info.AzureCanvasBackend == "quartz";
     sandbox.azureSkia = info.AzureCanvasBackend == "skia";
     sandbox.skiaContent = info.AzureContentBackend == "skia";
     sandbox.azureSkiaGL = info.AzureCanvasAccelerated; // FIXME: assumes GL right now
     // true if we are using the same Azure backend for rendering canvas and content