tests: Add tests for cyclic imports

This commit is contained in:
Benjamin Otte 2011-04-12 04:34:02 +02:00
parent 427c97a635
commit c7ef2225b7
10 changed files with 60 additions and 0 deletions

View File

@ -40,6 +40,15 @@ EXTRA_DIST += \
does-not-exist.css \
does-not-exist.errors \
does-not-exist.ref.css \
import-cyclic-1.css \
import-cyclic-1.errors \
import-cyclic-1.ref.css \
import-cyclic-2.css \
import-cyclic-2.errors \
import-cyclic-2.ref.css \
import-cyclic-3.css \
import-cyclic-3.errors \
import-cyclic-3.ref.css \
import-recursive.css \
import-recursive.errors \
import-recursive.ref.css \

View File

@ -0,0 +1,5 @@
@import url("import-cyclic-2.css");
a {
int-property: 1
}

View File

@ -0,0 +1 @@
import-cyclic-3.css:1: error: GTK_CSS_PROVIDER_ERROR_IMPORT

View File

@ -0,0 +1,11 @@
a {
int-property: 3;
}
a {
int-property: 2;
}
a {
int-property: 1;
}

View File

@ -0,0 +1,5 @@
@import url("import-cyclic-3.css");
a {
int-property: 2
}

View File

@ -0,0 +1 @@
import-cyclic-1.css:1: error: GTK_CSS_PROVIDER_ERROR_IMPORT

View File

@ -0,0 +1,11 @@
a {
int-property: 1;
}
a {
int-property: 3;
}
a {
int-property: 2;
}

View File

@ -0,0 +1,5 @@
@import url("import-cyclic-1.css");
a {
int-property: 3
}

View File

@ -0,0 +1 @@
import-cyclic-2.css:1: error: GTK_CSS_PROVIDER_ERROR_IMPORT

View File

@ -0,0 +1,11 @@
a {
int-property: 2;
}
a {
int-property: 1;
}
a {
int-property: 3;
}