[gtk+] tests: Add CSS test for comment detection



commit 29c842074613c76e83515d932a129480c128d629
Author: Benjamin Otte <otte redhat com>
Date:   Wed Nov 28 21:11:22 2012 +0100

    tests: Add CSS test for comment detection
    
    Tests recent fix.

 tests/css/parser/Makefile.am               |    2 ++
 tests/css/parser/comment-detection.css     |   11 +++++++++++
 tests/css/parser/comment-detection.ref.css |    7 +++++++
 3 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/tests/css/parser/Makefile.am b/tests/css/parser/Makefile.am
index 404ad40..301c0f0 100644
--- a/tests/css/parser/Makefile.am
+++ b/tests/css/parser/Makefile.am
@@ -184,6 +184,8 @@ EXTRA_DIST += \
 	colors-errors.ref.css \
 	colors-red.css \
 	colors-red.ref.css \
+	comment-detection.css \
+	comment-detection.ref.css \
 	cross-fade-basic.css \
 	css-21-malformed-declarations.css \
 	css-21-malformed-declarations.errors \
diff --git a/tests/css/parser/comment-detection.css b/tests/css/parser/comment-detection.css
new file mode 100644
index 0000000..1deece6
--- /dev/null
+++ b/tests/css/parser/comment-detection.css
@@ -0,0 +1,11 @@
+/*/
+a { color: blue; }
+*/
+
+/*\*/
+b { color: inherit; }
+/* */
+
+/**/
+c { color: inherit; }
+/* */
diff --git a/tests/css/parser/comment-detection.ref.css b/tests/css/parser/comment-detection.ref.css
new file mode 100644
index 0000000..4fb5892
--- /dev/null
+++ b/tests/css/parser/comment-detection.ref.css
@@ -0,0 +1,7 @@
+b {
+  color: inherit;
+}
+
+c {
+  color: inherit;
+}



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