Improve test coverage for the css parser

This commit is contained in:
Matthias Clasen 2023-05-12 18:46:54 -04:00
parent c9afcd31c2
commit 0a3dac10c6
12 changed files with 37 additions and 0 deletions

View File

@ -21,3 +21,7 @@ e {
f {
font-family: Macaroni, Spaghetti, Sans;
}
g {
font-family: Macaroni al dente, Tomato sauce;
}

View File

@ -21,3 +21,7 @@ e {
f {
font-family: "Macaroni", "Spaghetti", "Sans";
}
g {
font-family: "Macaroni al dente", "Tomato sauce";
}

View File

@ -17,3 +17,9 @@ d {
e {
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;
}

View File

@ -42,3 +42,9 @@ e {
font-variant-numeric: 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;
}

View File

@ -0,0 +1,3 @@
a {
font-weight: 0;
}

View File

@ -0,0 +1 @@
font-weight-invalid.css:2:16-17: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE

View File

@ -0,0 +1,3 @@
a {
font-weight: 0;
}

View File

@ -0,0 +1,3 @@
a {
font-weight: 1001;
}

View File

@ -0,0 +1 @@
font-weight-invalid2.css:2:16-20: error: GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE

View File

@ -363,6 +363,12 @@ test_data = [
'font-variant.ref.css',
'font-weight.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.errors',
'freed-string-in-error-messages.ref.css',