[gtk+/wip/css: 96/167] tests: Add test for 'initial' and 'inherit' on shorthands



commit 9112494a4a7cbb8132c304ec170ef59b82702623
Author: Benjamin Otte <otte redhat com>
Date:   Mon Jan 2 15:52:21 2012 +0100

    tests: Add test for 'initial' and 'inherit' on shorthands

 tests/css/parser/Makefile.am                     |    4 +++
 tests/css/parser/value-inherit-shorthand.css     |    9 ++++++
 tests/css/parser/value-inherit-shorthand.ref.css |   31 ++++++++++++++++++++++
 tests/css/parser/value-initial-shorthand.css     |    9 ++++++
 tests/css/parser/value-initial-shorthand.ref.css |   31 ++++++++++++++++++++++
 5 files changed, 84 insertions(+), 0 deletions(-)
---
diff --git a/tests/css/parser/Makefile.am b/tests/css/parser/Makefile.am
index 97adb11..4a1bcf0 100644
--- a/tests/css/parser/Makefile.am
+++ b/tests/css/parser/Makefile.am
@@ -294,7 +294,11 @@ EXTRA_DIST += \
 	single-slash.ref.css \
 	test.png \
 	value-inherit.css \
+	value-inherit-shorthand.css \
+	value-inherit-shorthand.ref.css \
 	value-intial.css \
+	value-intial-shorthand.css \
+	value-intial-shorthand.ref.css \
 	value-none.css \
 	value-none.errors \
 	value-none.ref.css \
diff --git a/tests/css/parser/value-inherit-shorthand.css b/tests/css/parser/value-inherit-shorthand.css
new file mode 100644
index 0000000..e3d318f
--- /dev/null
+++ b/tests/css/parser/value-inherit-shorthand.css
@@ -0,0 +1,9 @@
+* {
+  border-color: inherit;
+  border-image: inherit;
+  border-radius: inherit;
+  border-width: inherit;
+  font: inherit;
+  margin: inherit;
+  padding: inherit;
+}
diff --git a/tests/css/parser/value-inherit-shorthand.ref.css b/tests/css/parser/value-inherit-shorthand.ref.css
new file mode 100644
index 0000000..4343ba4
--- /dev/null
+++ b/tests/css/parser/value-inherit-shorthand.ref.css
@@ -0,0 +1,31 @@
+* {
+  border-bottom-color: inherit;
+  border-bottom-left-radius: inherit;
+  border-bottom-right-radius: inherit;
+  border-bottom-width: inherit;
+  border-image-repeat: inherit;
+  border-image-slice: inherit;
+  border-image-source: inherit;
+  border-image-width: inherit;
+  border-left-color: inherit;
+  border-left-width: inherit;
+  border-right-color: inherit;
+  border-right-width: inherit;
+  border-top-color: inherit;
+  border-top-left-radius: inherit;
+  border-top-right-radius: inherit;
+  border-top-width: inherit;
+  font-family: inherit;
+  font-size: inherit;
+  font-style: inherit;
+  font-variant: inherit;
+  font-weight: inherit;
+  margin-bottom: inherit;
+  margin-left: inherit;
+  margin-right: inherit;
+  margin-top: inherit;
+  padding-bottom: inherit;
+  padding-left: inherit;
+  padding-right: inherit;
+  padding-top: inherit;
+}
diff --git a/tests/css/parser/value-initial-shorthand.css b/tests/css/parser/value-initial-shorthand.css
new file mode 100644
index 0000000..dbcd4bb
--- /dev/null
+++ b/tests/css/parser/value-initial-shorthand.css
@@ -0,0 +1,9 @@
+* {
+  border-color: initial;
+  border-image: initial;
+  border-radius: initial;
+  border-width: initial;
+  font: initial;
+  margin: initial;
+  padding: initial;
+}
diff --git a/tests/css/parser/value-initial-shorthand.ref.css b/tests/css/parser/value-initial-shorthand.ref.css
new file mode 100644
index 0000000..e6273e3
--- /dev/null
+++ b/tests/css/parser/value-initial-shorthand.ref.css
@@ -0,0 +1,31 @@
+* {
+  border-bottom-color: initial;
+  border-bottom-left-radius: initial;
+  border-bottom-right-radius: initial;
+  border-bottom-width: initial;
+  border-image-repeat: initial;
+  border-image-slice: initial;
+  border-image-source: initial;
+  border-image-width: initial;
+  border-left-color: initial;
+  border-left-width: initial;
+  border-right-color: initial;
+  border-right-width: initial;
+  border-top-color: initial;
+  border-top-left-radius: initial;
+  border-top-right-radius: initial;
+  border-top-width: initial;
+  font-family: initial;
+  font-size: initial;
+  font-style: initial;
+  font-variant: initial;
+  font-weight: initial;
+  margin-bottom: initial;
+  margin-left: initial;
+  margin-right: initial;
+  margin-top: initial;
+  padding-bottom: initial;
+  padding-left: initial;
+  padding-right: initial;
+  padding-top: initial;
+}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]