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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/inserting/insert-on-unfocused-element.html

Issue 2889763003: Accept text input only if selection has focus. (Closed)
Patch Set: update Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/EditorKeyBindings.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!doctype html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <div id="outer" tabindex="-1">
5 <div id="input" contenteditable>foo</div>
6 </div>
7 <script>
8 test(() => {
9 if (window.eventSender === undefined)
yosin_UTC9 2017/05/19 05:50:33 nit: we found new way. assert_not_exists(window,
yoichio 2017/05/19 08:00:33 Done.
10 assert_unreached('required window.eventSender');
11 input.focus();
12 assert_equals(document.activeElement, input);
13 outer.focus();
14 assert_equals(document.activeElement, outer, 'outer is focued.');
15 eventSender.keyDown('a');
16 assert_equals(input.textContent, 'foo', 'Input value should not change.');
17 });
18 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/EditorKeyBindings.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698