| (async function(testRunner) { |
| var page = await testRunner.createPage(); |
| await page.loadHTML(` |
| <html> |
| <meta charset="UTF-8"> |
| <body> |
| <div class="test"> |
| <!-- Private use area Ranges: U+E000..U+F8FF, U+F0000..U+FFFFF, U+100000..U+10FFFF --> |
| <div id="pua_test_mono" style="font-family: monospace;">abc󰀀󺪪􀀀􊪪</div> |
| <div id="pua_test_serif" style="font-family: serif;">abc󰀀󺪪􀀀􊪪</div> |
| </div> |
| </body> |
| </html> |
| `); |
| var session = await page.createSession(); |
| testRunner.log(`Test passes if the fallback font selected for the Unicode Private Use Area test text is the priority font.`); |
| |
| var helper = await testRunner.loadScript('./resources/layout-font-test.js'); |
| var results = await helper(testRunner, session); |
| testRunner.completeTest(); |
| }) |