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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/relList_on_link.html
diff --git a/LayoutTests/fast/dom/relList_on_link.html b/LayoutTests/fast/dom/relList_on_link.html
new file mode 100644
index 0000000000000000000000000000000000000000..2c759210d65bd6e1ba8ecaff613ab30c03d859eb
--- /dev/null
+++ b/LayoutTests/fast/dom/relList_on_link.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link rel="shortcut icon" href="../images/resources/1bit.ico"/>
+<script src="../../resources/js-test.js"></script>
+</head>
+<body>
+<script>
+description("Checks relList attribute on link element");
+
+var linkrellist = document.querySelectorAll('link[rel]');
Inactive 2014/07/24 15:36:40 Same comments as for the other layout test.
+var link = linkrellist[0];
+shouldBe("link.relList.contains('shortcut')", "true");
+shouldBe("link.relList.contains('icon')", "true");
+shouldBe("link.relList.length", "2");
+shouldBe("link.relList.contains('shortcut1')", "false");
+shouldNotThrow("link.rel = 'nofollow'");
+shouldBe("link.relList.length", "1");
+shouldBe("link.relList.contains('nofollow')", "true");
+shouldBe("link.relList.contains('shortcut')", "false");
+shouldBe("link.relList.contains('icon')", "false");
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698