mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-13 20:14:57 -10:00
Automatic update from web-platform-tests Add web platform tests Signed-off-by: Simon Wülker <[email protected]> -- wpt-commits: 2bc44bce1de2819331d77d2f5993d6dc22b77e14 wpt-pr: 58504
22 lines
719 B
HTML
22 lines
719 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<title>Constructing a FontFace from an ArrayBuffer should reject with a SyntaxError</title>
|
|
<link rel="help" href="https://drafts.csswg.org/css-font-loading/#font-face-constructor">
|
|
<link rel="author" title="Simon Wülker" href="[email protected]">
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
|
|
<script>
|
|
promise_test(function(t) {
|
|
const bogus_font = new FontFace(
|
|
"FontFamily AhemTest",
|
|
new ArrayBuffer(8),
|
|
);
|
|
document.fonts.add(bogus_font);
|
|
return promise_rejects_dom(t, 'SyntaxError', bogus_font.loaded);
|
|
})
|
|
</script>
|
|
|
|
</html>
|