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

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

Issue 2341563003: Makes assert_selection() to set focus to sample IFRAME (Closed)
Patch Set: 2016-09-14T14:56:27 Created 4 years, 3 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/deleting/delete_by_word.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 4c4ead925d78b20cba4ebe74a42004950c36632f..6597ccb9bdc69671d74dad0fe6494a8c07ff847f 100644
--- a/third_party/WebKit/LayoutTests/editing/assert_selection.js
+++ b/third_party/WebKit/LayoutTests/editing/assert_selection.js
@@ -554,6 +554,9 @@ class Sample {
this.selection_.document.offsetTop = this.iframe_.offsetTop;
this.selection_.setClipboardData = setClipboardData;
+ // Set focus to sample IFRAME to make |eventSender| and
+ // |testRunner.execCommand()| to work on sample rather than main frame.
+ this.iframe_.focus();
this.load(sampleText);
}
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/deleting/delete_by_word.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698