Skip to content

Commit

Permalink
Change order of glyphs in test
Browse files Browse the repository at this point in the history
The previous order was giving random errors for no reason.
  • Loading branch information
liZe committed Apr 25, 2024
1 parent 976d749 commit c75cc9f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/draw/test_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -832,10 +832,10 @@ def test_font_size_very_small(assert_pixels):
def test_missing_glyph_fallback(assert_pixels):
# The apostrophe is not included in weasyprint.otf
assert_pixels('''
zzzzzzzzzzzzzzzzz___
zzzzzzzzzzzzzzzzzRR_
zzzzzzzzzzzzzzzzzRR_
zzzzzzzzzzzzzzzzz___
___zzzzzzzzzzzzzzzzz
_RRzzzzzzzzzzzzzzzzz
_RRzzzzzzzzzzzzzzzzz
___zzzzzzzzzzzzzzzzz
''', '''
<style>
@font-face {src: url(weasyprint.otf); font-family: weasyprint}
Expand All @@ -848,9 +848,8 @@ def test_missing_glyph_fallback(assert_pixels):
font-size: 2px;
line-height: 0;
margin: 2px 1px;
text-align: right;
}
</style>'a''' % SANS_FONTS)
</style>a\'''' % SANS_FONTS)


def test_tabulation_character(assert_pixels):
Expand Down

0 comments on commit c75cc9f

Please sign in to comment.