Use the user stylesheet for Ahem in old-style reftests.

This commit is contained in:
Simon Sapin 2015-08-06 00:17:30 +02:00
parent 649301fd35
commit d903354687
21 changed files with 2 additions and 137 deletions

2
tests/reftest.rs vendored
View file

@ -19,6 +19,7 @@
extern crate png;
extern crate test;
extern crate url;
extern crate util;
use std::env;
use std::ffi::OsStr;
@ -257,6 +258,7 @@ fn capture(reftest: &Reftest, side: usize) -> (u32, u32, Vec<u8>) {
.stdout(Stdio::null())
.stderr(Stdio::null())
.args(&reftest.servo_args[..])
.arg("--user-stylesheet").arg(util::resource_files::resources_dir_path().join("ahem.css"))
// Allows pixel perfect rendering of Ahem font and the HTML canvas for reftests.
.arg("-Z")
.arg("disable-text-aa,disable-canvas-aa")