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

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

Issue 98543009: Make arguments to Element methods non-optional (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix failing tests 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Element/missing-arguments-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/Element/missing-arguments.html
diff --git a/LayoutTests/fast/dom/Element/missing-arguments.html b/LayoutTests/fast/dom/Element/missing-arguments.html
new file mode 100644
index 0000000000000000000000000000000000000000..02e016012428fc95251d7c085d23bd78d23599c5
--- /dev/null
+++ b/LayoutTests/fast/dom/Element/missing-arguments.html
@@ -0,0 +1,33 @@
+<!doctype html>
+<html>
+<head>
+<script src="../../../resources/js-test.js"></script>
+</head>
+<body>
+<script>
+var element = document.createElementNS("http://example.com/", "example");
+[
+ "getAttribute()",
+ "getAttributeNS()",
+ "getAttributeNS('http://example.com/')",
+ "getElementsByClassName()",
+ "getElementsByTagName()",
+ "getElementsByTagNameNS()",
+ "getElementsByTagNameNS('http://example.com/')",
+ "hasAttributeNS()",
+ "hasAttributeNS('http://example.com/')",
+ "removeAttribute()",
+ "removeAttributeNS()",
+ "removeAttributeNS('http://example.com/')",
+ "setAttribute()",
+ "setAttribute('example')",
+ "setAttributeNS()",
+ "setAttributeNS('http://example.com/')",
+ "setAttributeNS('http://example.com/', 'example')"
+].forEach(function(expr)
+{
+ shouldThrow("element." + expr);
+});
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Element/missing-arguments-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698