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

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

Issue 103613005: Make arguments to Node 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Node/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/Node/missing-arguments.html
diff --git a/LayoutTests/fast/dom/Node/missing-arguments.html b/LayoutTests/fast/dom/Node/missing-arguments.html
new file mode 100644
index 0000000000000000000000000000000000000000..427f28cb31dbb657d5521bf8467346d4a3aaed5e
--- /dev/null
+++ b/LayoutTests/fast/dom/Node/missing-arguments.html
@@ -0,0 +1,29 @@
+<!doctype html>
+<html>
+<head>
+<script src="../../../resources/js-test.js"></script>
+</head>
+<body>
+<script>
+var documentFragment = document.createDocumentFragment();
+var documentType = document.doctype;
+var element = document.documentElement;
+var characterData = document.createTextNode("");
+[
+ "compareDocumentPosition()",
+ "contains()",
+ "isDefaultNamespace()",
+ "isEqualNode()",
+ "lookupNamespaceURI()",
+ "lookupPrefix()"
+].forEach(function(expr)
+{
+ shouldThrow("document." + expr);
+ shouldThrow("documentFragment." + expr);
+ shouldThrow("documentType." + expr);
+ shouldThrow("element." + expr);
+ shouldThrow("characterData." + expr);
+});
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Node/missing-arguments-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698