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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/caret/set-without-validation-with-upstream-caret.html

Issue 1581333002: Make VisibleSelection::setWithoutValidation() to handle TextAffinity::Upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-01-14T14:55:53 Created 4 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/VisibleSelection.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <div id="sample" contentEditable></div>
5 <script>
6 test(function() {
7 var sample = document.getElementById('sample');
8 sample.appendChild(document.createTextNode('A text for creating line wrap '. repeat(50)));
9 var selection = window.getSelection();
10 selection.collapse(sample.firstChild, 0);
11 // Make selection as caret with TextAffinity::Upstream
12 selection.modify('move', 'forward', 'lineBoundary')
13 // Call |VisibleSelection::setWithoutValidation()| via
14 // |FrameSelection::nodeWillBeRemoved()|.
15 sample.remove();
16 }, 'setWithoutValidation with upstream caret');
17 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/VisibleSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698