]> Pileus Git - ~andy/gtk/commitdiff
tests: Add CSS test for comment detection
authorBenjamin Otte <otte@redhat.com>
Wed, 28 Nov 2012 20:11:22 +0000 (21:11 +0100)
committerBenjamin Otte <otte@redhat.com>
Wed, 28 Nov 2012 20:11:48 +0000 (21:11 +0100)
Tests recent fix.

tests/css/parser/Makefile.am
tests/css/parser/comment-detection.css [new file with mode: 0644]
tests/css/parser/comment-detection.ref.css [new file with mode: 0644]

index 404ad40f23ac730a17f5acab0844dbc225fc9e5a..301c0f0a5d8bd5a00c0892b730d00023ee8a76db 100644 (file)
@@ -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 (file)
index 0000000..1deece6
--- /dev/null
@@ -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 (file)
index 0000000..4fb5892
--- /dev/null
@@ -0,0 +1,7 @@
+b {
+  color: inherit;
+}
+
+c {
+  color: inherit;
+}