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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dynamic/move-node-with-selection.html

Issue 2680943004: Make FrameSelection to hold non-canonicalized positions (Closed)
Patch Set: 2014-02-14T23:34:22 Update TestExpectation to include extend-{0,2,4}0.html and selectAllChildren.html Created 3 years, 10 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 <script src="../../resources/testharness.js"></script> 2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script> 3 <script src="../../resources/testharnessreport.js"></script>
4 <script src="../../editing/assert_selection.js"></script> 4 <script src="../../editing/assert_selection.js"></script>
5 <script> 5 <script>
6 test(() => assert_selection( 6 test(() => assert_selection(
7 '<div id="dest"></div><div id="target">Lor^em i|psum</div>', 7 '<div id="dest"></div><div id="target">Lor^em i|psum</div>',
8 selection => { 8 selection => {
9 var target = selection.document.getElementById('target'); 9 var target = selection.document.getElementById('target');
10 var dest = selection.document.getElementById('dest'); 10 var dest = selection.document.getElementById('dest');
11 target.style.display = 'inline'; 11 target.style.display = 'inline';
12 dest.appendChild(target); 12 dest.appendChild(target);
13 }, 13 },
14 [ 14 [
15 '<div id="dest">', 15 '<div id="dest">',
16 '<div id="target" style="display: inline;">Lorem ipsum</div>', 16 '<div id="target" style="display: inline;">Lorem ipsum|</div>',
17 '</div>|', 17 '</div>',
18 ].join('')), 18 ].join('')),
19 'Modify and move a container node of selection'); 19 'Modify and move a container node of selection');
20 </script> 20 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698