Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <link id="linkId" rel="shortcut icon" href="../images/resources/1bit.ico"/> | |
|
Inactive
2014/07/25 12:55:51
Please add back the DOCTYPE.
| |
| 2 <script src="../../resources/js-test.js"></script> | |
| 3 <script> | |
| 4 description("Checks relList attribute on link element"); | |
| 5 | |
| 6 var link = document.getElementById('linkId'); | |
| 7 shouldBe("link.relList.__proto__", "DOMTokenList.prototype"); | |
| 8 shouldBeTrue("link.relList.contains('shortcut')"); | |
|
Inactive
2014/07/25 12:55:51
Same comment about using indexed getter.
| |
| 9 shouldBeTrue("link.relList.contains('icon')"); | |
| 10 shouldBe("link.relList.length", "2"); | |
| 11 shouldBeFalse("link.relList.contains('shortcut1')"); | |
| 12 shouldNotThrow("link.rel = 'nofollow'"); | |
| 13 shouldBe("link.relList.length", "1"); | |
| 14 shouldBeTrue("link.relList.contains('nofollow')"); | |
| 15 shouldBeFalse("link.relList.contains('shortcut')"); | |
| 16 shouldBeFalse("link.relList.contains('icon')"); | |
| 17 shouldNotThrow("link.removeAttribute('rel')"); | |
| 18 shouldBeEmptyString("link.rel"); | |
| 19 shouldBe("link.relList.length", "0"); | |
| 20 shouldBeUndefined("link.relList[0]"); | |
| 21 </script> | |
| OLD | NEW |