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

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

Issue 106773003: Make arguments to Document methods non-optional (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase 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/Document/missing-arguments.html
diff --git a/LayoutTests/fast/dom/Document/missing-arguments.html b/LayoutTests/fast/dom/Document/missing-arguments.html
new file mode 100644
index 0000000000000000000000000000000000000000..b301feedcc953071e98f940e521e5704380e20c9
--- /dev/null
+++ b/LayoutTests/fast/dom/Document/missing-arguments.html
@@ -0,0 +1,30 @@
+<!doctype html>
+<html>
+<head>
+<script src="../../../resources/js-test.js"></script>
+</head>
+<body>
+<script>
+[
+ "adoptNode()",
+ "createComment()",
+ "createElement()",
+ "createElementNS('http://www.w3.org/2000/svg')",
+ "createElementNS()",
+ "createEvent()",
+ "createProcessingInstruction('xml')",
+ "createProcessingInstruction()",
+ "createTextNode()",
+ "getElementById()",
+ "getElementsByClassName()",
+ "getElementsByTagName()",
+ "getElementsByTagNameNS('http://www.w3.org/2000/svg')",
+ "getElementsByTagNameNS()",
+ "importNode()"
+].forEach(function(expr)
+{
+ shouldThrow("document." + expr);
+});
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698