[gtk+] tests: Add a test for using the same selector multiple times



commit 1b770caf0aeb742232386f6ac006a817bf16fa9c
Author: Benjamin Otte <otte redhat com>
Date:   Thu Mar 1 16:39:52 2012 +0100

    tests: Add a test for using the same selector multiple times

 tests/css/parser/Makefile.am     |    2 ++
 tests/css/parser/doubled.css     |   12 ++++++++++++
 tests/css/parser/doubled.ref.css |   31 +++++++++++++++++++++++++++++++
 3 files changed, 45 insertions(+), 0 deletions(-)
---
diff --git a/tests/css/parser/Makefile.am b/tests/css/parser/Makefile.am
index af82581..fdce5b9 100644
--- a/tests/css/parser/Makefile.am
+++ b/tests/css/parser/Makefile.am
@@ -263,6 +263,8 @@ EXTRA_DIST += \
 	does-not-exist.css \
 	does-not-exist.errors \
 	does-not-exist.ref.css \
+	doubled.css \
+	doubled.ref.css \
 	empty.css \
 	enum.css \
 	enum.errors \
diff --git a/tests/css/parser/doubled.css b/tests/css/parser/doubled.css
new file mode 100644
index 0000000..9ac5ae1
--- /dev/null
+++ b/tests/css/parser/doubled.css
@@ -0,0 +1,12 @@
+.class.class { color: red; }
+.class { color: red; }
+
+#name#name#name { color: red; }
+#name { color: red; }
+
+:focus:focus { color: red; }
+:focus { color: red; }
+
+:nth-child(even):nth-child(even):nth-child(even) { color: red; }
+:nth-child(even) { color: red; }
+
diff --git a/tests/css/parser/doubled.ref.css b/tests/css/parser/doubled.ref.css
new file mode 100644
index 0000000..92a6e3e
--- /dev/null
+++ b/tests/css/parser/doubled.ref.css
@@ -0,0 +1,31 @@
+.class {
+  color: rgb(255,0,0);
+}
+
+:focus {
+  color: rgb(255,0,0);
+}
+
+:nth-child(even) {
+  color: rgb(255,0,0);
+}
+
+.class.class {
+  color: rgb(255,0,0);
+}
+
+:focus:focus {
+  color: rgb(255,0,0);
+}
+
+:nth-child(even):nth-child(even):nth-child(even) {
+  color: rgb(255,0,0);
+}
+
+#name {
+  color: rgb(255,0,0);
+}
+
+#name#name#name {
+  color: rgb(255,0,0);
+}



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