| Index: third_party/WebKit/LayoutTests/fast/dom/HTMLHrElement/hr-color-noshade-attribute.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLHrElement/hr-color-noshade-attribute.html b/third_party/WebKit/LayoutTests/fast/dom/HTMLHrElement/hr-color-noshade-attribute.html
|
| index 42e14e7374f21450950661720063bb906689945a..74e6a92935428ae5f322b79eefb8f67fcfd6b816 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/dom/HTMLHrElement/hr-color-noshade-attribute.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/dom/HTMLHrElement/hr-color-noshade-attribute.html
|
| @@ -10,6 +10,25 @@
|
| <hr id="hrElement4" noshade>
|
| <hr id="hrElement5">
|
| <hr id="hrElement6">
|
| - <script src="script-tests/color-noshade-attribute.js"></script>
|
| + <script>
|
| +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', '');
|
| +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)");
|
| +</script>
|
| </body>
|
| </html>
|
|
|