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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/inputevents/inputevent-execcommand.html

Issue 2558643003: [InputEvent] Move 'beforeinput' logic into |CompositeEditCommand::willApplyEditing()| (3/3) (Closed)
Patch Set: Rebase on EditCommandSource and willApply() CLs Created 4 years 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>InputEvent: execCommand test</title> 4 <title>InputEvent: execCommand test</title>
5 <script src="../../../resources/testharness.js"></script> 5 <script src="../../../resources/testharness.js"></script>
6 <script src="../../../resources/testharnessreport.js"></script> 6 <script src="../../../resources/testharnessreport.js"></script>
7 </head> 7 </head>
8 <body> 8 <body>
9 <p id="txt" contenteditable></p> 9 <p id="txt" contenteditable></p>
10 <script> 10 <script>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 testExecCommandInputType('removeFormat', null, 'formatRemove'); 77 testExecCommandInputType('removeFormat', null, 'formatRemove');
78 assert_equals(txt.innerHTML, '<div>abc</div>'); 78 assert_equals(txt.innerHTML, '<div>abc</div>');
79 testExecCommandInputType('indent', null, 'formatIndent'); 79 testExecCommandInputType('indent', null, 'formatIndent');
80 testExecCommandInputType('outdent', null, 'formatOutdent'); 80 testExecCommandInputType('outdent', null, 'formatOutdent');
81 assert_equals(txt.innerHTML, '<div>abc</div>'); 81 assert_equals(txt.innerHTML, '<div>abc</div>');
82 82
83 // Copy shouldn't fire 'input'. 83 // Copy shouldn't fire 'input'.
84 testExecCommandInputType('copy', null, NO_INPUT_EVENT_FIRED); 84 testExecCommandInputType('copy', null, NO_INPUT_EVENT_FIRED);
85 // Cut/Paste should fire 'input'. 85 // Cut/Paste should fire 'input'.
86 testExecCommandInputType('cut', null, 'deleteByCut'); 86 testExecCommandInputType('cut', null, 'deleteByCut');
87 testExecCommandInputType('paste', null, 'insertFromPaste'); 87 // TODO(chongz): JS triggered paste shouldn't fire 'beforeinput'.
88 // testExecCommandInputType('paste', null, 'insertFromPaste');
chongz 2016/12/20 04:48:58 |execCommand('paste')| will trigger a |TextEvent|
88 }, 'Testing input with execCommand'); 89 }, 'Testing input with execCommand');
89 </script> 90 </script>
90 </body> 91 </body>
91 </html> 92 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698