mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-12 03:40:10 +00:00
tests: Add tests for font-family
This commit is contained in:
parent
66396d2bab
commit
b5544f5514
@ -54,6 +54,9 @@ EXTRA_DIST += \
|
||||
enum.css \
|
||||
enum.errors \
|
||||
enum.ref.css \
|
||||
font-family.css \
|
||||
font-family.errors \
|
||||
font-family.ref.css \
|
||||
import-cyclic-1.css \
|
||||
import-cyclic-1.errors \
|
||||
import-cyclic-1.ref.css \
|
||||
|
65
tests/css/parser/font-family.css
Normal file
65
tests/css/parser/font-family.css
Normal file
@ -0,0 +1,65 @@
|
||||
a {
|
||||
font-family: none;
|
||||
}
|
||||
|
||||
b {
|
||||
font-family: Sans Serif;
|
||||
}
|
||||
|
||||
c {
|
||||
font-family: A Font with a lot of text\2C spaces and special characters\2122;
|
||||
}
|
||||
|
||||
d {
|
||||
font-family: "A Font with a lot of text, spaces and special characters™" ;
|
||||
}
|
||||
|
||||
e {
|
||||
font-family: A, Lot, Of, Fonts;
|
||||
}
|
||||
|
||||
f {
|
||||
font-family: "A", "Lot", "Of", "Fonts";
|
||||
}
|
||||
|
||||
g {
|
||||
font-family: "A Lot", Of, "Fonts";
|
||||
}
|
||||
|
||||
/* errors straight from the CSS 2.1 spec */
|
||||
|
||||
cssa {
|
||||
font-family: Red/Black, sans-serif;
|
||||
}
|
||||
|
||||
cssb {
|
||||
font-family: "Lucida" Grande, sans-serif;
|
||||
}
|
||||
|
||||
cssc {
|
||||
font-family: Ahem!, sans-serif;
|
||||
}
|
||||
|
||||
cssd {
|
||||
font-family: test@foo, sans-serif;
|
||||
}
|
||||
|
||||
csse {
|
||||
font-family: #POUND, sans-serif;
|
||||
}
|
||||
|
||||
cssf {
|
||||
font-family: Hawaii 5-0, sans-serif;
|
||||
}
|
||||
|
||||
/* errors */
|
||||
|
||||
ea {
|
||||
font-family: ;
|
||||
}
|
||||
|
||||
eb {
|
||||
font-family: No comma at the end, please, ;
|
||||
}
|
||||
|
||||
|
8
tests/css/parser/font-family.errors
Normal file
8
tests/css/parser/font-family.errors
Normal file
@ -0,0 +1,8 @@
|
||||
font-family.css:32: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
||||
font-family.css:36: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
||||
font-family.css:40: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
||||
font-family.css:44: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
||||
font-family.css:48: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
||||
font-family.css:52: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
||||
font-family.css:58: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
||||
font-family.css:62: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
|
27
tests/css/parser/font-family.ref.css
Normal file
27
tests/css/parser/font-family.ref.css
Normal file
@ -0,0 +1,27 @@
|
||||
a {
|
||||
font-family: none;
|
||||
}
|
||||
|
||||
b {
|
||||
font-family: "Sans Serif";
|
||||
}
|
||||
|
||||
c {
|
||||
font-family: "A Font with a lot of text, spaces and special characters™";
|
||||
}
|
||||
|
||||
d {
|
||||
font-family: "A Font with a lot of text, spaces and special characters™";
|
||||
}
|
||||
|
||||
e {
|
||||
font-family: "A", "Lot", "Of", "Fonts";
|
||||
}
|
||||
|
||||
f {
|
||||
font-family: "A", "Lot", "Of", "Fonts";
|
||||
}
|
||||
|
||||
g {
|
||||
font-family: "A Lot", "Of", "Fonts";
|
||||
}
|
Loading…
Reference in New Issue
Block a user