Use headless mode for content tests

This commit is contained in:
Keegan McAllister 2013-10-18 17:00:19 -07:00
parent 1b785f150c
commit dcc697c8b1

View file

@ -85,7 +85,7 @@ fn run_test(file: ~str) {
let path = os::make_absolute(&Path::new(file));
// FIXME (#1094): not the right way to transform a path
let infile = ~"file://" + path.display().to_str();
let res = run::process_output("./servo", [infile]);
let res = run::process_output("./servo", [~"-z", infile]);
let out = str::from_utf8(res.output);
io::print(out);
let lines: ~[&str] = out.split_iter('\n').collect();