| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
| 4 <style> | 4 <style> |
| 5 @font-face { | 5 @font-face { |
| 6 font-family: 'ahem'; | 6 font-family: 'ahem'; |
| 7 src: url(../../resources/Ahem.ttf); | 7 src: url(../../resources/Ahem.ttf); |
| 8 } | 8 } |
| 9 </style> | 9 </style> |
| 10 <script> | 10 <script> |
| 11 description('Checks that adding CSS in callback of fonts.loadFont() does not cau
se a crash.'); | 11 description('Checks that adding CSS in callback of fonts.loadFont() does not cau
se a crash.'); |
| 12 | 12 |
| 13 window.jsTestIsAsync = true; | 13 window.jsTestIsAsync = true; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 27 document.fonts.load("12px ahem").then(addCss); | 27 document.fonts.load("12px ahem").then(addCss); |
| 28 else { | 28 else { |
| 29 testFailed('document.fonts does not exist'); | 29 testFailed('document.fonts does not exist'); |
| 30 finishJSTest(); | 30 finishJSTest(); |
| 31 } | 31 } |
| 32 </script> | 32 </script> |
| 33 </head> | 33 </head> |
| 34 <body> | 34 <body> |
| 35 </body> | 35 </body> |
| 36 </html> | 36 </html> |
| OLD | NEW |