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

Side by Side Diff: LayoutTests/svg/custom/delete-text-innerText-crash.html

Issue 9949002: Merge 111601 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 years, 8 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
OLDNEW
1 <html> 1 <html>
2 <script> 2 <script>
3 function testCrash() { 3 function testCrash() {
4 q = document.getElementById('root'); 4 q = document.getElementById('root');
5 r = document.createRange(); 5 r = document.createRange();
6 r.selectNodeContents( q.getElementById('t') ); 6 r.selectNodeContents( q.getElementById('t') );
7 window.getSelection().addRange(r) 7 window.getSelection().addRange(r)
8 document.designMode='on'; 8 document.designMode='on';
9 document.execCommand('delete'); 9 document.execCommand('delete');
10 document.execCommand('delete'); 10 document.execCommand('delete');
11 11
12 if (window.layoutTestController) 12 if (window.layoutTestController)
13 layoutTestController.dumpAsText(); 13 layoutTestController.dumpAsText();
14 } 14 }
15 </script> 15 </script>
16 <body onload="testCrash()"> 16 <body onload="testCrash()">
17 This test passes if there is no crash or assert.<br/> 17 This test passes if there is no crash or assert.<br/>
18 <svg id="root" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org /1999/xlink"> 18 <svg id="root" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org /1999/xlink">
19 <g> 19 <g>
20 <rect filter="url(#x)"/> 20 <rect filter="url(#x)"/>
21 <text>aa</text> 21 <text>aa</text>
22 <rect id="t"/> 22 <rect id="t"/>
23 <style></style> 23 <style></style>
24 <text>bb</text> 24 <text>bb</text>
25 </g> 25 </g>
26 <filter id="x"></filter> 26 <filter id="x"></filter>
27 </svg> 27 </svg>
28 </body> 28 </body>
29 </html> 29 </html>
OLDNEW
« no previous file with comments | « LayoutTests/svg/custom/delete-text-crash-expected.txt ('k') | LayoutTests/svg/custom/delete-text-innerText-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698