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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/execCommand/4924441.html

Issue 1459783003: Make layout tests in editing/deleting and editing/execCommand to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
1 <p>This tests for a bug where changing the list type of an indented list would c reate unwanted nesting. You should see a single ordered list item in an indente d list.</p> 4 <p>This tests for a bug where changing the list type of an indented list would c reate unwanted nesting. You should see a single ordered list item in an indente d list.</p>
2 <div id="div" contenteditable="true"><br></div> 5 <div id="div" contenteditable="true"><br></div>
3 6 <div id="log"></div>
4 <script> 7 <script>
5 var div = document.getElementById("div"); 8 test(function() {
6 div.focus(); 9 var div = document.getElementById('div');
7 document.execCommand("InsertText", false, "foo"); 10 div.focus();
8 document.execCommand("InsertUnorderedList"); 11 document.execCommand('InsertText', false, 'foo');
9 document.execCommand("Indent"); 12 document.execCommand('InsertUnorderedList');
10 document.execCommand("InsertOrderedList"); 13 document.execCommand('Indent');
14 document.execCommand('InsertOrderedList');
15 assert_equals(div.innerHTML, '<ul><ol><li>foo<br></li></ol></ul>');
16 });
11 </script> 17 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698