shouldBeEqualToString('modifiedFace.featureSettings', "'dlig' 1, 'liga' 0");
debug('');
- shouldThrow("new FontFace('test', 'invalid_src')");
face = new FontFace('test', 'local(foo)');
shouldThrow("face.style = ''");
shouldThrow("face.weight = 'a'");
shouldThrow("face.unicodeRange = 'U+'");
shouldThrow("face.variant = '???'");
shouldThrow("face.featureSettings = null");
+ promise1 = face.loaded;
+ promise2 = face.load();
+ promise3 = face.loaded;
+ shouldBeTrue('promise1 === promise2');
+ shouldBeTrue('promise1 === promise3');
}
if (document.fonts)