OLD | NEW |
---|---|
(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;"/> </div> | |
arv (Not doing code reviews)
2013/08/29 14:18:16
Invalid HTML.
Instead of using 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> | |
OLD | NEW |