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

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

Issue 108063005: Make arguments to Range 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/Range/missing-arguments.html
diff --git a/LayoutTests/fast/dom/Range/missing-arguments.html b/LayoutTests/fast/dom/Range/missing-arguments.html
new file mode 100644
index 0000000000000000000000000000000000000000..9fb6d3204501fbc2d6e368d78c122926daf023aa
--- /dev/null
+++ b/LayoutTests/fast/dom/Range/missing-arguments.html
@@ -0,0 +1,37 @@
+<!doctype html>
+<html>
+<head>
+<script src="../../../resources/js-test.js"></script>
+</head>
+<body>
+<script>
+var range = document.createRange();
+var node = document.body;
+[
+ "compareBoundaryPoints()",
+ "compareBoundaryPoints(0)",
+ "comparePoint()",
+ "comparePoint(node)",
+ "createContextualFragment()",
+ "insertNode()",
+ "intersectsNode()",
+ "isPointInRange()",
+ "isPointInRange(node)",
+ "selectNode()",
+ "selectNodeContents()",
+ "setEnd()",
+ "setEnd(node)",
+ "setEndAfter()",
+ "setEndBefore()",
+ "setStart()",
+ "setStart(node)",
+ "setStartAfter()",
+ "setStartBefore()",
+ "surroundContents()"
+].forEach(function(expr)
+{
+ shouldThrow("range." + expr);
+});
+</script>
+</body>
+</html>
« no previous file with comments | « LayoutTests/editing/deleting/delete-uneditable-style.html ('k') | LayoutTests/fast/dom/Range/missing-arguments-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698