[Tests] Remove hack after Coverage .Format removal

This commit is contained in:
Behdad Esfahbod 2021-03-23 11:33:31 -07:00
parent d6bdfba587
commit 8f79235d00
2 changed files with 0 additions and 2 deletions

View File

@ -1686,7 +1686,6 @@ def splitMarkBasePos(oldSubTable, newSubTable, overflowRecord):
oldSubTable.MarkCoverage.glyphs = oldMarkCoverage oldSubTable.MarkCoverage.glyphs = oldMarkCoverage
newSubTable.MarkCoverage = oldSubTable.MarkCoverage.__class__() newSubTable.MarkCoverage = oldSubTable.MarkCoverage.__class__()
newSubTable.MarkCoverage.Format = oldSubTable.MarkCoverage.Format
newSubTable.MarkCoverage.glyphs = newMarkCoverage newSubTable.MarkCoverage.glyphs = newMarkCoverage
# share the same BaseCoverage in both halves # share the same BaseCoverage in both halves

View File

@ -599,7 +599,6 @@ def test_splitMarkBasePos():
glyphMap = {g: i for i, g in enumerate(glyphOrder)} glyphMap = {g: i for i, g in enumerate(glyphOrder)}
oldSubTable = buildMarkBasePosSubtable(marks, bases, glyphMap) oldSubTable = buildMarkBasePosSubtable(marks, bases, glyphMap)
oldSubTable.MarkCoverage.Format = oldSubTable.BaseCoverage.Format = 1
newSubTable = otTables.MarkBasePos() newSubTable = otTables.MarkBasePos()
ok = otTables.splitMarkBasePos(oldSubTable, newSubTable, overflowRecord=None) ok = otTables.splitMarkBasePos(oldSubTable, newSubTable, overflowRecord=None)