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

Side by Side Diff: LayoutTests/editing/pasteboard/smart-paste-004.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 test 38 test 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 moveSelectionForwardByCharacterCommand(); 49 moveSelectionForwardByCharacterCommand();
49 pasteCommand(); 50 pasteCommand();
50 } 51 }
51 52
52 runDumpAsTextEditingTest(true); 53 runDumpAsTextEditingTest(true);
53 </script> 54 </script>
54 </body> 55 </body>
55 </html> 56 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698