tests: Add a test for all selector combination

The test contains an error where we complain about a duplicate value for
":hover:hover"
This commit is contained in:
Benjamin Otte 2011-05-15 00:15:25 +02:00
parent e875c619ef
commit e7aa125eb0
4 changed files with 562 additions and 0 deletions

View File

@ -68,4 +68,6 @@ EXTRA_DIST += \
integer.ref.css \ integer.ref.css \
no-semicolon.css \ no-semicolon.css \
no-semicolon.ref.css \ no-semicolon.ref.css \
selector.css \
selector.ref.css \
simple.css simple.css

View File

@ -0,0 +1,280 @@
* {
int-property: 42;
}
* * {
int-property: 42;
}
* > * {
int-property: 42;
}
* b {
int-property: 42;
}
* > b {
int-property: 42;
}
*.b {
int-property: 42;
}
* .b {
int-property: 42;
}
* > .b {
int-property: 42;
}
*:hover {
int-property: 42;
}
* :hover {
int-property: 42;
}
* > :hover {
int-property: 42;
}
*#b {
int-property: 42;
}
* #b {
int-property: 42;
}
* > #b {
int-property: 42;
}
a {
int-property: 42;
}
a * {
int-property: 42;
}
a > * {
int-property: 42;
}
a b {
int-property: 42;
}
a > b {
int-property: 42;
}
a.b {
int-property: 42;
}
a .b {
int-property: 42;
}
a > .b {
int-property: 42;
}
a:hover {
int-property: 42;
}
a :hover {
int-property: 42;
}
a > :hover {
int-property: 42;
}
a#b {
int-property: 42;
}
a #b {
int-property: 42;
}
a > #b {
int-property: 42;
}
.a {
int-property: 42;
}
.a * {
int-property: 42;
}
.a > * {
int-property: 42;
}
.a b {
int-property: 42;
}
.a > b {
int-property: 42;
}
.a.b {
int-property: 42;
}
.a .b {
int-property: 42;
}
.a > .b {
int-property: 42;
}
.a:hover {
int-property: 42;
}
.a :hover {
int-property: 42;
}
.a > :hover {
int-property: 42;
}
.a#b {
int-property: 42;
}
.a #b {
int-property: 42;
}
.a > #b {
int-property: 42;
}
:hover {
int-property: 42;
}
:hover * {
int-property: 42;
}
:hover > * {
int-property: 42;
}
:hover b {
int-property: 42;
}
:hover > b {
int-property: 42;
}
:hover.b {
int-property: 42;
}
:hover .b {
int-property: 42;
}
:hover > .b {
int-property: 42;
}
:hover:hover {
int-property: 42;
}
:hover :hover {
int-property: 42;
}
:hover > :hover {
int-property: 42;
}
:hover#b {
int-property: 42;
}
:hover #b {
int-property: 42;
}
:hover > #b {
int-property: 42;
}
#a {
int-property: 42;
}
#a * {
int-property: 42;
}
#a > * {
int-property: 42;
}
#a b {
int-property: 42;
}
#a > b {
int-property: 42;
}
#a.b {
int-property: 42;
}
#a .b {
int-property: 42;
}
#a > .b {
int-property: 42;
}
#a:hover {
int-property: 42;
}
#a :hover {
int-property: 42;
}
#a > :hover {
int-property: 42;
}
#a#b {
int-property: 42;
}
#a #b {
int-property: 42;
}
#a > #b {
int-property: 42;
}

View File

@ -0,0 +1 @@
selector.css:201: error: GTK_CSS_PROVIDER_ERROR_SYNTAX

View File

@ -0,0 +1,279 @@
* {
int-property: 42;
}
* * {
int-property: 42;
}
* > * {
int-property: 42;
}
* b {
int-property: 42;
}
* > b {
int-property: 42;
}
a {
int-property: 42;
}
a * {
int-property: 42;
}
a > * {
int-property: 42;
}
a b {
int-property: 42;
}
a > b {
int-property: 42;
}
.b {
int-property: 42;
}
* .b {
int-property: 42;
}
* > .b {
int-property: 42;
}
:hover {
int-property: 42;
}
* :hover {
int-property: 42;
}
* > :hover {
int-property: 42;
}
.a {
int-property: 42;
}
.a * {
int-property: 42;
}
.a > * {
int-property: 42;
}
:hover {
int-property: 42;
}
:hover * {
int-property: 42;
}
:hover > * {
int-property: 42;
}
:hover {
int-property: 42;
}
a.b {
int-property: 42;
}
a .b {
int-property: 42;
}
a > .b {
int-property: 42;
}
a:hover {
int-property: 42;
}
a :hover {
int-property: 42;
}
a > :hover {
int-property: 42;
}
.a b {
int-property: 42;
}
.a > b {
int-property: 42;
}
:hover b {
int-property: 42;
}
:hover > b {
int-property: 42;
}
.a.b {
int-property: 42;
}
.a .b {
int-property: 42;
}
.a > .b {
int-property: 42;
}
.a:hover {
int-property: 42;
}
.a :hover {
int-property: 42;
}
.a > :hover {
int-property: 42;
}
.b:hover {
int-property: 42;
}
:hover .b {
int-property: 42;
}
:hover > .b {
int-property: 42;
}
:hover :hover {
int-property: 42;
}
:hover > :hover {
int-property: 42;
}
#b {
int-property: 42;
}
* #b {
int-property: 42;
}
* > #b {
int-property: 42;
}
#a {
int-property: 42;
}
#a * {
int-property: 42;
}
#a > * {
int-property: 42;
}
a#b {
int-property: 42;
}
a #b {
int-property: 42;
}
a > #b {
int-property: 42;
}
#a b {
int-property: 42;
}
#a > b {
int-property: 42;
}
#b.a {
int-property: 42;
}
.a #b {
int-property: 42;
}
.a > #b {
int-property: 42;
}
#b:hover {
int-property: 42;
}
:hover #b {
int-property: 42;
}
:hover > #b {
int-property: 42;
}
#a.b {
int-property: 42;
}
#a .b {
int-property: 42;
}
#a > .b {
int-property: 42;
}
#a:hover {
int-property: 42;
}
#a :hover {
int-property: 42;
}
#a > :hover {
int-property: 42;
}
#a#b {
int-property: 42;
}
#a #b {
int-property: 42;
}
#a > #b {
int-property: 42;
}