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

Side by Side Diff: LayoutTests/editing/selection/range-surroundContents-with-preceding-node.html

Issue 25571006: Fix out-of-date offset in selection range code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/editing/selection/range-surroundContents-with-preceding-node-expected.txt » ('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 <html>
3 <body>
4 <script>
5 if (window.testRunner)
6 {
7 testRunner.dumpAsText();
8 testRunner.waitUntilDone();
9 }
10
11 setTimeout(function(){
ojan 2013/10/02 17:56:34 Is this setTimeout really needed? Perhaps this cod
12 var oSelection=window.getSelection();
13 document.execCommand("SelectAll", false);
14 var oRange = oSelection.getRangeAt(0);
15 var aoElements = document.getElementsByTagName("*");
16 var oParentElement = aoElements[5];
17 oRange.surroundContents(oParentElement);
18
19 document.body.innerHTML = "Test should not assert when an element before the selection range is moved to the last element in the selection range via sur roundContents.";
20
21 if (window.testRunner)
22 testRunner.notifyDone();
23 }, 1);
24 </script>
25 <button>
26 <div></div>
27 <div></div>
28 <table></table>
29 </button>
30 </body>
31 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/selection/range-surroundContents-with-preceding-node-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698