mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
Use the user stylesheet for Ahem in old-style reftests.
This commit is contained in:
parent
649301fd35
commit
d903354687
21 changed files with 2 additions and 137 deletions
2
tests/reftest.rs
vendored
2
tests/reftest.rs
vendored
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue