mirror of
https://github.com/servo/servo.git
synced 2025-10-01 00:59:15 +01:00
Add disable-canvas-aa option to test runner.
This commit is contained in:
parent
adef44183d
commit
322fd5ad9d
5 changed files with 18 additions and 4 deletions
|
@ -250,9 +250,9 @@ fn capture(reftest: &Reftest, side: usize) -> (u32, u32, Vec<u8>) {
|
|||
.stdout(Stdio::null())
|
||||
.stderr(Stdio::null())
|
||||
.args(&reftest.servo_args[..])
|
||||
// Allows pixel perfect rendering of Ahem font for reftests.
|
||||
// Allows pixel perfect rendering of Ahem font and the HTML canvas for reftests.
|
||||
.arg("-Z")
|
||||
.arg("disable-text-aa")
|
||||
.arg("disable-text-aa,disable-canvas-aa")
|
||||
.args(&["-f", "-o"])
|
||||
.arg(&png_filename)
|
||||
.arg(&{
|
||||
|
|
|
@ -186,7 +186,7 @@ class ServoRefTestExecutor(ProcessTestExecutor):
|
|||
|
||||
with TempFilename(self.tempdir) as output_path:
|
||||
self.command = [self.binary, "--cpu", "--hard-fail", "--exit",
|
||||
"-Z", "disable-text-aa", "--output=%s" % output_path,
|
||||
"-Z", "disable-text-aa,disable-canvas-aa", "--output=%s" % output_path,
|
||||
full_url]
|
||||
|
||||
env = os.environ.copy()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue