summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2019-05-26 00:50:13 +0200
committerBenjamin Otte <otte@redhat.com>2019-05-26 00:50:13 +0200
commit928c85ccc390bcd0285609373ea7859cfe072f10 (patch)
tree132c22d5fe14b4c5523510751c57e365c2ffbba7 /testsuite
parentfda643952d2c6fcbd31106c49ec24af018bbcc76 (diff)
downloadgtk+-928c85ccc390bcd0285609373ea7859cfe072f10.tar.gz
rendernodeparser: Parse Cairo nodes
We also print the script, but we don't parse it yet.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/gsk/compare/empty-cairo.node1
-rw-r--r--testsuite/gsk/compare/empty-cairo.pngbin0 -> 153 bytes
-rw-r--r--testsuite/gsk/meson.build3
-rw-r--r--testsuite/gsk/nodeparser/empty-cairo.node1
-rw-r--r--testsuite/gsk/nodeparser/empty-cairo.ref.node5
5 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/gsk/compare/empty-cairo.node b/testsuite/gsk/compare/empty-cairo.node
new file mode 100644
index 0000000000..1987994306
--- /dev/null
+++ b/testsuite/gsk/compare/empty-cairo.node
@@ -0,0 +1 @@
+cairo { }
diff --git a/testsuite/gsk/compare/empty-cairo.png b/testsuite/gsk/compare/empty-cairo.png
new file mode 100644
index 0000000000..3a032a391b
--- /dev/null
+++ b/testsuite/gsk/compare/empty-cairo.png
Binary files differ
diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build
index 4751dfd537..4f469603a9 100644
--- a/testsuite/gsk/meson.build
+++ b/testsuite/gsk/meson.build
@@ -27,6 +27,7 @@ compare_render_tests = [
'empty-blend',
'empty-blur',
'empty-border',
+ 'empty-cairo',
'empty-clip',
'empty-color',
'empty-color-matrix',
@@ -101,6 +102,8 @@ node_parser_tests = [
'empty-blur.ref.node',
'empty-border.node',
'empty-border.ref.node',
+ 'empty-cairo.node',
+ 'empty-cairo.ref.node',
'empty-clip.node',
'empty-clip.ref.node',
'empty-color.node',
diff --git a/testsuite/gsk/nodeparser/empty-cairo.node b/testsuite/gsk/nodeparser/empty-cairo.node
new file mode 100644
index 0000000000..1987994306
--- /dev/null
+++ b/testsuite/gsk/nodeparser/empty-cairo.node
@@ -0,0 +1 @@
+cairo { }
diff --git a/testsuite/gsk/nodeparser/empty-cairo.ref.node b/testsuite/gsk/nodeparser/empty-cairo.ref.node
new file mode 100644
index 0000000000..4dca846961
--- /dev/null
+++ b/testsuite/gsk/nodeparser/empty-cairo.ref.node
@@ -0,0 +1,5 @@
+cairo {
+ bounds: 0 0 50 50;
+ pixels: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAIAAACRXR/mAAAABmJLR0QA/wD/AP+gvaeTAAAATklEQVRYhe3OMQHAIADAMJh/aXgCA3t6wZEoyNxjjfd8twP/tAqtQqvQKrQKrUKr0Cq0Cq1Cq9AqtAqtQqvQKrQKrUKr0Cq0Cq1Cq9AqDsEHAi9RKkB7AAAAAElFTkSuQmCC");
+ script: url("data:;base64,JSFDYWlyb1NjcmlwdAo8PCAvY29udGVudCAvL0NPTE9SX0FMUEhBIC93aWR0aCA1MCAvaGVpZ2h0IDUwID4+IHN1cmZhY2UgY29udGV4dAoxIDAgMC44IHJnYiBzZXQtc291cmNlCnBhaW50CnBvcAo=");
+}