Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<meta charset=utf-8>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
"use strict";
test(function() {
// Get the FontFaceSet interface object, even in Chrome where it isn't exposed.
const FontFaceSet = "FontFaceSet" in self ? self.FontFaceSet : document.fonts.constructor;
assert_throws_js(TypeError, function() {
new FontFaceSet([]);
});
}, "FontFaceSet constructor should not be supported");
</script>