Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <html> | 1 <!doctype html> |
| 2 <head> | 2 <script src="../../resources/testharness.js"></script> |
| 3 | 3 <script src="../../resources/testharnessreport.js"></script> |
| 4 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script > | 4 <script src="../assert_selection.js"></script> |
| 5 | |
| 6 <style> | |
| 7 .editing { | |
| 8 border: 2px solid red; | |
| 9 padding: 12px; | |
| 10 font-size: 24px; | |
| 11 } | |
| 12 </style> | |
| 13 | |
| 14 <script> | 5 <script> |
| 15 | 6 test(() => { |
| 16 function editingTest() { | 7 assert_selection( |
| 17 for (i = 0; i < 4; i++) | 8 '<div contenteditable><div>foo</div>^bar|<div>baz</div></div>', |
| 18 » moveSelectionForwardByCharacterCommand(); | 9 'Delete', |
|
yoichio
2016/07/22 02:09:33
I'm amazed that there are tabs in our code....
yosin_UTC9
2016/07/22 04:19:37
This file was created 12 years ago..
| |
| 19 for (i = 0; i < 3; i++) | 10 '<div contenteditable><div>foo</div><div>|baz</div></div>'); |
| 20 » extendSelectionForwardByCharacterCommand(); | 11 }, 'selecting an entire line and typing over causes new inserted text at top of document'); |
|
yoichio
2016/07/22 02:09:34
This is the bug description had happened.
Please d
yosin_UTC9
2016/07/22 04:19:37
Done.
BTW, PS#1 doesn't equal to original. :-<
| |
| 21 deleteCommand(); | |
| 22 } | |
| 23 | |
| 24 </script> | 12 </script> |
| 25 | |
| 26 <title>Editing Test</title> | |
| 27 </head> | |
| 28 <body contenteditable="true"> | |
| 29 | |
| 30 Should see a blank line between "foo" and "baz" | |
| 31 <div style="height: 24px"></div> | |
| 32 | |
| 33 <div id="root" class="editing"> | |
| 34 <div id="test">foo</div>bar<div>baz</div> | |
| 35 | |
| 36 <!-- | |
| 37 | |
| 38 Fix for this bug: | |
| 39 | |
| 40 <rdar://problem/3928305> selecting an entire line and typing over causes new ins erted text at top of document | |
| 41 | |
| 42 --> | |
| 43 | |
| 44 <script> | |
| 45 runEditingTest(); | |
| 46 </script> | |
| 47 | |
| 48 </body> | |
| 49 </html> | |
| OLD | NEW |