mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
testsuite: Add more css parser tests
Add tests for url parsing.
This commit is contained in:
parent
48381bd4f6
commit
970f91ec24
@ -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',
|
||||
|
4
testsuite/css/parser/url-invalid1.css
Normal file
4
testsuite/css/parser/url-invalid1.css
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
label {
|
||||
background-image: url(resource:///org/gtk/libgtk/icons/16x16(/places/user-trash.png);
|
||||
}
|
1
testsuite/css/parser/url-invalid1.errors
Normal file
1
testsuite/css/parser/url-invalid1.errors
Normal file
@ -0,0 +1 @@
|
||||
url-invalid1.css:3:21-87: error: GTK_CSS_PARSER_ERROR_SYNTAX
|
0
testsuite/css/parser/url-invalid1.ref.css
Normal file
0
testsuite/css/parser/url-invalid1.ref.css
Normal file
4
testsuite/css/parser/url-invalid2.css
Normal file
4
testsuite/css/parser/url-invalid2.css
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
label {
|
||||
background-image: url(resource:///org/gtk/ libgtk/icons/16x16/places/user-trash.png);
|
||||
}
|
1
testsuite/css/parser/url-invalid2.errors
Normal file
1
testsuite/css/parser/url-invalid2.errors
Normal file
@ -0,0 +1 @@
|
||||
url-invalid2.css:3:21-87: error: GTK_CSS_PARSER_ERROR_SYNTAX
|
0
testsuite/css/parser/url-invalid2.ref.css
Normal file
0
testsuite/css/parser/url-invalid2.ref.css
Normal file
3
testsuite/css/parser/url-valid1.css
Normal file
3
testsuite/css/parser/url-valid1.css
Normal file
@ -0,0 +1,3 @@
|
||||
label {
|
||||
background-image: url("resource:///org/gtk/libgtk/icons/16x16/places/user-trash.png");
|
||||
}
|
3
testsuite/css/parser/url-valid1.ref.css
Normal file
3
testsuite/css/parser/url-valid1.ref.css
Normal file
@ -0,0 +1,3 @@
|
||||
label {
|
||||
background-image: none /* FIXME */;
|
||||
}
|
4
testsuite/css/parser/url-valid2.css
Normal file
4
testsuite/css/parser/url-valid2.css
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
label {
|
||||
background-image: url(resource:///org/gtk/libgtk/icons/16x16/places/user-trash.png);
|
||||
}
|
3
testsuite/css/parser/url-valid2.ref.css
Normal file
3
testsuite/css/parser/url-valid2.ref.css
Normal file
@ -0,0 +1,3 @@
|
||||
label {
|
||||
background-image: none /* FIXME */;
|
||||
}
|
4
testsuite/css/parser/url-valid3.css
Normal file
4
testsuite/css/parser/url-valid3.css
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
label {
|
||||
background-image: url( resource:///\6F rg/gtk/libgtk/icons/16x16/places/user-trash.png );
|
||||
}
|
3
testsuite/css/parser/url-valid3.ref.css
Normal file
3
testsuite/css/parser/url-valid3.ref.css
Normal file
@ -0,0 +1,3 @@
|
||||
label {
|
||||
background-image: none /* FIXME */;
|
||||
}
|
Loading…
Reference in New Issue
Block a user