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

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: Added to relList to anchor element and LayoutTest 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 <!DOCTYPE html>
2 <html>
3 <head>
4 <link rel="shortcut icon" href="../images/resources/1bit.ico"/>
5 <script src="../../resources/js-test.js"></script>
6 </head>
7 <body>
8 <script>
9 description("Checks relList attribute on link element");
10
11 var linkrellist = document.querySelectorAll('link[rel]');
Inactive 2014/07/24 15:36:40 Same comments as for the other layout test.
12 var link = linkrellist[0];
13 shouldBe("link.relList.contains('shortcut')", "true");
14 shouldBe("link.relList.contains('icon')", "true");
15 shouldBe("link.relList.length", "2");
16 shouldBe("link.relList.contains('shortcut1')", "false");
17 shouldNotThrow("link.rel = 'nofollow'");
18 shouldBe("link.relList.length", "1");
19 shouldBe("link.relList.contains('nofollow')", "true");
20 shouldBe("link.relList.contains('shortcut')", "false");
21 shouldBe("link.relList.contains('icon')", "false");
22 </script>
23 </body>
24 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698