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

Side by Side Diff: LayoutTests/editing/style/toggle-style-bold-italic-mixed-editability.html

Issue 19888007: Bold and Italic style get stuck when applied on a selection having content with mixed editability (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Bold and Italic style get stuck when applied on a selection having content with mixed editability Created 7 years, 4 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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p id="description">This tests bold/italic style toggling for a content with mix ed editability</p>
5 <div contenteditable id="root">
6 <div id="test">
7 Editable <span contenteditable=false>Non-editable</span> Editable
8 </div>
9 </div>
10 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script >
11 <script>
12 test('mac');
13 test('win');
14 test('unix');
15 function test(platform) {
16 if (window.internals)
17 internals.settings.setEditingBehavior(platform);
18 startNewMarkupGroup('Test for '+platform);
19 runDumpAsTextEditingTest(true);
20 }
21 function editingTest() {
22 execSelectAllCommand();
23 execBoldCommand();
24 execItalicCommand();
25 execBoldCommand();
26 execItalicCommand();
27 }
28 </script>
29 </body>
30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698