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

Side by Side Diff: LayoutTests/editing/pasteboard/smart-paste-003.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 <script src="../../resources/dump-as-markup.js"></script> 4 <script src="../../resources/dump-as-markup.js"></script>
5 <style> 5 <style>
6 .editing { 6 .editing {
7 border: 2px solid red; 7 border: 2px solid red;
8 font-size: 24px; 8 font-size: 24px;
9 } 9 }
10 .explanation { 10 .explanation {
(...skipping 25 matching lines...) Expand all
36 36
37 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: s pace; -khtml-line-break: after-white-space;"> 37 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: s pace; -khtml-line-break: after-white-space;">
38 <div id="test" class="editing"> 38 <div id="test" class="editing">
39 test test 39 test test
40 </div> 40 </div>
41 </div> 41 </div>
42 <script src="../editing.js"></script> 42 <script src="../editing.js"></script>
43 <script> 43 <script>
44 44
45 function editingTest() { 45 function editingTest() {
46 window.getSelection().collapse(test.firstChild, 1);
46 doubleClickAtSelectionStart(); 47 doubleClickAtSelectionStart();
47 copyCommand(); 48 copyCommand();
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