Skip to content

Commit c1c5556

Browse files
committed
Copy ahem font
1 parent 9710bb8 commit c1c5556

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

tests/test_declaration.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -443,17 +443,17 @@ def test_list_property(self):
443443

444444
# Check valid values
445445
node.style.font_family = ['serif']
446-
node.style.font_family = ["'Arial Black'", 'serif']
446+
node.style.font_family = ["'DejaVu Sans'", 'serif']
447447

448448
# TODO: This will coerce to a list, is this a valid behavior?
449-
node.style.font_family = '"Arial Black"'
450-
self.assertEqual(node.style.font_family, ['"Arial Black"'])
449+
node.style.font_family = '"DejaVu Sans"'
450+
self.assertEqual(node.style.font_family, ['"DejaVu Sans"'])
451451
node.style.font_family = ' " Arial Black " , serif '
452-
self.assertEqual(node.style.font_family, ['"Arial Black"', 'serif'])
452+
self.assertEqual(node.style.font_family, ['"DejaVu Sans"', 'serif'])
453453

454454
# Check invalid values
455455
with self.assertRaises(ValueError):
456-
node.style.font_family = ['Arial Black']
456+
node.style.font_family = ['DejaVu Sans']
457457

458458
# Check the error message
459459
try:
@@ -711,9 +711,9 @@ def test_font_shorthand_property(self):
711711
node.style.font_variant = 'small-caps'
712712
node.style.font_size = '10px'
713713
node.style.line_height = '1.5'
714-
node.style.font_family = ['"Arial Black"', 'serif']
714+
node.style.font_family = ['"DejaVu Sans"', 'serif']
715715
# TODO: Is this the behavior we want?
716-
self.assertEqual(node.style.font, 'italic small-caps bold 10.0px/1.5 "Arial Black", serif')
716+
self.assertEqual(node.style.font, 'italic small-caps bold 10.0px/1.5 "DejaVu Sans", serif')
717717

718718
# Check setting the shorthand resets values
719719
node.style.font = '9px serif'
@@ -733,7 +733,7 @@ def test_font_shorthand_property(self):
733733
node.style.font_variant = 'small-caps'
734734
node.style.font_size = '10px'
735735
node.style.line_height = '1.5'
736-
node.style.font_family = ['"Arial Black"', 'serif']
736+
node.style.font_family = ['"DejaVu Sans"', 'serif']
737737
self.assertEqual(node.style.font, '9px serif')
738738

739739
# Check invalid values

tests/test_fonts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
'font_weight': 'bold',
2929
'font_size': 'large',
3030
'line_height': 'normal',
31-
'font_family': ['Palatino', 'serif'],
31+
'font_family': ['Ahem', 'serif'],
3232
},
3333
r'normal small-caps 120%/120% fantasy': {
3434
'font_style': 'normal',

0 commit comments

Comments
 (0)