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

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

Issue 22842013: setAttributeNode() does not set the new value to an existing attribute if specified attribute is in… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: modifying layout testcases Created 7 years, 3 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Element/setAttributeNode-for-existing-attribute-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 #test { width: 100px; height: 100px; }
6 </style>
7 <script src="../../js/resources/js-test-pre.js"></script>
8 </head>
9 <body>
10 <div id="test" style="background-color: red;"/></div>
arv (Not doing code reviews) 2013/08/29 15:46:37 Still invalid HTML. <div id="test" style="backgro
11 <script>
12 description('Testcase for bug <a href="http://crbug.com/279193">279193</a>: setA ttributeNode() does not set the new value to an existing attribute if specified attribute is in a different case.\nThe issue can be manually verified by ascerta ining that a green colored block is displayed instead of a red one.');
13
14 var testElement = document.getElementById('test');
15 var newAttr = document.createAttribute("STYLE");
16 newAttr.value = "background-color: green;";
17 testElement.setAttributeNode(newAttr);
18
19 shouldBeEqualToString('testElement.attributes.length.toString()', '2');
arv (Not doing code reviews) 2013/08/29 15:46:37 No need to use a string comparison. shouldBe('tes
20 shouldBeEqualToString('testElement.style.background', 'green');
arv (Not doing code reviews) 2013/08/29 15:46:37 Should be backgroundColor
21 </script>
22 <script src="../../js/resources/js-test-post.js"></script>
23 </body>
24 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Element/setAttributeNode-for-existing-attribute-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698