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

Side by Side Diff: LayoutTests/editing/execCommand/applyblockelement-visiblepositionforindex-crash.html

Issue 9567015: Merge 108009 (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/execCommand/applyblockelement-visiblepositionforindex-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 <script> 1 <script>
2 2
3 if (window.layoutTestController) 3 if (window.layoutTestController)
4 layoutTestController.dumpAsText(); 4 layoutTestController.dumpAsText();
5 5
6 function runTest() { 6 function runTest() {
7 window.getSelection().setBaseAndExtent(start, 0, null, 0); 7 window.getSelection().setBaseAndExtent(start, 0, null, 0);
8 document.execCommand("Indent"); 8 document.execCommand("Indent");
9 document.body.innerHTML = "PASS. WebKit didn't crash."; 9 document.body.innerHTML = "PASS. WebKit didn't crash.";
10 } 10 }
11 </script> 11 </script>
12 <body onload="runTest();"> 12 <body onload="runTest();">
13 <defs contenteditable="true" id="start"> 13 <defs contenteditable="true" id="start">
14 <rt id="rt">A 14 <rt id="rt">A
15 15
16 <script> 16 <script>
17 document.write("text"); 17 document.write("text");
18 try { 18 try {
19 elem = document.getElementById("rt"); 19 elem = document.getElementById("rt");
20 var new_elem = document.createElement("ruby"); 20 var new_elem = document.createElement("ruby");
21 new_elem.innerHTML = elem.innerHTML; 21 new_elem.innerHTML = elem.innerHTML;
22 elem.parentNode.insertBefore(new_elem, elem); 22 elem.parentNode.insertBefore(new_elem, elem);
23 } catch (e) {} 23 } catch (e) {}
24 </script> 24 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/execCommand/applyblockelement-visiblepositionforindex-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698