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

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: nit 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 assert_exists(window, 'eventSender', 'this test requires window.eventSender');
10 input.focus();
11 assert_equals(document.activeElement, input);
12 outer.focus();
13 assert_equals(document.activeElement, outer, 'outer is focued.');
14 eventSender.keyDown('a');
15 assert_equals(input.textContent, 'foo', 'Input value should not change.');
16 });
17 </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