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

Side by Side Diff: LayoutTests/editing/execCommand/insert-image-changing-visibility-crash.html

Issue 183893018: Check VisualPosition.isNull() after DOM mutation in ReplaceSelectionCommand (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update 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 | « no previous file | LayoutTests/editing/execCommand/insert-image-changing-visibility-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 <head> 3 <head>
4 <title>FormatBlock crash</title> 4 <title>Issue 348283</title>
5 <script src="../../resources/js-test.js"></script> 5 <script src="../../resources/js-test.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <script> 8 <script>
9 description('Should not crash if we load a test case from crbug.com/345005.'); 9 description('Should not crash if we load a test case from crbug.com/348283.');
10 10
11 window.jsTestIsAsync = true; 11 window.jsTestIsAsync = true;
12 12
13 window.addEventListener('message', didReceiveMessage, false); 13 window.addEventListener('message', didReceiveMessage, false);
14 14
15 var iframe = document.createElement('iframe'); 15 var iframe = document.createElement('iframe');
16 iframe.src = 'resources/format-block-crash-iframe.html'; 16 iframe.src = 'resources/insert-image-changing-visibility-crash-iframe.html';
17 document.body.appendChild(iframe); 17 document.body.appendChild(iframe);
18 18
19 function didReceiveMessage(event) 19 function didReceiveMessage(event)
20 { 20 {
21 shouldBeEqualToString('event.data', 'FINISH'); 21 shouldBeEqualToString('event.data', 'FINISH');
22 document.body.removeChild(iframe); 22 document.body.removeChild(iframe);
23 testPassed('Did not crash.'); 23 testPassed('Did not crash.');
24 window.finishJSTest(); 24 window.finishJSTest();
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/execCommand/insert-image-changing-visibility-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698