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

Side by Side Diff: LayoutTests/editing/selection/move-node-in-selection-crash.html

Issue 452293004: Fix crash when node is moved in a selection (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update test expectation Created 6 years, 4 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/move-node-in-selection-crash-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 <style>
2 p { position: fixed; height: 1px; }
3 hgroup { position: fixed; padding-bottom: 1px; padding-left: 100%; -webkit-colum n-span: all; }
4 sup { display: -webkit-box; }
5 </style>
6 <script>
7 if (window.testRunner)
8 testRunner.dumpAsText();
9
10 window.onload = function() {
11 document.documentElement.appendChild(document.createElement('span'));
12 var grandparent = document.createElement('p');
13 document.documentElement.appendChild(grandparent);
14 document.execCommand('SelectAll', '');
15
16 grandparent.appendChild(document.createElement('hgroup'));
17 var oldParent = document.createElement('span');
18 grandparent.appendChild(oldParent);
19 var childToMove = document.createElement('sup');
20 oldParent.appendChild(childToMove);
21
22 document.body.offsetHeight;
23
24 // Move childToMove under the orphaned parent.
25 var orphanedParent = document.createElement('div');
26 orphanedParent.appendChild(childToMove);
27 };
28 </script>
29 This is modified from a cluster-fuzz test case. Passes if no crash.
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/selection/move-node-in-selection-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698