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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Selection/missing-arguments.html

Issue 1785663002: Make setBaseAndExtent's arguments non-optional (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use collapse() where possible (one test) Created 4 years, 8 months 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: third_party/WebKit/LayoutTests/fast/dom/Selection/missing-arguments.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Selection/missing-arguments.html b/third_party/WebKit/LayoutTests/fast/dom/Selection/missing-arguments.html
index 7a6fced71d4c1f9e8e9fd419f1cab85e65f17ed3..22762386abff5cb102c50011e50d00d9a0acf713 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/Selection/missing-arguments.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/Selection/missing-arguments.html
@@ -6,9 +6,14 @@
<body>
<script>
var selection = getSelection();
+var node = document.body;
shouldThrow("selection.addRange()");
shouldThrow("selection.getRangeAt()");
shouldThrow("selection.selectAllChildren()");
+shouldThrow("selection.setBaseAndExtent()");
+shouldThrow("selection.setBaseAndExtent(node)");
+shouldThrow("selection.setBaseAndExtent(node, 0)");
+shouldThrow("selection.setBaseAndExtent(node, 0, node)");
</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698