mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
tests: Add tests for cyclic imports
This commit is contained in:
parent
427c97a635
commit
c7ef2225b7
@ -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 \
|
||||
|
5
tests/css/parser/import-cyclic-1.css
Normal file
5
tests/css/parser/import-cyclic-1.css
Normal file
@ -0,0 +1,5 @@
|
||||
@import url("import-cyclic-2.css");
|
||||
|
||||
a {
|
||||
int-property: 1
|
||||
}
|
1
tests/css/parser/import-cyclic-1.errors
Normal file
1
tests/css/parser/import-cyclic-1.errors
Normal file
@ -0,0 +1 @@
|
||||
import-cyclic-3.css:1: error: GTK_CSS_PROVIDER_ERROR_IMPORT
|
11
tests/css/parser/import-cyclic-1.ref.css
Normal file
11
tests/css/parser/import-cyclic-1.ref.css
Normal file
@ -0,0 +1,11 @@
|
||||
a {
|
||||
int-property: 3;
|
||||
}
|
||||
|
||||
a {
|
||||
int-property: 2;
|
||||
}
|
||||
|
||||
a {
|
||||
int-property: 1;
|
||||
}
|
5
tests/css/parser/import-cyclic-2.css
Normal file
5
tests/css/parser/import-cyclic-2.css
Normal file
@ -0,0 +1,5 @@
|
||||
@import url("import-cyclic-3.css");
|
||||
|
||||
a {
|
||||
int-property: 2
|
||||
}
|
1
tests/css/parser/import-cyclic-2.errors
Normal file
1
tests/css/parser/import-cyclic-2.errors
Normal file
@ -0,0 +1 @@
|
||||
import-cyclic-1.css:1: error: GTK_CSS_PROVIDER_ERROR_IMPORT
|
11
tests/css/parser/import-cyclic-2.ref.css
Normal file
11
tests/css/parser/import-cyclic-2.ref.css
Normal file
@ -0,0 +1,11 @@
|
||||
a {
|
||||
int-property: 1;
|
||||
}
|
||||
|
||||
a {
|
||||
int-property: 3;
|
||||
}
|
||||
|
||||
a {
|
||||
int-property: 2;
|
||||
}
|
5
tests/css/parser/import-cyclic-3.css
Normal file
5
tests/css/parser/import-cyclic-3.css
Normal file
@ -0,0 +1,5 @@
|
||||
@import url("import-cyclic-1.css");
|
||||
|
||||
a {
|
||||
int-property: 3
|
||||
}
|
1
tests/css/parser/import-cyclic-3.errors
Normal file
1
tests/css/parser/import-cyclic-3.errors
Normal file
@ -0,0 +1 @@
|
||||
import-cyclic-2.css:1: error: GTK_CSS_PROVIDER_ERROR_IMPORT
|
11
tests/css/parser/import-cyclic-3.ref.css
Normal file
11
tests/css/parser/import-cyclic-3.ref.css
Normal file
@ -0,0 +1,11 @@
|
||||
a {
|
||||
int-property: 2;
|
||||
}
|
||||
|
||||
a {
|
||||
int-property: 1;
|
||||
}
|
||||
|
||||
a {
|
||||
int-property: 3;
|
||||
}
|
Loading…
Reference in New Issue
Block a user