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

Unified Diff: third_party/WebKit/LayoutTests/editing/assert_selection.js

Issue 2105663002: [Editing][Codehealth] Rewrite user-select-all-selection.html with assert_selection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 4 years, 5 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/selection/user-select-all-selection.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/editing/assert_selection.js
diff --git a/third_party/WebKit/LayoutTests/editing/assert_selection.js b/third_party/WebKit/LayoutTests/editing/assert_selection.js
index 6c506eac9586130ff48ded4b0c0c6d526efedf32..014aa440c7c3dc8e39fc9e21bcedfe3cafed1dc6 100644
--- a/third_party/WebKit/LayoutTests/editing/assert_selection.js
+++ b/third_party/WebKit/LayoutTests/editing/assert_selection.js
@@ -515,6 +515,8 @@ class Sample {
/** @const @type {!Selection} */
this.selection_ = this.iframe_.contentWindow.getSelection();
this.selection_.document = this.document_;
+ this.selection_.document.offsetLeft = this.iframe_.offsetLeft;
+ this.selection_.document.offsetTop = this.iframe_.offsetTop;
this.load(sampleText);
}
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/selection/user-select-all-selection.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698