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

Side by Side Diff: LayoutTests/editing/execCommand/remove-foramt-mixed-editable-crash.html

Issue 332613003: Make RemoveFormat command to work with mixed editable (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script> 4 <script>
5 if (window.testRunner) 5 if (window.testRunner)
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 7
8 onload = function() { 8 onload = function() {
9 document.execCommand('SelectAll'); 9 document.execCommand('SelectAll');
10 document.execCommand('JustifyCenter'); 10 document.execCommand('RemoveFormat');
11 document.body.textContent = 'PASS if Blink doesn\'t crash.'; 11 document.body.textContent = 'PASS if Blink doesn\'t crash.';
12 }; 12 };
13 </script> 13 </script>
14 </head> 14 </head>
15 <body contenteditable="true"> 15 <body contenteditable="true">
16 <kbd>foo</kbd> 16 <span contenteditable="false"></span><code></code><b><span></span>ab</b>
17 <sup>bar<abbr contenteditable="false">baz</abbr></sup>
18 </body> 17 </body>
19 </html> 18 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698