From 4d9283599710d38ac4312d6aff256dde31d19025 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 22 May 2011 04:46:42 +0200 Subject: [PATCH] reftests: Add a reftest to check shorthands do work Checks shorthands are properly unpacked in the CSS and that they indeed set all relevant properties. Or at least border-width does. --- tests/reftests/Makefile.am | 3 +++ tests/reftests/shorthand-entry-border.css | 21 ++++++++++++++++++++ tests/reftests/shorthand-entry-border.ref.ui | 15 ++++++++++++++ tests/reftests/shorthand-entry-border.ui | 14 +++++++++++++ 4 files changed, 53 insertions(+) create mode 100644 tests/reftests/shorthand-entry-border.css create mode 100644 tests/reftests/shorthand-entry-border.ref.ui create mode 100644 tests/reftests/shorthand-entry-border.ui diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am index 106cbed990..b76907db64 100644 --- a/tests/reftests/Makefile.am +++ b/tests/reftests/Makefile.am @@ -91,6 +91,9 @@ EXTRA_DIST += \ quit-mnemonic.ui \ rotated-layout.ref.ui \ rotated-layout.ui \ + shorthand-entry-border.css \ + shorthand-entry-border.ref.ui \ + shorthand-entry-border.ui \ simple.ref.ui \ simple.ui \ toplevel-vs-popup.ref.ui \ diff --git a/tests/reftests/shorthand-entry-border.css b/tests/reftests/shorthand-entry-border.css new file mode 100644 index 0000000000..eca547b42b --- /dev/null +++ b/tests/reftests/shorthand-entry-border.css @@ -0,0 +1,21 @@ +* { + engine: none; + border-radius: 0; +} + +GtkWidget { + border-right-width: 5; +} + +GtkEntry { + border-width: 10 20; +} + +.entry { + border-left-width: 10; + border-right-width: 10; +} + +#reference { + border-width: 10; +} diff --git a/tests/reftests/shorthand-entry-border.ref.ui b/tests/reftests/shorthand-entry-border.ref.ui new file mode 100644 index 0000000000..ea181fe669 --- /dev/null +++ b/tests/reftests/shorthand-entry-border.ref.ui @@ -0,0 +1,15 @@ + + + + + False + popup + + + True + True + reference + + + + diff --git a/tests/reftests/shorthand-entry-border.ui b/tests/reftests/shorthand-entry-border.ui new file mode 100644 index 0000000000..91ce522a98 --- /dev/null +++ b/tests/reftests/shorthand-entry-border.ui @@ -0,0 +1,14 @@ + + + + + False + popup + + + True + True + + + +