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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/execCommand/unlistify-uneditable-parent-crash.html

Issue 1646673003: Make InsertListCommand::unlififyParagraph() to do nothing when it applied to uneditable element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-01-29T11:06:31 Created 4 years, 10 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 | third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp » ('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 <script src="../../resources/testharness.js"></script> 2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script> 3 <script src="../../resources/testharnessreport.js"></script>
4 <ul contenteditable> 4 <div>
5 <li id="foo"></li> 5 <ol contenteditable id=sample>
6 </ul> 6 <li>foo</li>
7 </ol>
8 <div id="log"></div>
7 <script> 9 <script>
8 test(function() { 10 test(function() {
9 if (!window.internals) 11 window.getSelection().selectAllChildren(document.getElementById('sample'));
10 return; 12 document.execCommand('insertOrderedList');
11 internals.settings.setUnifiedTextCheckerEnabled(true); 13 }, 'insertOrderedList should not crash with uneditable parent');
12 window.getSelection().selectAllChildren(document.getElementById('foo'));
13 document.execCommand('insertParagraph');
14 }, 'spelling');
15 </script> 14 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698