| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
| 5 <script src="../js/resources/js-test-pre.js"></script> | 5 <script src="../js/resources/js-test-pre.js"></script> |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body> |
| 8 <span id="testspan" style="font-family: 'Arial [ding dong]', 'Helvetica [Xft]',
Courier">foo</span> | 8 <span id="testspan" style="font-family: 'Arial [ding dong]', 'Helvetica [Xft]',
Courier">foo</span> |
| 9 <script> | 9 <script> |
| 10 | 10 |
| 11 description("This test checks that we don't strip trailing gunk in brackets from
font families."); | 11 description("This test checks that we don't strip trailing gunk in brackets from
font families."); |
| 12 | 12 |
| 13 var spanElement = document.getElementById('testspan'); | 13 var spanElement = document.getElementById('testspan'); |
| 14 | 14 |
| 15 var computedStyle = window.getComputedStyle(spanElement); | 15 var computedStyle = window.getComputedStyle(spanElement); |
| 16 shouldBe("spanElement.innerHTML", "'foo'"); | 16 shouldBe("spanElement.innerHTML", "'foo'"); |
| 17 shouldBe("computedStyle.getPropertyValue('font-family')", "\"'Arial [ding dong]'
, 'Helvetica [Xft]', Courier\""); | 17 shouldBe("computedStyle.getPropertyValue('font-family')", "\"'Arial [ding dong]'
, 'Helvetica [Xft]', Courier\""); |
| 18 | 18 |
| 19 document.body.removeChild(spanElement); | 19 document.body.removeChild(spanElement); |
| 20 | 20 |
| 21 </script> | 21 </script> |
| 22 <script src="../js/resources/js-test-post.js"></script> | |
| 23 </body> | 22 </body> |
| 24 </html> | 23 </html> |
| OLD | NEW |