[gtk+/wip/cssvalue: 108/141] tests: Add a parsing test for shadows



commit bdd51e7fd4c708d9bf3509111393702354bf92b4
Author: Benjamin Otte <otte redhat com>
Date:   Tue Apr 3 13:30:21 2012 +0200

    tests: Add a parsing test for shadows

 tests/css/parser/Makefile.am    |    2 +
 tests/css/parser/shadow.css     |  400 +++++++++++++++++++++++++++++++++++++++
 tests/css/parser/shadow.ref.css |  399 ++++++++++++++++++++++++++++++++++++++
 3 files changed, 801 insertions(+), 0 deletions(-)
---
diff --git a/tests/css/parser/Makefile.am b/tests/css/parser/Makefile.am
index 75ba54f..bc9cf33 100644
--- a/tests/css/parser/Makefile.am
+++ b/tests/css/parser/Makefile.am
@@ -304,6 +304,8 @@ EXTRA_DIST += \
 	pseudo-classes-unknown.ref.css \
 	selector.css \
 	selector.ref.css \
+	shadow.css \
+	shadow.ref.css \
 	shorthand.css \
 	shorthand.ref.css \
 	simple.css \
diff --git a/tests/css/parser/shadow.css b/tests/css/parser/shadow.css
new file mode 100644
index 0000000..72bcc99
--- /dev/null
+++ b/tests/css/parser/shadow.css
@@ -0,0 +1,400 @@
+a {
+  box-shadow: 0.25pt -1em 1em 0.25pt rgba(255,127,0.0,0.5);
+}
+
+b {
+  box-shadow: green 0 0.25pt;
+}
+
+c {
+  box-shadow: currentColor 3px 0.25pt 0.125pt -1em inset;
+}
+
+d {
+  box-shadow: rgba(255,127,0.0,0.5) -1em -1em 0.125pt 0 inset;
+}
+
+e {
+  box-shadow: 3px 0.25pt rgba(255,127,0.0,0.5);
+}
+
+f {
+  box-shadow: inset currentColor 0 0 1em;
+}
+
+g {
+  box-shadow: green 3px -1em;
+}
+
+h {
+  box-shadow: inset 0.25pt 0 0.125pt -1em;
+}
+
+i {
+  box-shadow: inset 0.25pt 3px currentColor;
+}
+
+j {
+  box-shadow: rgba(255,127,0.0,0.5) 0 3px 3px;
+}
+
+k {
+  box-shadow: green 0 -1em 3px;
+}
+
+l {
+  box-shadow: green 0 -1em 0.125pt 0;
+}
+
+m {
+  box-shadow: 0.25pt -1em 1em 0 green;
+}
+
+n {
+  box-shadow: green 0.25pt 0.25pt 3px;
+}
+
+o {
+  box-shadow: currentColor 3px -1em 0.125pt inset;
+}
+
+p {
+  box-shadow: 0 3px inset;
+}
+
+q {
+  box-shadow: 3px 0.25pt 0 inset;
+}
+
+r {
+  box-shadow: inset 3px -1em 3px 0.25pt currentColor;
+}
+
+s {
+  box-shadow: inset -1em -1em currentColor;
+}
+
+t {
+  box-shadow: -1em 0 0 alpha(@bg_color, 0.5);
+}
+
+u {
+  box-shadow: rgba(255,127,0.0,0.5) -1em 0.25pt 0.125pt -1em;
+}
+
+v {
+  box-shadow: green -1em 0.25pt 1em 0.25pt;
+}
+
+w {
+  box-shadow: inset currentColor 0.25pt -1em 0;
+}
+
+x {
+  box-shadow: rgba(255,127,0.0,0.5) 3px 3px;
+}
+
+y {
+  box-shadow: inset green 0 -1em 3px;
+}
+
+z {
+  box-shadow: rgba(255,127,0.0,0.5) 0 3px 1em;
+}
+
+ab {
+  box-shadow: inset rgba(255,127,0.0,0.5) 0 3px 0;
+}
+
+bb {
+  box-shadow: green 0.25pt 0 inset;
+}
+
+cb {
+  box-shadow: 0 0;
+}
+
+db {
+  box-shadow: green 0 -1em;
+}
+
+eb {
+  box-shadow: -1em 0 3px -1em green;
+}
+
+fb {
+  box-shadow: currentColor 3px 3px 3px 0.25pt;
+}
+
+gb {
+  box-shadow: inset 3px 0.25pt 0 rgba(255,127,0.0,0.5);
+}
+
+hb {
+  box-shadow: 0.25pt -1em 3px -1em green;
+}
+
+ib {
+  box-shadow: -1em 0.25pt;
+}
+
+jb {
+  box-shadow: 3px -1em green;
+}
+
+kb {
+  box-shadow: inset 0.25pt 0.25pt 3px 0.25pt alpha(@bg_color, 0.5);
+}
+
+lb {
+  box-shadow: inset currentColor 3px -1em;
+}
+
+mb {
+  box-shadow: -1em 0.25pt 0 alpha(@bg_color, 0.5);
+}
+
+nb {
+  box-shadow: currentColor -1em 0 0 -1em inset;
+}
+
+ob {
+  box-shadow: green -1em 3px inset;
+}
+
+pb {
+  box-shadow: currentColor 0.25pt 0 0.125pt;
+}
+
+qb {
+  box-shadow: -1em 0.25pt green inset;
+}
+
+rb {
+  box-shadow: inset 0.25pt 3px 1em alpha(@bg_color, 0.5);
+}
+
+sb {
+  box-shadow: inset rgba(255,127,0.0,0.5) 0.25pt 0 1em;
+}
+
+tb {
+  box-shadow: inset -1em -1em 1em green;
+}
+
+ub {
+  box-shadow: inset 0.25pt 3px 0.125pt green;
+}
+
+vb {
+  box-shadow: 3px 0 0 0.25pt alpha(@bg_color, 0.5) inset;
+}
+
+wb {
+  box-shadow: rgba(255,127,0.0,0.5) 3px -1em 1em inset;
+}
+
+xb {
+  box-shadow: currentColor 3px 0.25pt 3px 0.25pt;
+}
+
+yb {
+  box-shadow: inset 0.25pt 3px 1em -1em;
+}
+
+zb {
+  box-shadow: rgba(255,127,0.0,0.5) -1em 0 0 0 inset;
+}
+
+ac {
+  box-shadow: 0.25pt -1em 3px -1em;
+}
+
+bc {
+  box-shadow: -1em 0;
+}
+
+cc {
+  box-shadow: inset -1em 3px 0 -1em;
+}
+
+dc {
+  box-shadow: 0 -1em 3px green;
+}
+
+ec {
+  box-shadow: rgba(255,127,0.0,0.5) 0.25pt -1em 0 inset;
+}
+
+fc {
+  box-shadow: inset -1em 3px 0.125pt green;
+}
+
+gc {
+  box-shadow: green 0 0;
+}
+
+hc {
+  box-shadow: inset alpha(@bg_color, 0.5) 0.25pt 0.25pt 0 -1em;
+}
+
+ic {
+  box-shadow: -1em 0 green;
+}
+
+jc {
+  box-shadow: inset 0 -1em 3px;
+}
+
+kc {
+  box-shadow: -1em 0.25pt 1em green;
+}
+
+lc {
+  box-shadow: -1em 3px 1em rgba(255,127,0.0,0.5) inset;
+}
+
+mc {
+  box-shadow: green -1em 0.25pt 3px 0;
+}
+
+nc {
+  box-shadow: rgba(255,127,0.0,0.5) 3px 0.25pt 0.125pt 0.25pt;
+}
+
+oc {
+  box-shadow: -1em 0.25pt 1em rgba(255,127,0.0,0.5) inset;
+}
+
+pc {
+  box-shadow: 3px -1em inset;
+}
+
+qc {
+  box-shadow: rgba(255,127,0.0,0.5) 0 -1em inset;
+}
+
+rc {
+  box-shadow: inset green 0.25pt -1em 0 -1em;
+}
+
+sc {
+  box-shadow: inset 3px 0.25pt 0;
+}
+
+tc {
+  box-shadow: inset 3px -1em 0 -1em currentColor;
+}
+
+uc {
+  box-shadow: currentColor 0.25pt 0;
+}
+
+vc {
+  box-shadow: inset rgba(255,127,0.0,0.5) 0 -1em;
+}
+
+wc {
+  box-shadow: inset -1em 0.25pt 0;
+}
+
+xc {
+  box-shadow: inset 3px 0.25pt 0 -1em currentColor;
+}
+
+yc {
+  box-shadow: inset 3px 0 green;
+}
+
+zc {
+  box-shadow: inset -1em -1em;
+}
+
+ad {
+  box-shadow: 0 -1em 0.125pt -1em alpha(@bg_color, 0.5);
+}
+
+bd {
+  box-shadow: alpha(@bg_color, 0.5) -1em -1em 0.125pt;
+}
+
+cd {
+  box-shadow: rgba(255,127,0.0,0.5) 0.25pt 3px inset;
+}
+
+dd {
+  box-shadow: green 0 3px inset;
+}
+
+ed {
+  box-shadow: 0.25pt 0 currentColor;
+}
+
+fd {
+  box-shadow: 3px 0 alpha(@bg_color, 0.5) inset;
+}
+
+gd {
+  box-shadow: 0.25pt 0 rgba(255,127,0.0,0.5);
+}
+
+hd {
+  box-shadow: inset rgba(255,127,0.0,0.5) 0.25pt -1em;
+}
+
+id {
+  box-shadow: green -1em 0 1em 0.25pt inset;
+}
+
+jd {
+  box-shadow: 0 0.25pt 1em 0 currentColor;
+}
+
+kd {
+  box-shadow: inset 0.25pt 0 alpha(@bg_color, 0.5);
+}
+
+ld {
+  box-shadow: 3px 0.25pt 0 0.25pt alpha(@bg_color, 0.5) inset;
+}
+
+md {
+  box-shadow: -1em -1em 3px 0 rgba(255,127,0.0,0.5) inset;
+}
+
+nd {
+  box-shadow: inset -1em -1em 1em -1em green;
+}
+
+od {
+  box-shadow: inset rgba(255,127,0.0,0.5) -1em -1em 0;
+}
+
+pd {
+  box-shadow: 3px 3px 1em 0.25pt;
+}
+
+qd {
+  box-shadow: inset 3px 0 currentColor;
+}
+
+rd {
+  box-shadow: -1em 3px alpha(@bg_color, 0.5);
+}
+
+sd {
+  box-shadow: inset green -1em -1em;
+}
+
+td {
+  box-shadow: currentColor 3px 3px inset;
+}
+
+ud {
+  box-shadow: -1em -1em;
+}
+
+vd {
+  box-shadow: -1em 0.25pt green inset;
+}
+
diff --git a/tests/css/parser/shadow.ref.css b/tests/css/parser/shadow.ref.css
new file mode 100644
index 0000000..2da0140
--- /dev/null
+++ b/tests/css/parser/shadow.ref.css
@@ -0,0 +1,399 @@
+a {
+  box-shadow: 0.25pt -1em 1em 0.25pt rgba(255,127,0,0.5);
+}
+
+b {
+  box-shadow: 0 0.25pt rgb(0,255,0);
+}
+
+c {
+  box-shadow: 3px 0.25pt 0.125pt -1em currentColor inset;
+}
+
+d {
+  box-shadow: -1em -1em 0.125pt rgba(255,127,0,0.5) inset;
+}
+
+e {
+  box-shadow: 3px 0.25pt rgba(255,127,0,0.5);
+}
+
+f {
+  box-shadow: 0 0 1em currentColor inset;
+}
+
+g {
+  box-shadow: 3px -1em rgb(0,255,0);
+}
+
+h {
+  box-shadow: 0.25pt 0 0.125pt -1em currentColor inset;
+}
+
+i {
+  box-shadow: 0.25pt 3px currentColor inset;
+}
+
+j {
+  box-shadow: 0 3px 3px rgba(255,127,0,0.5);
+}
+
+k {
+  box-shadow: 0 -1em 3px rgb(0,255,0);
+}
+
+l {
+  box-shadow: 0 -1em 0.125pt rgb(0,255,0);
+}
+
+m {
+  box-shadow: 0.25pt -1em 1em rgb(0,255,0);
+}
+
+n {
+  box-shadow: 0.25pt 0.25pt 3px rgb(0,255,0);
+}
+
+o {
+  box-shadow: 3px -1em 0.125pt currentColor inset;
+}
+
+p {
+  box-shadow: 0 3px currentColor inset;
+}
+
+q {
+  box-shadow: 3px 0.25pt currentColor inset;
+}
+
+r {
+  box-shadow: 3px -1em 3px 0.25pt currentColor inset;
+}
+
+s {
+  box-shadow: -1em -1em currentColor inset;
+}
+
+t {
+  box-shadow: -1em 0 alpha (@bg_color, 0.5);
+}
+
+u {
+  box-shadow: -1em 0.25pt 0.125pt -1em rgba(255,127,0,0.5);
+}
+
+v {
+  box-shadow: -1em 0.25pt 1em 0.25pt rgb(0,255,0);
+}
+
+w {
+  box-shadow: 0.25pt -1em currentColor inset;
+}
+
+x {
+  box-shadow: 3px 3px rgba(255,127,0,0.5);
+}
+
+y {
+  box-shadow: 0 -1em 3px rgb(0,255,0) inset;
+}
+
+z {
+  box-shadow: 0 3px 1em rgba(255,127,0,0.5);
+}
+
+ab {
+  box-shadow: 0 3px rgba(255,127,0,0.5) inset;
+}
+
+bb {
+  box-shadow: 0.25pt 0 rgb(0,255,0) inset;
+}
+
+cb {
+  box-shadow: 0 0 currentColor;
+}
+
+db {
+  box-shadow: 0 -1em rgb(0,255,0);
+}
+
+eb {
+  box-shadow: -1em 0 3px -1em rgb(0,255,0);
+}
+
+fb {
+  box-shadow: 3px 3px 3px 0.25pt currentColor;
+}
+
+gb {
+  box-shadow: 3px 0.25pt rgba(255,127,0,0.5) inset;
+}
+
+hb {
+  box-shadow: 0.25pt -1em 3px -1em rgb(0,255,0);
+}
+
+ib {
+  box-shadow: -1em 0.25pt currentColor;
+}
+
+jb {
+  box-shadow: 3px -1em rgb(0,255,0);
+}
+
+kb {
+  box-shadow: 0.25pt 0.25pt 3px 0.25pt alpha (@bg_color, 0.5) inset;
+}
+
+lb {
+  box-shadow: 3px -1em currentColor inset;
+}
+
+mb {
+  box-shadow: -1em 0.25pt alpha (@bg_color, 0.5);
+}
+
+nb {
+  box-shadow: -1em 0 0 -1em currentColor inset;
+}
+
+ob {
+  box-shadow: -1em 3px rgb(0,255,0) inset;
+}
+
+pb {
+  box-shadow: 0.25pt 0 0.125pt currentColor;
+}
+
+qb {
+  box-shadow: -1em 0.25pt rgb(0,255,0) inset;
+}
+
+rb {
+  box-shadow: 0.25pt 3px 1em alpha (@bg_color, 0.5) inset;
+}
+
+sb {
+  box-shadow: 0.25pt 0 1em rgba(255,127,0,0.5) inset;
+}
+
+tb {
+  box-shadow: -1em -1em 1em rgb(0,255,0) inset;
+}
+
+ub {
+  box-shadow: 0.25pt 3px 0.125pt rgb(0,255,0) inset;
+}
+
+vb {
+  box-shadow: 3px 0 0 0.25pt alpha (@bg_color, 0.5) inset;
+}
+
+wb {
+  box-shadow: 3px -1em 1em rgba(255,127,0,0.5) inset;
+}
+
+xb {
+  box-shadow: 3px 0.25pt 3px 0.25pt currentColor;
+}
+
+yb {
+  box-shadow: 0.25pt 3px 1em -1em currentColor inset;
+}
+
+zb {
+  box-shadow: -1em 0 rgba(255,127,0,0.5) inset;
+}
+
+ac {
+  box-shadow: 0.25pt -1em 3px -1em currentColor;
+}
+
+bc {
+  box-shadow: -1em 0 currentColor;
+}
+
+cc {
+  box-shadow: -1em 3px 0 -1em currentColor inset;
+}
+
+dc {
+  box-shadow: 0 -1em 3px rgb(0,255,0);
+}
+
+ec {
+  box-shadow: 0.25pt -1em rgba(255,127,0,0.5) inset;
+}
+
+fc {
+  box-shadow: -1em 3px 0.125pt rgb(0,255,0) inset;
+}
+
+gc {
+  box-shadow: 0 0 rgb(0,255,0);
+}
+
+hc {
+  box-shadow: 0.25pt 0.25pt 0 -1em alpha (@bg_color, 0.5) inset;
+}
+
+ic {
+  box-shadow: -1em 0 rgb(0,255,0);
+}
+
+jc {
+  box-shadow: 0 -1em 3px currentColor inset;
+}
+
+kc {
+  box-shadow: -1em 0.25pt 1em rgb(0,255,0);
+}
+
+lc {
+  box-shadow: -1em 3px 1em rgba(255,127,0,0.5) inset;
+}
+
+mc {
+  box-shadow: -1em 0.25pt 3px rgb(0,255,0);
+}
+
+nc {
+  box-shadow: 3px 0.25pt 0.125pt 0.25pt rgba(255,127,0,0.5);
+}
+
+oc {
+  box-shadow: -1em 0.25pt 1em rgba(255,127,0,0.5) inset;
+}
+
+pc {
+  box-shadow: 3px -1em currentColor inset;
+}
+
+qc {
+  box-shadow: 0 -1em rgba(255,127,0,0.5) inset;
+}
+
+rc {
+  box-shadow: 0.25pt -1em 0 -1em rgb(0,255,0) inset;
+}
+
+sc {
+  box-shadow: 3px 0.25pt currentColor inset;
+}
+
+tc {
+  box-shadow: 3px -1em 0 -1em currentColor inset;
+}
+
+uc {
+  box-shadow: 0.25pt 0 currentColor;
+}
+
+vc {
+  box-shadow: 0 -1em rgba(255,127,0,0.5) inset;
+}
+
+wc {
+  box-shadow: -1em 0.25pt currentColor inset;
+}
+
+xc {
+  box-shadow: 3px 0.25pt 0 -1em currentColor inset;
+}
+
+yc {
+  box-shadow: 3px 0 rgb(0,255,0) inset;
+}
+
+zc {
+  box-shadow: -1em -1em currentColor inset;
+}
+
+ad {
+  box-shadow: 0 -1em 0.125pt -1em alpha (@bg_color, 0.5);
+}
+
+bd {
+  box-shadow: -1em -1em 0.125pt alpha (@bg_color, 0.5);
+}
+
+cd {
+  box-shadow: 0.25pt 3px rgba(255,127,0,0.5) inset;
+}
+
+dd {
+  box-shadow: 0 3px rgb(0,255,0) inset;
+}
+
+ed {
+  box-shadow: 0.25pt 0 currentColor;
+}
+
+fd {
+  box-shadow: 3px 0 alpha (@bg_color, 0.5) inset;
+}
+
+gd {
+  box-shadow: 0.25pt 0 rgba(255,127,0,0.5);
+}
+
+hd {
+  box-shadow: 0.25pt -1em rgba(255,127,0,0.5) inset;
+}
+
+id {
+  box-shadow: -1em 0 1em 0.25pt rgb(0,255,0) inset;
+}
+
+jd {
+  box-shadow: 0 0.25pt 1em currentColor;
+}
+
+kd {
+  box-shadow: 0.25pt 0 alpha (@bg_color, 0.5) inset;
+}
+
+ld {
+  box-shadow: 3px 0.25pt 0 0.25pt alpha (@bg_color, 0.5) inset;
+}
+
+md {
+  box-shadow: -1em -1em 3px rgba(255,127,0,0.5) inset;
+}
+
+nd {
+  box-shadow: -1em -1em 1em -1em rgb(0,255,0) inset;
+}
+
+od {
+  box-shadow: -1em -1em rgba(255,127,0,0.5) inset;
+}
+
+pd {
+  box-shadow: 3px 3px 1em 0.25pt currentColor;
+}
+
+qd {
+  box-shadow: 3px 0 currentColor inset;
+}
+
+rd {
+  box-shadow: -1em 3px alpha (@bg_color, 0.5);
+}
+
+sd {
+  box-shadow: -1em -1em rgb(0,255,0) inset;
+}
+
+td {
+  box-shadow: 3px 3px currentColor inset;
+}
+
+ud {
+  box-shadow: -1em -1em currentColor;
+}
+
+vd {
+  box-shadow: -1em 0.25pt rgb(0,255,0) inset;
+}



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