[librsvg: 7/9] Use 'green' rather than 'lime' for the brightness and contrast tests
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 7/9] Use 'green' rather than 'lime' for the brightness and contrast tests
- Date: Wed, 26 May 2021 15:04:44 +0000 (UTC)
commit d4650c67d9e05b14d0b2828805b6534ce08286fe
Author: Federico Mena Quintero <federico gnome org>
Date: Wed May 26 10:01:26 2021 -0500
Use 'green' rather than 'lime' for the brightness and contrast tests
It turns out that `lime` doesn't change when tweaked with
brightness(125%) or contrast(125%). We need a darker color, and
'green' actually changes with those filter functions applied.
tests/src/filters.rs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tests/src/filters.rs b/tests/src/filters.rs
index 32c85c2f..0f4e660c 100644
--- a/tests/src/filters.rs
+++ b/tests/src/filters.rs
@@ -162,7 +162,7 @@ test_compare_render_output!(
brightness_filter_func,
br##"<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="400"
height="400">
- <rect x="100" y="100" width="200" height="200" fill="lime" filter="brightness(125%)"/>
+ <rect x="100" y="100" width="200" height="200" fill="green" filter="brightness(125%)"/>
</svg>
"##,
br##"<?xml version="1.0" encoding="UTF-8"?>
@@ -177,7 +177,7 @@ br##"<?xml version="1.0" encoding="UTF-8"?>
</filter>
</defs>
- <rect x="100" y="100" width="200" height="200" fill="lime" filter="url(#filter)"/>
+ <rect x="100" y="100" width="200" height="200" fill="green" filter="url(#filter)"/>
</svg>
"##,
);
@@ -186,7 +186,7 @@ test_compare_render_output!(
contrast_filter_func,
br##"<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="400"
height="400">
- <rect x="100" y="100" width="200" height="200" fill="lime" filter="contrast(125%)"/>
+ <rect x="100" y="100" width="200" height="200" fill="green" filter="contrast(125%)"/>
</svg>
"##,
br##"<?xml version="1.0" encoding="UTF-8"?>
@@ -201,7 +201,7 @@ br##"<?xml version="1.0" encoding="UTF-8"?>
</filter>
</defs>
- <rect x="100" y="100" width="200" height="200" fill="lime" filter="url(#filter)"/>
+ <rect x="100" y="100" width="200" height="200" fill="green" filter="url(#filter)"/>
</svg>
"##,
);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]