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

Unified Diff: LayoutTests/fast/dom/NamedNodeMap-missing-arguments.html

Issue 755213002: Let NamedNodeMap take and return Attr instead of Node (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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/NamedNodeMap-missing-arguments.html
diff --git a/LayoutTests/fast/dom/NamedNodeMap-missing-arguments.html b/LayoutTests/fast/dom/NamedNodeMap-missing-arguments.html
new file mode 100644
index 0000000000000000000000000000000000000000..286efe3a47009c5412570c45e728fbb837aaef2f
--- /dev/null
+++ b/LayoutTests/fast/dom/NamedNodeMap-missing-arguments.html
@@ -0,0 +1,18 @@
+<!doctype html>
+<html>
+<head>
+<script src="../../resources/js-test.js"></script>
+</head>
+<body>
+<script>
+[
+ "setNamedItem()",
+ "setNamedItemNS()",
+].forEach(function(expr)
+{
+ window.attributes = document.body.attributes;
+ shouldThrow("attributes." + expr);
+});
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698