mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Improve test coverage for the css parser
This commit is contained in:
parent
c9afcd31c2
commit
0a3dac10c6
@ -21,3 +21,7 @@ e {
|
|||||||
f {
|
f {
|
||||||
font-family: Macaroni, Spaghetti, Sans;
|
font-family: Macaroni, Spaghetti, Sans;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g {
|
||||||
|
font-family: Macaroni al dente, Tomato sauce;
|
||||||
|
}
|
||||||
|
@ -21,3 +21,7 @@ e {
|
|||||||
f {
|
f {
|
||||||
font-family: "Macaroni", "Spaghetti", "Sans";
|
font-family: "Macaroni", "Spaghetti", "Sans";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g {
|
||||||
|
font-family: "Macaroni al dente", "Tomato sauce";
|
||||||
|
}
|
||||||
|
@ -17,3 +17,9 @@ d {
|
|||||||
e {
|
e {
|
||||||
font-variant: small-caps;
|
font-variant: small-caps;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
f {
|
||||||
|
font-variant-ligatures: common-ligatures discretionary-ligatures;
|
||||||
|
font-variant-numeric: lining-nums tabular-nums diagonal-fractions;
|
||||||
|
font-variant-east-asian: simplified;
|
||||||
|
}
|
||||||
|
@ -42,3 +42,9 @@ e {
|
|||||||
font-variant-numeric: initial;
|
font-variant-numeric: initial;
|
||||||
font-variant-position: initial;
|
font-variant-position: initial;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
f {
|
||||||
|
font-variant-east-asian: simplified;
|
||||||
|
font-variant-ligatures: common-ligatures discretionary-ligatures;
|
||||||
|
font-variant-numeric: lining-nums tabular-nums diagonal-fractions;
|
||||||
|
}
|
||||||
|
3
testsuite/css/parser/font-weight-invalid.css
Normal file
3
testsuite/css/parser/font-weight-invalid.css
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
a {
|
||||||
|
font-weight: 0;
|
||||||
|
}
|
1
testsuite/css/parser/font-weight-invalid.errors
Normal file
1
testsuite/css/parser/font-weight-invalid.errors
Normal file
@ -0,0 +1 @@
|
|||||||
|
font-weight-invalid.css:2:16-17: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
|
0
testsuite/css/parser/font-weight-invalid.ref.css
Normal file
0
testsuite/css/parser/font-weight-invalid.ref.css
Normal file
3
testsuite/css/parser/font-weight-invalid1.css
Normal file
3
testsuite/css/parser/font-weight-invalid1.css
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
a {
|
||||||
|
font-weight: 0;
|
||||||
|
}
|
3
testsuite/css/parser/font-weight-invalid2.css
Normal file
3
testsuite/css/parser/font-weight-invalid2.css
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
a {
|
||||||
|
font-weight: 1001;
|
||||||
|
}
|
1
testsuite/css/parser/font-weight-invalid2.errors
Normal file
1
testsuite/css/parser/font-weight-invalid2.errors
Normal file
@ -0,0 +1 @@
|
|||||||
|
font-weight-invalid2.css:2:16-20: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
|
0
testsuite/css/parser/font-weight-invalid2.ref.css
Normal file
0
testsuite/css/parser/font-weight-invalid2.ref.css
Normal file
@ -363,6 +363,12 @@ test_data = [
|
|||||||
'font-variant.ref.css',
|
'font-variant.ref.css',
|
||||||
'font-weight.css',
|
'font-weight.css',
|
||||||
'font-weight.ref.css',
|
'font-weight.ref.css',
|
||||||
|
'font-weight-invalid.css',
|
||||||
|
'font-weight-invalid.errors',
|
||||||
|
'font-weight-invalid.ref.css',
|
||||||
|
'font-weight-invalid2.css',
|
||||||
|
'font-weight-invalid2.errors',
|
||||||
|
'font-weight-invalid2.ref.css',
|
||||||
'freed-string-in-error-messages.css',
|
'freed-string-in-error-messages.css',
|
||||||
'freed-string-in-error-messages.errors',
|
'freed-string-in-error-messages.errors',
|
||||||
'freed-string-in-error-messages.ref.css',
|
'freed-string-in-error-messages.ref.css',
|
||||||
|
Loading…
Reference in New Issue
Block a user