(text: string, expected: Font)
| 2 | import { Font, FontStyle, FontWeight } from '@coderline/alphatab/model/Font'; |
| 3 | describe('FontTests', () => { |
| 4 | function parseText(text: string, expected: Font) { |
| 5 | const font = Font.fromJson(text); |
| 6 | expect(font!.families.join(', ')).toBe(expected.families.join(', ')); |
| 7 | expect(font!.isBold).toBe(expected.isBold); |
| 8 | expect(font!.isItalic).toBe(expected.isItalic); |
| 9 | expect(font!.size).toBe(expected.size); |
| 10 | expect(font!.style).toBe(expected.style); |
| 11 | expect(font!.weight).toBe(expected.weight); |
| 12 | } |
| 13 | |
| 14 | it('parses-full', () => { |
| 15 | parseText( |
no test coverage detected