Bug 1361645 - Added the styloVsGecko reftest condition draft
authorShing Lyu <slyu@mozilla.com>
Wed, 03 May 2017 11:36:21 +0800
changeset 584313 d22eff00fcddecb58fcd8f5dc72a4f120e23e5b9
parent 584312 5ae2cc64391caacc857b56017ba028f36b3c6ba9
child 584314 60301c78ab894ea37fbd2054c4961751998f77d8
child 584315 d83e06bcf9e780d293ff999f33d3536893fc1c49
push id60681
push userbmo:shing.lyu@gmail.com
push dateThu, 25 May 2017 07:09:14 +0000
bugs1361645
milestone55.0a1
Bug 1361645 - Added the styloVsGecko reftest condition MozReview-Commit-ID: CJlly5Ffclq
layout/tools/reftest/reftest.jsm
--- a/layout/tools/reftest/reftest.jsm
+++ b/layout/tools/reftest/reftest.jsm
@@ -709,21 +709,22 @@ function BuildConditionSandbox(aURL) {
 #endif
 
 #if MOZ_WEBRTC
     sandbox.webrtc = true;
 #else
     sandbox.webrtc = false;
 #endif
 
-sandbox.stylo =
 #ifdef MOZ_STYLO
-    prefs.getBoolPref("layout.css.servo.enabled", false);
+    sandbox.stylo = prefs.getBoolPref("layout.css.servo.enabled", false);
+    sandbox.styloVsGecko = gCompareStyloToGecko;
 #else
-    false;
+    sandbox.stylo = false;
+    sandbox.styloVsGecko = false;
 #endif
 
 #ifdef RELEASE_OR_BETA
     sandbox.release_or_beta = true;
 #else
     sandbox.release_or_beta = false;
 #endif