3 <script src=
"../../resources/js-test.js"></script>
10 src: url(../../resources/Ahem.ttf);
20 description('Test that onloadingdone is fired after style recalculation.');
22 window
.jsTestIsAsync
= true;
25 document
.fonts
.onloadingdone = function() {
27 testDiv
= document
.getElementById('test');
28 shouldBeEqualToString('window.getComputedStyle(testDiv, 0).width', '48px');
31 document
.fonts
.ready
.then(function() {
32 debug('ready promise fulfilled');
33 shouldBeEqualToString('window.getComputedStyle(testDiv, 0).width', '48px');
41 testFailed('document.fonts does not exist');