OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.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", "'
none'"); |
11 shouldBe("div.style.borderTopStyle", "'initial'"); | 11 shouldBe("div.style.borderTopStyle", "'none'"); |
12 shouldBe("div.style.borderRightStyle", "'initial'"); | 12 shouldBe("div.style.borderRightStyle", "'none'"); |
13 shouldBe("div.style.borderBottomStyle", "'initial'"); | 13 shouldBe("div.style.borderBottomStyle", "'none'"); |
14 shouldBe("div.style.borderLeftStyle", "'initial'"); | 14 shouldBe("div.style.borderLeftStyle", "'none'"); |
15 | 15 |
16 shouldBe("div.style.borderTopColor", "'initial'"); | 16 shouldBe("div.style.borderTopColor", "'currentcolor'"); |
17 shouldBe("div.style.borderRightColor", "'initial'"); | 17 shouldBe("div.style.borderRightColor", "'currentcolor'"); |
18 shouldBe("div.style.borderBottomColor", "'initial'"); | 18 shouldBe("div.style.borderBottomColor", "'currentcolor'"); |
19 shouldBe("div.style.borderLeftColor", "'initial'"); | 19 shouldBe("div.style.borderLeftColor", "'currentcolor'"); |
20 | 20 |
21 shouldBe("div.setAttribute('style', 'border: solid');div.style.borderTopWidth",
"'initial'"); | 21 shouldBe("div.setAttribute('style', 'border: solid');div.style.borderTopWidth",
"'medium'"); |
22 shouldBe("div.style.borderRightWidth", "'initial'"); | 22 shouldBe("div.style.borderRightWidth", "'medium'"); |
23 shouldBe("div.style.borderBottomWidth", "'initial'"); | 23 shouldBe("div.style.borderBottomWidth", "'medium'"); |
24 shouldBe("div.style.borderLeftWidth", "'initial'"); | 24 shouldBe("div.style.borderLeftWidth", "'medium'"); |
25 | 25 |
26 </script> | 26 </script> |
27 </body> | 27 </body> |
28 </html> | 28 </html> |
OLD | NEW |