9 testRunner
.waitUntilDone();
13 var font
= new FontFace('myahem', 'url(../../resources/Ahem.ttf)', {});
14 document
.fonts
.add(font
);
16 // Create dummy stylesheet. StyleInvalidationAnalysis will find
17 // that no setNeedsStyleRecalc is required.
18 var newStyle
= document
.createElement('style');
19 newStyle
.innerHTML
= '#dummy { color: red; }';
21 // Wait until scheduled styleRecalc is finished.
23 setTimeout(function() {
24 // Insert a new StyleSheet to invoke clearStyleResolver.
25 var referenceNode
= document
.getElementById('second');
26 referenceNode
.parentNode
.insertBefore(newStyle
, referenceNode
);
27 // Load a font while StyleResolver is missing.
30 // Wait until scheduled styleRecalc is finished.
31 setTimeout(function() {
32 if (window
.testRunner
)
33 testRunner
.notifyDone();
39 // Need to runTest when document.parsing is false.
40 setTimeout(runTest
, 0);
43 <div id='limited'
></div>
44 <div style='font-family: myahem'
>
45 Test for crbug.com/
369401: if fonts are loaded while StyleResolver is missing, the fonts are not rendered.