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

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

Issue 1167033002: Remove layout tests that run execCommand on non-HTML documents (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix doctype Created 5 years, 6 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
OLDNEW
(Empty)
1 <html>
2 <!-- This test passes if there is no crash or assert -->
3 <style type="text/css">
4 body {
5 overflow: hidden;
6 }
7 </style>
8 <script>
9 function testCrash() {
10 q = document.getElementById('root');
11 r = document.createRange();
12 r.selectNodeContents( q.getElementById('t') );
13 window.getSelection().addRange(r)
14 document.designMode='on';
15 document.execCommand('delete');
16 document.execCommand('delete');
17 }
18
19 if (window.testRunner)
20 testRunner.dumpAsText();
21 </script>
22 <body onload="testCrash()">
23 <svg id="root" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org /1999/xlink">
24 <g>
25 <rect filter="url(#x)"/>
26 <text>aa</text>
27 <rect id="t"/>
28 <style></style>
29 <text>bb</text>
30 </g>
31 <filter id="x"></filter>
32 </svg>
33 </body>
34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698