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

Side by Side Diff: LayoutTests/editing/execCommand/unlistify-body-crash.html

Issue 303743003: Check null position start of paragraph to move parameter in CompositeEditCommand::moveParagraph (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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/unlistify-body-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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
7
8 function doReplace(tagName) {
9 var oldElement = document.getElementById(tagName);
10 var newElement = document.createElement(tagName);
11 while (oldElement.firstChild) {
12 newElement.appendChild(oldElement.firstChild);
13 }
14 oldElement.parentNode.replaceChild(newElement, oldElement);
15 }
16 onload = function() {
17 doReplace('body');
18
19 document.designMode = 'on';
20 getSelection().collapse(document.querySelector('li'), 1);
21 document.execCommand('InsertUnorderedList');
22 document.documentElement.textContent = 'PASS if Blink doesn\'t crash.';
23 };
24 </script>
25 </head>
26 <body>
27 <h6><ul><li><div id="body"><h6>bar<ul></ul></h6></div><br></li></ul></h6>
28 </body>
29 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/execCommand/unlistify-body-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698