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

Side by Side Diff: LayoutTests/fast/dom/Element/setAttributeNode-for-existing-attribute.html

Issue 846933002: Handle null in value list in getLayeredShorthandValue (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix more tests Created 5 years, 11 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script> 4 <script>
5 function runTest() { 5 function runTest() {
6 if (window.testRunner) 6 if (window.testRunner)
7 testRunner.dumpAsText(); 7 testRunner.dumpAsText();
8 8
9 var testElement = document.getElementById('test'); 9 var testElement = document.getElementById('test');
10 var testElementBgColor = testElement.style.background; 10 var testElementBgColor = testElement.style.backgroundColor;
11 11
12 var newAttr = document.createAttribute("STYLE"); 12 var newAttr = document.createAttribute("STYLE");
13 newAttr.value = "background-color: green"; 13 newAttr.value = "background-color: green";
14 testElement.setAttributeNode(newAttr); 14 testElement.setAttributeNode(newAttr);
15 var testElementBgColorAfterReset = testElement.style.background; 15 var testElementBgColorAfterReset = testElement.style.backgroundColor;
16 16
17 document.getElementById('result').innerHTML = "background-color specified wi th lowercase style attribute was: "+testElementBgColor+" and specified with uppe rcase style attribute is: "+testElementBgColorAfterReset; 17 document.getElementById('result').innerHTML = "background-color specified wi th lowercase style attribute was: "+testElementBgColor+" and specified with uppe rcase style attribute is: "+testElementBgColorAfterReset;
18 } 18 }
19 </script> 19 </script>
20 </head> 20 </head>
21 <body onload="runTest();"> 21 <body onload="runTest();">
22 <div>Testcase for bug <a href="http://crbug.com/279193">279193</a>: setAttribute Node() does not set the new value to an existing attribute if specified attribut e is in a different case.\nThe issue can be manually verified by ascertaining th at a green colored block is displayed instead of a red one.</div> 22 <div>Testcase for bug <a href="http://crbug.com/279193">279193</a>: setAttribute Node() does not set the new value to an existing attribute if specified attribut e is in a different case.\nThe issue can be manually verified by ascertaining th at a green colored block is displayed instead of a red one.</div>
23 <div id="test" style="background-color: red;"/>&nbsp;</div> 23 <div id="test" style="background-color: red;"/>&nbsp;</div>
24 <div id="result"></div> 24 <div id="result"></div>
25 </body> 25 </body>
26 </html> 26 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/script-tests/image-set-setting.js ('k') | LayoutTests/fast/dom/background-shorthand-csstext.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698