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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/selection/collapse.js

Issue 2698413002: selection: Align collapse-NN.html and extend-NN.html to the latest draft. (Closed)
Patch Set: Created 3 years, 10 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/external/wpt/selection/collapse.js
diff --git a/third_party/WebKit/LayoutTests/external/wpt/selection/collapse.js b/third_party/WebKit/LayoutTests/external/wpt/selection/collapse.js
index 1894aad92b2ab4e418cd5e69244cb48c5f253545..7c97e2725d6ebb771ae506d4b07df767e798a88d 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/selection/collapse.js
+++ b/third_party/WebKit/LayoutTests/external/wpt/selection/collapse.js
@@ -22,6 +22,13 @@ function testCollapse(range, point) {
return;
}
+ if (!document.contains(point[0])) {
+ assertSelectionNoChange(function() {
+ selection.collapse(point[0], point[1]);
+ });
+ return;
+ }
+
selection.collapse(point[0], point[1]);
assert_equals(selection.rangeCount, 1,

Powered by Google App Engine
This is Rietveld 408576698