| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 This tests platform specific system font styles. If any of the styles appear in
monospace the test fails. | 2 This tests platform specific system font styles. If any of the styles appear in
monospace the test fails. |
| 3 <hr> | 3 <hr> |
| 4 <div style="font-family: monospace;" id="container"></div> | 4 <div style="font-family: monospace;" id="container"></div> |
| 5 <script> | 5 <script> |
| 6 var systemFontStyles = [ | 6 var systemFontStyles = [ |
| 7 'caption', | 7 'caption', |
| 8 'icon', | 8 'icon', |
| 9 'menu', | 9 'menu', |
| 10 'message-box', | 10 'message-box', |
| 11 'small-caption', | 11 'small-caption', |
| 12 'status-bar', | 12 'status-bar', |
| 13 ]; | 13 ]; |
| 14 systemFontStyles.forEach(function(systemFont) { | 14 systemFontStyles.forEach(function(systemFont) { |
| 15 var item = document.createElement('div'); | 15 var item = document.createElement('div'); |
| 16 container.appendChild(item); | 16 container.appendChild(item); |
| 17 item.style.font = systemFont; | 17 item.style.font = systemFont; |
| 18 item.textContent = systemFont + ': ' + getComputedStyle(item).font; | 18 item.textContent = systemFont + ': ' + getComputedStyle(item).fontFamily; |
| 19 }); | 19 }); |
| 20 if (window.testRunner) { | 20 if (window.testRunner) { |
| 21 testRunner.dumpAsText(); | 21 testRunner.dumpAsText(); |
| 22 } | 22 } |
| 23 </script> | 23 </script> |
| OLD | NEW |