| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <body> | 3 <body> |
| 4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../js/resources/js-test-pre.js"></script> |
| 5 <script> | 5 <script> |
| 6 | 6 |
| 7 description("This test ensures border shorthand property initializes longhand pr
operties such as border-top-style and border-right-color."); | 7 description("This test ensures border shorthand property initializes longhand pr
operties such as border-top-style and border-right-color."); |
| 8 | 8 |
| 9 var div = document.createElement('div'); | 9 var div = document.createElement('div'); |
| 10 shouldBe("div.setAttribute('style', 'border: 1px');div.style.borderTopStyle", "'
initial'"); | 10 shouldBe("div.setAttribute('style', 'border: 1px');div.style.borderTopStyle", "'
initial'"); |
| 11 shouldBe("div.style.borderTopStyle", "'initial'"); | 11 shouldBe("div.style.borderTopStyle", "'initial'"); |
| 12 shouldBe("div.style.borderRightStyle", "'initial'"); | 12 shouldBe("div.style.borderRightStyle", "'initial'"); |
| 13 shouldBe("div.style.borderBottomStyle", "'initial'"); | 13 shouldBe("div.style.borderBottomStyle", "'initial'"); |
| 14 shouldBe("div.style.borderLeftStyle", "'initial'"); | 14 shouldBe("div.style.borderLeftStyle", "'initial'"); |
| 15 | 15 |
| 16 shouldBe("div.style.borderTopColor", "'initial'"); | 16 shouldBe("div.style.borderTopColor", "'initial'"); |
| 17 shouldBe("div.style.borderRightColor", "'initial'"); | 17 shouldBe("div.style.borderRightColor", "'initial'"); |
| 18 shouldBe("div.style.borderBottomColor", "'initial'"); | 18 shouldBe("div.style.borderBottomColor", "'initial'"); |
| 19 shouldBe("div.style.borderLeftColor", "'initial'"); | 19 shouldBe("div.style.borderLeftColor", "'initial'"); |
| 20 | 20 |
| 21 shouldBe("div.setAttribute('style', 'border: solid');div.style.borderTopWidth",
"'initial'"); | 21 shouldBe("div.setAttribute('style', 'border: solid');div.style.borderTopWidth",
"'initial'"); |
| 22 shouldBe("div.style.borderRightWidth", "'initial'"); | 22 shouldBe("div.style.borderRightWidth", "'initial'"); |
| 23 shouldBe("div.style.borderBottomWidth", "'initial'"); | 23 shouldBe("div.style.borderBottomWidth", "'initial'"); |
| 24 shouldBe("div.style.borderLeftWidth", "'initial'"); | 24 shouldBe("div.style.borderLeftWidth", "'initial'"); |
| 25 | 25 |
| 26 </script> | 26 </script> |
| 27 <script src="../js/resources/js-test-post.js"></script> | |
| 28 </body> | 27 </body> |
| 29 </html> | 28 </html> |
| OLD | NEW |