Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / fontface-load-promise-after-gc.html
blobba47610cecc35081dbb280ba78ae66e8c838b472
1 <!doctype html>
2 <script src="../../resources/js-test.js"></script>
3 <script>
4 description('Tests that fontFace.load() promise is resolved when fontface object is unreachable from JS');
6 window.jsTestIsAsync = true;
8 var fontFace = new FontFace('ahem', 'url(../../resources/Ahem.ttf)');
9 document.fonts.add(fontFace);
10 fontFace.load().then(function() {
11 debug("PASS load() promise resolved");
12 finishJSTest();
13 });
14 fontFace = undefined;
15 gc();
16 </script>