Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(427)

Side by Side Diff: LayoutTests/fast/dom/HTMLHrElement/script-tests/color-noshade-attribute.js

Issue 162993002: hr color attribute not working. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 description("HTMLHeaderElement color and noshade attribute test");
2
3 shouldBeEqualToString("window.getComputedStyle(document.getElementById('hrElemen t1'),null).getPropertyValue('border-color')","rgb(255, 0, 0)");
4 shouldBeEqualToString("window.getComputedStyle(document.getElementById('hrElemen t1'),null).getPropertyValue('background-color')","rgb(255, 0, 0)");
5 shouldBeEqualToString("window.getComputedStyle(document.getElementById('hrElemen t2'),null).getPropertyValue('border-color')","rgb(0, 0, 255)");
6 shouldBeEqualToString("window.getComputedStyle(document.getElementById('hrElemen t2'),null).getPropertyValue('background-color')","rgb(0, 0, 255)");
7 shouldBeEqualToString("window.getComputedStyle(document.getElementById('hrElemen t3'),null).getPropertyValue('border-color')","rgb(0, 0, 0)");
8 shouldBeEqualToString("window.getComputedStyle(document.getElementById('hrElemen t3'),null).getPropertyValue('background-color')","rgb(0, 0, 0)");
9 shouldBeEqualToString("window.getComputedStyle(document.getElementById('hrElemen t4'),null).getPropertyValue('border-color')","rgb(128, 128, 128)");
10 shouldBeEqualToString("window.getComputedStyle(document.getElementById('hrElemen t4'),null).getPropertyValue('background-color')","rgb(128, 128, 128)");
11 document.getElementById('hrElement5').setAttribute('color','yellow');
12 document.getElementById('hrElement5').setAttribute('noshade', '');
13 shouldBeEqualToString("window.getComputedStyle(document.getElementById('hrElemen t5'),null).getPropertyValue('border-color')","rgb(255, 255, 0)");
14 shouldBeEqualToString("window.getComputedStyle(document.getElementById('hrElemen t5'),null).getPropertyValue('background-color')","rgb(255, 255, 0)");
15 document.getElementById('hrElement6').setAttribute('noshade', '');
16 document.getElementById('hrElement6').setAttribute('color','green');
17 shouldBeEqualToString("window.getComputedStyle(document.getElementById('hrElemen t6'),null).getPropertyValue('border-color')","rgb(0, 128, 0)");
18 shouldBeEqualToString("window.getComputedStyle(document.getElementById('hrElemen t6'),null).getPropertyValue('background-color')","rgb(0, 128, 0)");
19
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/HTMLHrElement/hr-color-noshade-attribute-expected.txt ('k') | Source/core/html/HTMLHRElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698