Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / fontfaceset-unattached-document.html
blob1db3fced5cbb5c04bbe9d35e6f294be6f9924b9b
1 <html>
2 <head>
3 <script src="../../resources/gc.js"></script>
4 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
8 d = document.implementation.createDocument(null, '');
9 d.fonts.size;
10 face = new FontFace('f', 'local(F)', {});
11 d.fonts.add(face);
12 d.fonts.delete(face);
13 d.fonts.has(face);
14 d.fonts.clear();
15 d.fonts.check('10px f');
16 d.fonts.load('10px f');
17 d.fonts.ready;
18 d.fonts.forEach(function(){});
19 d.fonts.status;
21 fontFaceSet = d.fonts;
22 delete d;
23 gc();
25 fontFaceSet.add(face);
26 fontFaceSet.delete(face);
27 fontFaceSet.has(face);
28 fontFaceSet.clear();
29 fontFaceSet.check('10px f');
30 fontFaceSet.load('10px f');
31 fontFaceSet.ready;
32 fontFaceSet.forEach(function(){});
33 fontFaceSet.status;
34 </script>
35 </head>
36 <body>
37 This test passes if it does not crash.
38 </body>
39 </html>