Auto merge of #7456 - jdm:cssprefs, r=jdm

Enable experimental layout prefs for CSSWG reftests.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7456)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-08-30 14:04:10 -06:00
commit ccb8e46557
2 changed files with 15 additions and 0 deletions

View file

@ -65,6 +65,10 @@ class ServoTestharnessExecutor(ProcessTestExecutor):
args = ["--cpu", "--hard-fail", "-u", "Servo/wptrunner", "-z", self.test_url(test)] args = ["--cpu", "--hard-fail", "-u", "Servo/wptrunner", "-z", self.test_url(test)]
for stylesheet in self.browser.user_stylesheets: for stylesheet in self.browser.user_stylesheets:
args += ["--user-stylesheet", stylesheet] args += ["--user-stylesheet", stylesheet]
for pref in test.environment.get('prefs', {}):
args += ["--pref", pref]
debug_args, command = browser_command(self.binary, args, self.debug_info) debug_args, command = browser_command(self.binary, args, self.debug_info)
self.command = command self.command = command
@ -195,6 +199,8 @@ class ServoRefTestExecutor(ProcessTestExecutor):
"--output=%s" % output_path, full_url] "--output=%s" % output_path, full_url]
for stylesheet in self.browser.user_stylesheets: for stylesheet in self.browser.user_stylesheets:
self.command += ["--user-stylesheet", stylesheet] self.command += ["--user-stylesheet", stylesheet]
for pref in test.environment.get('prefs', {}):
self.command += ["--pref", pref]
env = os.environ.copy() env = os.environ.copy()
env["HOST_FILE"] = self.hosts_path env["HOST_FILE"] = self.hosts_path

View file

@ -0,0 +1,9 @@
prefs: ["layout.flex.enabled:true",
"layout.flex-direction.enabled:true",
"layout.columns.enabled:true",
"layout.column-width.enabled:true",
"layout.column-count.enabled:true",
"layout.column-gap.enabled:true",
"layout.writing-mode.enabled:true",
"layout.text-orientation.enabled:true",
"layout.viewport.enabled:true"]