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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/execCommand/queryCommandState-04.html

Issue 2020183002: Test the default editing behavior in queryCommandState-04.html (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | 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 <div contenteditable="true"> 4 <div contenteditable="true">
5 <sub><i>1. Make text subscript and italic</i></sub> 5 <sub><i>1. Make text subscript and italic</i></sub>
6 <sup><i>2. Make text superscript and italic</i></sup> 6 <sup><i>2. Make text superscript and italic</i></sup>
7 </div> 7 </div>
8 <div id="log"></div> 8 <div id="log"></div>
9 <script> 9 <script>
10 function test_sub() { 10 function test_sub() {
(...skipping 14 matching lines...) Expand all
25 assert_equals(document.queryCommandState('superscript'), true); 25 assert_equals(document.queryCommandState('superscript'), true);
26 } 26 }
27 27
28 function test_all(platform) { 28 function test_all(platform) {
29 if (platform) 29 if (platform)
30 internals.settings.setEditingBehavior(platform); 30 internals.settings.setEditingBehavior(platform);
31 test(test_sub, `${platform}: run queryCommandState('subscript')`); 31 test(test_sub, `${platform}: run queryCommandState('subscript')`);
32 test(test_sup, `${platform}: run queryCommandState('superscript')`); 32 test(test_sup, `${platform}: run queryCommandState('superscript')`);
33 } 33 }
34 34
35 (window.internals ? ['mac', 'win'] : ['']).forEach(test_all); 35 (window.internals ? ['mac', 'win',''] : ['']).forEach(test_all);
36 </script> 36 </script>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698