blob: 8eaeab7ad7a23a078c9cab2e1e57ffc148fce3c4 [file] [log] [blame]
<html>
<head>
<script src="../../resources/js-test.js"></script>
</head>
<body>
<script>
description('Call FontFaceSet::ready in a detached frame.');
if (window.testRunner)
testRunner.dumpAsText();
function runTests() {
var frame = document.createElement('iframe');
document.body.appendChild(frame);
var doc = frame.contentDocument;
document.body.removeChild(frame);
doc.fonts.ready;
}
if (document.fonts) {
runTests();
} else {
testFailed('document.fonts does not exist');
}
</script>
</body>
</html>