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

Side by Side Diff: LayoutTests/editing/execCommand/resources/insert-ordered-list-crash-iframe.html

Issue 206193003: Clean up a crash test case. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 | « LayoutTests/editing/execCommand/insert-ordered-list-crash-expected.txt ('k') | no next file » | 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>
2 <html> 1 <html>
3 <head>
4 <title>Crash issue 344280</title>
5 <script src="../../resources/js-test.js"></script>
6 </head>
7
8 <body> 2 <body>
9 <script> 3 <script>
10 description('Should not crash if we load a test case from crbug.com/3442 80.');
11 window.jsTestIsAsync = true;
12
13 document.addEventListener("DOMContentLoaded", function () { 4 document.addEventListener("DOMContentLoaded", function () {
14 document.execCommand("SelectAll", false); 5 document.execCommand("SelectAll", false);
15 window.getSelection().deleteFromDocument(); 6 window.getSelection().deleteFromDocument();
7 window.parent.postMessage('FINISH', '*');
16 }, true); 8 }, true);
17 9
18 var count = 0; 10 var count = 0;
19 document.addEventListener("DOMSubtreeModified", function () { 11 document.addEventListener("DOMSubtreeModified", function () {
20 count++; 12 count++;
21 if (count < 3) { 13 if (count < 3) {
22 var src = event.srcElement; 14 var src = event.srcElement;
23 src.contentEditable = "true"; 15 src.contentEditable = "true";
24 src.innerHTML = '<div></div>'; 16 src.innerHTML = '<div></div>';
25 document.execCommand('InsertOrderedList', false, false); 17 document.execCommand('InsertOrderedList', false, false);
26 } else if (count == 3) {
27 window.finishJSTest();
28 } 18 }
29 }, false); 19 }, false);
30 </script> 20 </script>
31 <h5> 21 <h5>
32 aa 22 aa
33 <textarea></textarea> 23 <textarea></textarea>
34 </h5> 24 </h5>
35 <dl> 25 <dl>
36 aa 26 aa
37 </dl> 27 </dl>
38 </body> 28 </body>
39 </html> 29 </html>
OLDNEW
« no previous file with comments | « LayoutTests/editing/execCommand/insert-ordered-list-crash-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698