tests: Add a test for border parsing
This commit is contained in:
@ -28,6 +28,9 @@ EXTRA_DIST += \
|
|||||||
boolean.css \
|
boolean.css \
|
||||||
boolean.errors \
|
boolean.errors \
|
||||||
boolean.ref.css \
|
boolean.ref.css \
|
||||||
|
border.css \
|
||||||
|
border.errors \
|
||||||
|
border.ref.css \
|
||||||
close-at-end-of-file.css \
|
close-at-end-of-file.css \
|
||||||
close-at-end-of-file.errors \
|
close-at-end-of-file.errors \
|
||||||
close-at-end-of-file.ref.css \
|
close-at-end-of-file.ref.css \
|
||||||
|
|||||||
59
tests/css/parser/border.css
Normal file
59
tests/css/parser/border.css
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
a {
|
||||||
|
border-property: 1 2 3 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
b {
|
||||||
|
border-property: 1 2 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
c {
|
||||||
|
border-property: 1 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
d {
|
||||||
|
border-property: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
e {
|
||||||
|
border-property: 0 0 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
f {
|
||||||
|
border-property: 1px 2px 3 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
g {
|
||||||
|
border-property: 5 oops 6 7;
|
||||||
|
}
|
||||||
|
|
||||||
|
h {
|
||||||
|
border-property: true;
|
||||||
|
}
|
||||||
|
|
||||||
|
i {
|
||||||
|
border-property: -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
j {
|
||||||
|
border-property: -5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
k {
|
||||||
|
border-property: 3units;
|
||||||
|
}
|
||||||
|
|
||||||
|
l {
|
||||||
|
border-property: 1 2 3 4units;
|
||||||
|
}
|
||||||
|
|
||||||
|
m {
|
||||||
|
border-property: 1 2 3 4 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
n {
|
||||||
|
border-property: 1 2 ; 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
o {
|
||||||
|
border-property: none
|
||||||
|
}
|
||||||
8
tests/css/parser/border.errors
Normal file
8
tests/css/parser/border.errors
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
border.css:26: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
|
||||||
|
border.css:30: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
|
||||||
|
border.css:34: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
|
||||||
|
border.css:38: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
|
||||||
|
border.css:42: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
|
||||||
|
border.css:46: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
|
||||||
|
border.css:50: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
|
||||||
|
border.css:54: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_NAME
|
||||||
31
tests/css/parser/border.ref.css
Normal file
31
tests/css/parser/border.ref.css
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
a {
|
||||||
|
border-property: 1 2 3 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
b {
|
||||||
|
border-property: 1 2 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
c {
|
||||||
|
border-property: 1 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
d {
|
||||||
|
border-property: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
e {
|
||||||
|
border-property: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
f {
|
||||||
|
border-property: 1 2 3 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
n {
|
||||||
|
border-property: 1 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
o {
|
||||||
|
border-property: none;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user