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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/style/apply_style_with_unfocused_selection.html

Issue 2883383003: Make EnabledInRichlyEditableText return false for user-triggered command and unfocused selection (Closed)
Patch Set: 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/commands/EditorCommand.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 <script src="../assert_selection.js"></script>
5 <script>
6 test(() => {
7 assert_exists(window, 'eventSender', 'This test requires eventSender');
8
9 assert_selection(
10 [
11 '<div contenteditable>^text|</div>',
12 '<a href="http://www.example.com/">link</a>'
13 ].join(''),
14 selection => {
15 const link = selection.document.querySelector('a');
16 link.focus();
17 eventSender.keyDown('b', ['ctrlKey']);
18 assert_equals(selection.document.activeElement, link);
19 },
20 [
21 '<div contenteditable>^text|</div>',
22 '<a href="http://www.example.com/">link</a>'
23 ].join(''));
24 }, 'Styling with unfocused selection in contenteditable div');
25 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698