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

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 the layout testcase 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../js/resources/js-test-pre.js"></script>
5 </head>
6 <body>
7 <div id="test" style="background-color: red;"/>&nbsp;</div>
arv (Not doing code reviews) 2013/08/29 14:18:16 Invalid HTML. Instead of using &nbsp; you could s
8 <script>
9 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.');
10
11 var testElement = document.getElementById('test');
12 var newAttr = document.createAttribute("STYLE");
13 newAttr.value = "background-color: green;";
14 testElement.setAttributeNode(newAttr);
15
16 shouldBeEqualToString('testElement.attributes.length.toString()', '2');
17 shouldBeEqualToString('testElement.style.background', 'green');
18
19 testElement.style.display = 'none';
arv (Not doing code reviews) 2013/08/29 14:18:16 If you hide this your description is not accurate.
20 </script>
21 <script src="../../js/resources/js-test-post.js"></script>
22 </body>
23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698