[librsvg: 8/29] Use test sizes that we can divide evenly...
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 8/29] Use test sizes that we can divide evenly...
- Date: Tue, 6 Feb 2018 21:04:45 +0000 (UTC)
commit 4d27370a339ab2bd010386fef4737820f9d14fbd
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Feb 6 10:07:22 2018 -0600
Use test sizes that we can divide evenly...
tests/api.c | 14 +++++++-------
tests/fixtures/api/example.svg | 6 +++---
2 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/tests/api.c b/tests/api.c
index 9628cfd..73827d1 100644
--- a/tests/api.c
+++ b/tests/api.c
@@ -70,8 +70,8 @@ get_test_filename () {
NULL);
}
-#define EXAMPLE_WIDTH 123
-#define EXAMPLE_HEIGHT 456
+#define EXAMPLE_WIDTH 100
+#define EXAMPLE_HEIGHT 400
#define XZOOM 2
#define YZOOM 3
@@ -81,13 +81,13 @@ get_test_filename () {
#define EXAMPLE_ONE_X 0
#define EXAMPLE_ONE_Y 0
-#define EXAMPLE_ONE_W 123
-#define EXAMPLE_ONE_H 228
+#define EXAMPLE_ONE_W 100
+#define EXAMPLE_ONE_H 200
#define EXAMPLE_TWO_X 0
-#define EXAMPLE_TWO_Y 228
-#define EXAMPLE_TWO_W 123
-#define EXAMPLE_TWO_H 228
+#define EXAMPLE_TWO_Y 200
+#define EXAMPLE_TWO_W 100
+#define EXAMPLE_TWO_H 200
static GdkPixbuf *
pixbuf_from_file (const char *filename, GError **error)
diff --git a/tests/fixtures/api/example.svg b/tests/fixtures/api/example.svg
index 986c116..850fba3 100644
--- a/tests/fixtures/api/example.svg
+++ b/tests/fixtures/api/example.svg
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<svg xmlns="http://www.w3.org/2000/svg" width="123" height="456" viewBox="0 0 123 456">
- <rect id="one" x="0" y="0" width="123" height="228" fill="rgb(0,255,0)"/>
- <rect id="two" x="0" y="228" width="123" height="228" fill="rgb(0,0,255)"/>
+<svg xmlns="http://www.w3.org/2000/svg" width="100" height="400" viewBox="0 0 100 400">
+ <rect id="one" x="0" y="0" width="100" height="200" fill="rgb(0,255,0)"/>
+ <rect id="two" x="0" y="200" width="100" height="200" fill="rgb(0,0,255)"/>
</svg>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]