| internals.invalidateFontCache(); |
| internals.clearMemoryCache(); |
| testRunner.waitUntilDone(); |
| src: url("../../resources/Ahem.otf") format("opentype"); |
| This test passes if there is no ASSERT in debug mode. This happens when: |
| <li>No one uses the CSS Font Loading API</li> |
| <li>A font starts loading</li> |
| <li>Someone uses the CSS Font Loading API, causing us to create Javascript wrappers for our internal objects</li> |
| <li>The font finishes loading</li> |
| The bug occurs when the wrappers do not correctly understand that there are in-flight loads already happening. |
| <div style="font-family: 'WebFont';">Hello</div> |
| document.body.offsetTop; // Force layout, which starts fonts loading |
| document.fonts.ready.then(function() { |