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

Side by Side Diff: LayoutTests/editing/selection/first-letter-selection-crash.html

Issue 9762003: Merge 110323 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/963/
Patch Set: Created 8 years, 9 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 | LayoutTests/editing/selection/first-letter-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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <style> 4 <style>
5 #test2:first-letter { display: block; } 5 #test2:first-letter { display: block; }
6 </style> 6 </style>
7 <script> 7 <script>
8 if (window.layoutTestController) 8 if (window.layoutTestController)
9 layoutTestController.dumpAsText(); 9 layoutTestController.dumpAsText();
10 10
11 window.onload = function() { 11 window.onload = function() {
12 test1 = document.createElement('div'); 12 test1 = document.createElement('div');
13 document.body.appendChild(test1); 13 document.body.appendChild(test1);
14 test2 = document.createElement('div'); 14 test2 = document.createElement('div');
15 test2.setAttribute('id', 'test2'); 15 test2.setAttribute('id', 'test2');
16 test2.appendChild(document.createTextNode('aaa')); 16 test2.appendChild(document.createTextNode('aaa'));
17 test2.style.display = 'inline-block'; 17 test2.style.display = 'inline-block';
18 test1.appendChild(test2); 18 test1.appendChild(test2);
19 test1.appendChild(document.createTextNode('a')); 19 test1.appendChild(document.createTextNode('a'));
20 document.execCommand('selectall'); 20 document.execCommand('selectall');
21 document.body.offsetTop; 21 document.body.offsetTop;
22 document.styleSheets[0].insertRule("#test2 { text-transform: uppercase }"); 22 document.styleSheets[0].insertRule("#test2 { text-transform: uppercase }");
23 document.body.offsetTop; 23 document.body.offsetTop;
24 document.body.innerHTML = "PASS"; 24 document.body.innerHTML = "PASS";
25 } 25 }
26 </script> 26 </script>
27 </body> 27 </body>
28 </html> 28 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/selection/first-letter-selection-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698