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

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: Forgot to upload the test 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 .c2 + .c9 { position: fixed; height: 1px; }
leviw_travelin_and_unemployed 2014/08/11 23:03:13 Can we remove c2 altogether and just leave the c9
Xianzhu 2014/08/12 17:32:40 Done.
3 .c5 { position: fixed; padding-bottom: 1px; padding-left: 100%; -webkit-column-s pan: all; }
4 .c16 { display: -webkit-box; }
leviw_travelin_and_unemployed 2014/08/11 23:03:13 How about giving these classes descriptive names?
Xianzhu 2014/08/12 17:32:40 Now using tag names in the selectors.
5 </style>
6 <script>
7 if (window.testRunner)
8 testRunner.dumpAsText();
9
10 window.onload = function() {
11 var sup = document.createElement('sup');
12 var hgroup = document.createElement('hgroup');
13 var samp = document.createElement('samp');
14 var figcaption = document.createElement('figcaption');
15 var legend = document.createElement('legend');
leviw_travelin_and_unemployed 2014/08/11 23:03:13 Are these odd types necessary?
Xianzhu 2014/08/12 17:32:40 Tried to remove any of them and the crash couldn't
16 legend.setAttribute('class', 'c2');
17 document.documentElement.appendChild(legend);
18 var p = document.createElement('p');
19 p.setAttribute('class', 'c9');
20 document.documentElement.appendChild(p);
21 document.execCommand('SelectAll', '');
22 p.appendChild(hgroup);
23 sup.setAttribute('class', 'c16');
24 p.appendChild(samp);
25 hgroup.setAttribute('class', 'c5');
26 samp.appendChild(sup);
27 document.body.offsetHeight;
28 figcaption.appendChild(sup);
29 };
30 </script>
31 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