From 12a2cde8a552886a7e020c0c50ea4ad0c4b7d411 Mon Sep 17 00:00:00 2001 From: Bryan Bell Date: Sat, 19 Jul 2014 01:35:44 -0700 Subject: [PATCH] Modify borders ref test to work on OS X Issue https://github.com/mozilla/servo/issues/2848 has details. This commit uncomments the borders ref test in basic.list and modifies the test to work with viewports up to 4096px wide. Also as a workaround change the html element background to white, otherwise pixel (0,0) is black (it should be white since the border at pixel (0, 0) is white. The bug is mostly likely a regression in rust-layers. --- src/test/ref/basic.list | 2 +- src/test/ref/borders.png | Bin 3027 -> 2090 bytes src/test/ref/borders_a.html | 17 +++++++++++++---- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/test/ref/basic.list b/src/test/ref/basic.list index b6e85d9a646..e54c66d3ad1 100644 --- a/src/test/ref/basic.list +++ b/src/test/ref/basic.list @@ -16,7 +16,7 @@ == root_height_a.html root_height_b.html == png_rgba_colorspace_a.html png_rgba_colorspace_b.html == border_style_none_a.html border_style_none_b.html -# == borders_a.html borders_b.html +== borders_a.html borders_b.html == acid1_a.html acid1_b.html == text_decoration_cached.html text_decoration_cached_ref.html # text_decoration_propagation_a.html text_decoration_propagation_b.html diff --git a/src/test/ref/borders.png b/src/test/ref/borders.png index 7d7ee68b35a18a8523764fe14dc807dcbe294682..bd9644b9553925f56f14d1ccea6867cf68ec0638 100644 GIT binary patch literal 2090 zcmeAS@N?(olHy`uVBq!ia0y~yU~d4jS8%WaNycBFg@F`XlDE4HkOqRE&b#Y@6lZ}) zWHAE+H&B*an2}-D90{Nxdx@v7EBifmVKxo1of%WE1BE0@Tq8=H^K)}k^GX<;i&7Iy zQd1PlGfOfQ+&z5*!W;R-f!Zc{x;TbZ+9iO$LGopXz?HK$r}?Oa>5^Lkj~Bge9QJ09EM1aR91J z5R0;n_y13Ps?7*d5z`=!Pc4x~4nAc^{%w_)kB5fL1J6oEe1Y`)`@f%`SfL>@uZ83g z0qOtI1PyZkL)-}vW&;N!D476(f)fKMc>zJkk4OKRD}E+Hc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