]> Pileus Git - ~andy/gtk/commitdiff
tests: Add test that ensures we properly parse the color red
authorBenjamin Otte <otte@redhat.com>
Thu, 14 Apr 2011 19:13:48 +0000 (21:13 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 18 May 2011 20:17:55 +0000 (22:17 +0200)
tests/css/parser/Makefile.am
tests/css/parser/colors-red.css [new file with mode: 0644]
tests/css/parser/colors-red.ref.css [new file with mode: 0644]

index 00ee38d559f8be5065790e89dbb1200f022ce7cf..b3d5f5f0ea9c5e1637bd1a84fcce7ff3fbdd13fb 100644 (file)
@@ -34,6 +34,8 @@ EXTRA_DIST += \
        close-at-end-of-file.css \
        close-at-end-of-file.errors \
        close-at-end-of-file.ref.css \
+       colors-red.css \
+       colors-red.ref.css \
        css-21-malformed-declarations.css \
        css-21-malformed-declarations.errors \
        css-21-malformed-declarations.ref.css \
diff --git a/tests/css/parser/colors-red.css b/tests/css/parser/colors-red.css
new file mode 100644 (file)
index 0000000..9d96b95
--- /dev/null
@@ -0,0 +1,59 @@
+a {
+  rgba-property: red;
+}
+
+b {
+  rgba-property: rgba(255,0,0,1.0);
+}
+
+c {
+  rgba-property: rgb(255,0,0);
+}
+
+d {
+  rgba-property: rgba(100%,0%,0%,1);
+}
+
+e {
+  rgba-property: rgb(100%,0,0);
+}
+
+f {
+  rgba-property: #f00;
+}
+
+g {
+  rgba-property: #ff0000;
+}
+
+h {
+  rgba-property: #F00;
+}
+
+i {
+  rgba-property: #fF0000;
+}
+
+j {
+  rgba-property: rgba( 255 , 0 , 0 , 1 ) ;
+}
+
+k {
+  rgba-property: rgb( 255 , 0 , 0 ) ;
+}
+
+l {
+  rgba-property:/*x*/rgba(/*x*/255/*x*/,/*x*/0/*x*/,/*x*/0/*x*/,/*x*/1/*x*/)/*x*/;
+}
+
+m {
+  rgba-property:/*x*/rgb(/*x*/255/*x*/,/*x*/0/*x*/,/*x*/0/*x*/)/*x*/;
+}
+
+n {
+  rgba-property: /*x*/ rgba( /*x*/ 255 /*x*/ , /*x*/ 0 /*x*/ , /*x*/ 0 /*x*/ , /*x*/ 1 /*x*/ ) /*x*/ ;
+}
+
+o {
+  rgba-property: /*x*/ rgb( /*x*/ 255 /*x*/ , /*x*/ 0 /*x*/ , /*x*/ 0 /*x*/ ) /*x*/ ;
+}
diff --git a/tests/css/parser/colors-red.ref.css b/tests/css/parser/colors-red.ref.css
new file mode 100644 (file)
index 0000000..ba18119
--- /dev/null
@@ -0,0 +1,59 @@
+a {
+  rgba-property: rgb(255,0,0);
+}
+
+b {
+  rgba-property: rgb(255,0,0);
+}
+
+c {
+  rgba-property: rgb(255,0,0);
+}
+
+d {
+  rgba-property: rgb(255,0,0);
+}
+
+e {
+  rgba-property: rgb(255,0,0);
+}
+
+f {
+  rgba-property: rgb(255,0,0);
+}
+
+g {
+  rgba-property: rgb(255,0,0);
+}
+
+h {
+  rgba-property: rgb(255,0,0);
+}
+
+i {
+  rgba-property: rgb(255,0,0);
+}
+
+j {
+  rgba-property: rgb(255,0,0);
+}
+
+k {
+  rgba-property: rgb(255,0,0);
+}
+
+l {
+  rgba-property: rgb(255,0,0);
+}
+
+m {
+  rgba-property: rgb(255,0,0);
+}
+
+n {
+  rgba-property: rgb(255,0,0);
+}
+
+o {
+  rgba-property: rgb(255,0,0);
+}