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

Unified Diff: third_party/WebKit/LayoutTests/editing/selection/script-tests/DOMSelection-DocumentType.js

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/editing/selection/script-tests/DOMSelection-DocumentType.js
diff --git a/third_party/WebKit/LayoutTests/editing/selection/script-tests/DOMSelection-DocumentType.js b/third_party/WebKit/LayoutTests/editing/selection/script-tests/DOMSelection-DocumentType.js
index d44f417b258c06a0f2d196af2b56e0e7a6265ced..e82d6ab8c81f6f675b7916b6189277e39728b27c 100644
--- a/third_party/WebKit/LayoutTests/editing/selection/script-tests/DOMSelection-DocumentType.js
+++ b/third_party/WebKit/LayoutTests/editing/selection/script-tests/DOMSelection-DocumentType.js
@@ -3,7 +3,7 @@ description("Test to check if setBaseAndExtent guard node with null owner docume
var sel = window.getSelection();
var docType = document.implementation.createDocumentType('c', null, null);
-sel.setBaseAndExtent(docType);
+sel.setBaseAndExtent(docType, 0, null, 0);
shouldBeNull("sel.anchorNode");
sel.setBaseAndExtent(null, 0, docType, 0);

Powered by Google App Engine
This is Rietveld 408576698