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

Side by Side Diff: LayoutTests/editing/pasteboard/smart-paste-001.html

Issue 225303002: Let Selection.collapse remember a raw Position instead of a canonicalized one. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 6 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style> 4 <style>
5 .editing { 5 .editing {
6 border: 2px solid red; 6 border: 2px solid red;
7 font-size: 24px; 7 font-size: 24px;
8 } 8 }
9 .explanation { 9 .explanation {
10 border: 2px solid blue; 10 border: 2px solid blue;
(...skipping 24 matching lines...) Expand all
35 35
36 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: s pace; -khtml-line-break: after-white-space;"> 36 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: s pace; -khtml-line-break: after-white-space;">
37 <div id="test" class="editing"> 37 <div id="test" class="editing">
38 test 38 test
39 </div> 39 </div>
40 </div> 40 </div>
41 <script src="../editing.js"></script> 41 <script src="../editing.js"></script>
42 <script> 42 <script>
43 43
44 function editingTest() { 44 function editingTest() {
45 window.getSelection().collapse(test.firstChild, 1);
45 doubleClickAtSelectionStart(); 46 doubleClickAtSelectionStart();
46 copyCommand(); 47 copyCommand();
47 moveSelectionForwardByCharacterCommand(); 48 moveSelectionForwardByCharacterCommand();
48 pasteCommand(); 49 pasteCommand();
49 } 50 }
50 51
51 runDumpAsTextEditingTest(true); 52 runDumpAsTextEditingTest(true);
52 </script> 53 </script>
53 </body> 54 </body>
54 </html> 55 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698