diff options
author | Benjamin Otte <otte@redhat.com> | 2019-05-09 03:11:48 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2019-05-12 17:27:01 +0200 |
commit | 8be95ca34815e33b08688e198561e5bc32161a20 (patch) | |
tree | 0659c92f50654003cdab88991512f645a938be4d /testsuite | |
parent | 5da58ba47d3e4e6b5ba49b96f17360f2c214a96f (diff) | |
download | gtk+-8be95ca34815e33b08688e198561e5bc32161a20.tar.gz |
css: Add data URL parsing to images
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/reftests/data-url.css | 3 | ||||
-rw-r--r-- | testsuite/reftests/data-url.ref.ui | 12 | ||||
-rw-r--r-- | testsuite/reftests/data-url.ui | 8 | ||||
-rw-r--r-- | testsuite/reftests/meson.build | 3 |
4 files changed, 26 insertions, 0 deletions
diff --git a/testsuite/reftests/data-url.css b/testsuite/reftests/data-url.css new file mode 100644 index 0000000000..94d9625690 --- /dev/null +++ b/testsuite/reftests/data-url.css @@ -0,0 +1,3 @@ +.background { + background: red url('data:,<svg><rect width="20" height="20" style="fill:lime"/></svg>'); +} diff --git a/testsuite/reftests/data-url.ref.ui b/testsuite/reftests/data-url.ref.ui new file mode 100644 index 0000000000..7a09474075 --- /dev/null +++ b/testsuite/reftests/data-url.ref.ui @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <object class="GtkWindow"> + <property name="type">popup</property> + <child> + <object class="GtkPicture"> + <property name="can-shrink">0</property> + <property name="paintable">green-20x20.png</property> + </object> + </child> + </object> +</interface> diff --git a/testsuite/reftests/data-url.ui b/testsuite/reftests/data-url.ui new file mode 100644 index 0000000000..6fa417228a --- /dev/null +++ b/testsuite/reftests/data-url.ui @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <object class="GtkWindow" id="window1"> + <property name="width_request">20</property> + <property name="height_request">20</property> + <property name="type">popup</property> + </object> +</interface> diff --git a/testsuite/reftests/meson.build b/testsuite/reftests/meson.build index 3bbfe1abdd..6039ae709f 100644 --- a/testsuite/reftests/meson.build +++ b/testsuite/reftests/meson.build @@ -194,6 +194,9 @@ testdata = [ 'css-multi-state.css', 'css-multi-state.ref.ui', 'css-multi-state.ui', + 'data-url.css', + 'data-url.ref.ui', + 'data-url.ui', 'fixed-widget-stacking.ref.ui', 'fixed-widget-stacking.ui', 'flipping-icons.ref.ui', |