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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/execCommand/format-block-with-braces.html

Issue 2277683002: Convert editing/execCommand/format-block-with-braces.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-08-24T17:53:25 Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/execCommand/format-block-with-braces-expected.txt » ('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 <html> 2 <script src="../../resources/testharness.js"></script>
3 <body> 3 <script src="../../resources/testharnessreport.js"></script>
4 <script src="../../resources/dump-as-markup.js"></script> 4 <script src="../assert_selection.js"></script>
5 <div style="display:inline" contenteditable="true" id="item1">
6 Format Me
7 </div>
8
9 <script> 5 <script>
10 if (window.testRunner) 6 test(() => assert_selection(
11 testRunner.dumpEditingCallbacks(); 7 '<div contenteditable>|Format Me</div>',
12 8 'formatBlock <h1>',
13 Markup.description("This test uses FormatBlock with html brackets in the tag str ing passed to execCommand."); 9 '<div contenteditable><h1>|Format Me</h1></div>'),
14 10 'foramtBlcok accept tag name with html brackets');
15 Markup.dump("item1", "Before FormatBlock with <h1>");
16
17 var s = window.getSelection();
18 var r = document.createRange();
19 var p1 = document.getElementById("item1");
20 s.collapse(p1, 0);
21 document.execCommand("FormatBlock", false, "<h1>");
22
23 Markup.dump("item1", "After FormatBlock with <h1>");
24
25 </script> 11 </script>
26 </body>
27 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/execCommand/format-block-with-braces-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698