Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / fontfaceset-in-detached-frame.html
blob8eaeab7ad7a23a078c9cab2e1e57ffc148fce3c4
1 <html>
2 <head>
3 <script src="../../resources/js-test.js"></script>
4 </head>
5 <body>
6 <script>
7 description('Call FontFaceSet::ready in a detached frame.');
9 if (window.testRunner)
10 testRunner.dumpAsText();
12 function runTests() {
13 var frame = document.createElement('iframe');
14 document.body.appendChild(frame);
15 var doc = frame.contentDocument;
16 document.body.removeChild(frame);
17 doc.fonts.ready;
20 if (document.fonts) {
21 runTests();
22 } else {
23 testFailed('document.fonts does not exist');
25 </script>
26 </body>
27 </html>