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

Unified Diff: LayoutTests/fast/dom/Element/script-tests/setAttributeNS-namespace-err.js

Issue 120373003: Revert of Make arguments to Element methods non-optional (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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/Element/script-tests/setAttributeNS-namespace-err.js
diff --git a/LayoutTests/fast/dom/Element/script-tests/setAttributeNS-namespace-err.js b/LayoutTests/fast/dom/Element/script-tests/setAttributeNS-namespace-err.js
index dbe8f561ddafb30158892e61a74a1658f4ffec21..d5af5e6fc57a27dc4dd5faec9035d79e2a48a28f 100644
--- a/LayoutTests/fast/dom/Element/script-tests/setAttributeNS-namespace-err.js
+++ b/LayoutTests/fast/dom/Element/script-tests/setAttributeNS-namespace-err.js
@@ -124,4 +124,10 @@
}
}
+// Moz throws a "Not enough arguments" exception in these, we don't:
+var element = document.createElement("div");
+shouldBeUndefined("element.setAttributeNS()");
+shouldBeUndefined("element.setAttributeNS(\"http://www.example.com\")");
+shouldBeUndefined("element.setAttributeNS(\"http://www.example.com\", \"foo\")");
+
runNSTests();

Powered by Google App Engine
This is Rietveld 408576698