| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 @font-face { | 5 @font-face { |
| 6 font-family: "foobar"; | 6 font-family: "foobar"; |
| 7 src: local("foobar"); | 7 src: local("foobar"); |
| 8 } | 8 } |
| 9 div { | 9 div { |
| 10 font-family: "foobar"; | 10 font-family: "foobar"; |
| 11 } | 11 } |
| 12 </style> | 12 </style> |
| 13 <script src="../js/resources/js-test-pre.js"></script> | 13 <script src="../../resources/js-test.js"></script> |
| 14 </head> | 14 </head> |
| 15 <body> | 15 <body> |
| 16 <script> | 16 <script> |
| 17 description("Test the return values for the font properties on the style object.
") | 17 description("Test the return values for the font properties on the style object.
") |
| 18 | 18 |
| 19 var testContainer = document.createElement("div"); | 19 var testContainer = document.createElement("div"); |
| 20 document.body.appendChild(testContainer); | 20 document.body.appendChild(testContainer); |
| 21 | 21 |
| 22 testContainer.innerHTML = '<div id="test">hello</div>'; | 22 testContainer.innerHTML = '<div id="test">hello</div>'; |
| 23 | 23 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 shouldBe("style.font", "'bold 40px sans-serif'"); | 89 shouldBe("style.font", "'bold 40px sans-serif'"); |
| 90 shouldBe("computedStyle.font", "'normal normal bold 40px/normal sans-serif'"); | 90 shouldBe("computedStyle.font", "'normal normal bold 40px/normal sans-serif'"); |
| 91 shouldBe("computedStyle.fontSize", "'40px'"); | 91 shouldBe("computedStyle.fontSize", "'40px'"); |
| 92 shouldBe("computedStyle.fontFamily", "'sans-serif'"); | 92 shouldBe("computedStyle.fontFamily", "'sans-serif'"); |
| 93 shouldBe("checkFontStyleValue()", "true"); | 93 shouldBe("checkFontStyleValue()", "true"); |
| 94 | 94 |
| 95 document.body.removeChild(testContainer); | 95 document.body.removeChild(testContainer); |
| 96 </script> | 96 </script> |
| 97 </body> | 97 </body> |
| 98 </html> | 98 </html> |
| OLD | NEW |