Chromium Code Reviews| Index: LayoutTests/fast/dom/HTMLHrElement/script-tests/color-noshade-attribute.js |
| diff --git a/LayoutTests/fast/dom/HTMLHrElement/script-tests/color-noshade-attribute.js b/LayoutTests/fast/dom/HTMLHrElement/script-tests/color-noshade-attribute.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f1feecb76ae4c4e4408db6861d80e61ff7ca231d |
| --- /dev/null |
| +++ b/LayoutTests/fast/dom/HTMLHrElement/script-tests/color-noshade-attribute.js |
| @@ -0,0 +1,19 @@ |
| +description("HTMLHeaderElement color and noshade attribute test"); |
| + |
| +shouldBeEqualToString("window.getComputedStyle(document.getElementById('hrElement1'),null).getPropertyValue('border-color')","rgb(255, 0, 0)"); |
| +shouldBeEqualToString("window.getComputedStyle(document.getElementById('hrElement1'),null).getPropertyValue('background-color')","rgb(255, 0, 0)"); |
| +shouldBeEqualToString("window.getComputedStyle(document.getElementById('hrElement2'),null).getPropertyValue('border-color')","rgb(0, 0, 255)"); |
| +shouldBeEqualToString("window.getComputedStyle(document.getElementById('hrElement2'),null).getPropertyValue('background-color')","rgb(0, 0, 255)"); |
| +shouldBeEqualToString("window.getComputedStyle(document.getElementById('hrElement3'),null).getPropertyValue('border-color')","rgb(0, 0, 0)"); |
| +shouldBeEqualToString("window.getComputedStyle(document.getElementById('hrElement3'),null).getPropertyValue('background-color')","rgb(0, 0, 0)"); |
| +shouldBeEqualToString("window.getComputedStyle(document.getElementById('hrElement4'),null).getPropertyValue('border-color')","rgb(128, 128, 128)"); |
| +shouldBeEqualToString("window.getComputedStyle(document.getElementById('hrElement4'),null).getPropertyValue('background-color')","rgb(128, 128, 128)"); |
| +document.getElementById('hrElement5').setAttribute("color","yellow"); |
| +document.getElementById('hrElement5').setAttribute("noshade", ""); |
|
rwlbuis
2014/03/04 19:11:35
Nit: you should choose one indenting style and sti
|
| +shouldBeEqualToString("window.getComputedStyle(document.getElementById('hrElement5'),null).getPropertyValue('border-color')","rgb(255, 255, 0)"); |
| +shouldBeEqualToString("window.getComputedStyle(document.getElementById('hrElement5'),null).getPropertyValue('background-color')","rgb(255, 255, 0)"); |
| +document.getElementById('hrElement6').setAttribute("noshade", ""); |
| +document.getElementById('hrElement6').setAttribute("color","green"); |
| +shouldBeEqualToString("window.getComputedStyle(document.getElementById('hrElement6'),null).getPropertyValue('border-color')","rgb(0, 128, 0)"); |
| +shouldBeEqualToString("window.getComputedStyle(document.getElementById('hrElement6'),null).getPropertyValue('background-color')","rgb(0, 128, 0)"); |
| + |