Chromium Code Reviews| 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> |