| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 <html> | 
|  | 2 <head> | 
|  | 3 <script> | 
|  | 4 window.enablePixelTesting = true; | 
|  | 5 </script> | 
|  | 6 <script src="../../js-test-resources/js-test.js"></script> | 
|  | 7 <script src="../../forms-test-resources/picker-common.js"></script> | 
|  | 8 <style> | 
|  | 9 @font-face { | 
|  | 10     font-family: 'TestFont'; | 
|  | 11     src: url(slow-ahem-loading.cgi); | 
|  | 12 } | 
|  | 13 option { | 
|  | 14     font-family: TestFont; | 
|  | 15 } | 
|  | 16 </style> | 
|  | 17 <select id="menu"> | 
|  | 18     <option>foo</option> | 
|  | 19     <option>bar</option> | 
|  | 20 </select> | 
|  | 21 <script> | 
|  | 22 description('Test that fonts loaded after a popup menu is opened triggers a styl
    e recalc.'); | 
|  | 23 | 
|  | 24 document.fonts.ready.then(onFontsReady); | 
|  | 25 | 
|  | 26 openPicker(menu, function() {}, function () { | 
|  | 27     testFailed('picker didn\'t open') | 
|  | 28     finishJSTest(); | 
|  | 29 }); | 
|  | 30 | 
|  | 31 function onFontsReady() { | 
|  | 32     finishJSTest(); | 
|  | 33 } | 
|  | 34 </script> | 
|  | 35 </head> | 
|  | 36 <body> | 
|  | 37 </body> | 
|  | 38 </html> | 
| OLD | NEW | 
|---|