Serialize unquoted font-family without quote

This commit is contained in:
Nazım Can Altınova 2017-03-28 01:10:27 +03:00
parent 54e2b7b2d5
commit 9991c496b3
No known key found for this signature in database
GPG key ID: AF9BCD7CE6449954
8 changed files with 53 additions and 24 deletions

View file

@ -12,8 +12,14 @@ fn test_local_web_font() {
let (inp_chan, _) = ipc::channel().unwrap();
let (out_chan, out_receiver) = ipc::channel().unwrap();
let font_cache_thread = FontCacheThread::new(inp_chan, None);
let family_name = FamilyName(From::from("test family"));
let variant_name = FamilyName(From::from("test font face"));
let family_name = FamilyName {
name: From::from("test family"),
quoted: true,
};
let variant_name = FamilyName {
name: From::from("test font face"),
quoted: true,
};
let font_face_rule = FontFaceData {
family: family_name.clone(),
sources: vec![Source::Local(variant_name)],

View file

@ -16,9 +16,6 @@
[content: attr(foo_bar)]
expected: FAIL
[font-family: Arial]
expected: FAIL
[list-style-type: decimal-leading-zero]
expected: FAIL