csstokenizer: Add more testcases

This commit is contained in:
Benjamin Otte 2019-05-07 20:47:20 +02:00
parent bc7972dfa7
commit dd299c50bf
13 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,2 @@
a {
animation-name: -\

View File

@ -0,0 +1,2 @@
dash-backslash-eof-is-identifier.css:2:3-21: error: GTK_CSS_PARSER_WARNING_SYNTAX
dash-backslash-eof-is-identifier.css:1:3-2:21: error: GTK_CSS_PARSER_WARNING_SYNTAX

View File

@ -0,0 +1,3 @@
a {
animation-name: -<EFBFBD>;
}

View File

@ -0,0 +1,2 @@
a {
animation-name: -\

View File

@ -0,0 +1,3 @@
dash-backslash-newline-is-delim.css:2:19-20: error: GTK_CSS_PARSER_ERROR_SYNTAX
dash-backslash-newline-is-delim.css:2:3-3:1: error: GTK_CSS_PARSER_WARNING_SYNTAX
dash-backslash-newline-is-delim.css:1:3-3:1: error: GTK_CSS_PARSER_WARNING_SYNTAX

View File

@ -0,0 +1,2 @@
a {
}

View File

@ -0,0 +1,2 @@
a {
animation-name: --

View File

@ -0,0 +1,2 @@
dash-dash-eof-is-identifier.css:2:3-21: error: GTK_CSS_PARSER_WARNING_SYNTAX
dash-dash-eof-is-identifier.css:1:3-2:21: error: GTK_CSS_PARSER_WARNING_SYNTAX

View File

@ -0,0 +1,3 @@
a {
animation-name: --;
}

View File

@ -0,0 +1,2 @@
a {
animation-name: -

View File

@ -0,0 +1,3 @@
dash-eof-is-delim.css:2:19-20: error: GTK_CSS_PARSER_ERROR_SYNTAX
dash-eof-is-delim.css:2:3-20: error: GTK_CSS_PARSER_WARNING_SYNTAX
dash-eof-is-delim.css:1:3-2:20: error: GTK_CSS_PARSER_WARNING_SYNTAX

View File

@ -0,0 +1,2 @@
a {
}

View File

@ -226,6 +226,18 @@ test_data = [
'css-21-malformed-statements.errors',
'css-21-malformed-statements.ref.css',
'currentcolor-everywhere.css',
'dash-backslash-eof-is-identifier.ref.css',
'dash-backslash-eof-is-identifier.css',
'dash-backslash-eof-is-identifier.errors',
'dash-backslash-newline-is-delim.ref.css',
'dash-backslash-newline-is-delim.errors',
'dash-backslash-newline-is-delim.css
'dash-dash-eof-is-identifier.ref.css',
'dash-dash-eof-is-identifier.css',
'dash-dash-eof-is-identifier.errors',
'dash-eof-is-delim.ref.css',
'dash-eof-is-delim.css',
'dash-eof-is-delim.errors',
'declarations.css',
'declarations.errors',
'declarations-invalid-01.css',