testsuite: Add more css parser tests

Add tests for url parsing.
This commit is contained in:
Matthias Clasen 2020-10-31 01:03:14 -04:00
parent 48381bd4f6
commit 970f91ec24
13 changed files with 42 additions and 0 deletions

View File

@ -444,6 +444,18 @@ test_data = [
'transition.ref.css',
'transition-timing-function.css',
'transition-timing-function.ref.css',
'url-invalid1.css',
'url-invalid1.errors',
'url-invalid1.ref.css',
'url-invalid2.css',
'url-invalid2.errors',
'url-invalid2.ref.css',
'url-valid1.css',
'url-valid1.ref.css',
'url-valid2.css',
'url-valid2.ref.css',
'url-valid3.css',
'url-valid3.ref.css',
'value-inherit.css',
'value-inherit.ref.css',
'value-inherit.errors',

View File

@ -0,0 +1,4 @@
label {
background-image: url(resource:///org/gtk/libgtk/icons/16x16(/places/user-trash.png);
}

View File

@ -0,0 +1 @@
url-invalid1.css:3:21-87: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -0,0 +1,4 @@
label {
background-image: url(resource:///org/gtk/ libgtk/icons/16x16/places/user-trash.png);
}

View File

@ -0,0 +1 @@
url-invalid2.css:3:21-87: error: GTK_CSS_PARSER_ERROR_SYNTAX

View File

@ -0,0 +1,3 @@
label {
background-image: url("resource:///org/gtk/libgtk/icons/16x16/places/user-trash.png");
}

View File

@ -0,0 +1,3 @@
label {
background-image: none /* FIXME */;
}

View File

@ -0,0 +1,4 @@
label {
background-image: url(resource:///org/gtk/libgtk/icons/16x16/places/user-trash.png);
}

View File

@ -0,0 +1,3 @@
label {
background-image: none /* FIXME */;
}

View File

@ -0,0 +1,4 @@
label {
background-image: url( resource:///\6F rg/gtk/libgtk/icons/16x16/places/user-trash.png );
}

View File

@ -0,0 +1,3 @@
label {
background-image: none /* FIXME */;
}