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

Side by Side Diff: LayoutTests/fast/dom/relList_on_link.html

Issue 400763002: Adding relList attr to link and anchor element Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: modified as per review comment Created 6 years, 5 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 <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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698