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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/pasteboard/merge-end-blockquote.html

Issue 2181113003: Convert editing/pasteboard/merge-end-blockquote.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-26T18:15:54 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/platform/linux/editing/pasteboard/merge-end-blockquote-expected.png » ('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>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script src="../assert_selection.js"></script>
1 <script> 5 <script>
2 if (window.testRunner) 6 test(() => assert_selection(
3 testRunner.dumpEditingCallbacks(); 7 '<div contenteditable>|x</div>',
8 'insertHTML <blockquote type="cite"><div>Blockquoted Text</div></blockquote> ',
9 '<div contenteditable>Blockquoted Text|x</div>'),
10 'Insert BLOCKQUOTE and strip it');
11
12 test(() => assert_selection(
13 [
14 '<div contenteditable>',
15 '<blockquote type="cite">',
16 '<div>Blockquoted |Text</div>',
17 '</blockquote>',
18 '</div>',
19 ].join(''),
20 'insertHTML <div>foo</div><div>bar</div>',
21 [
22 '<div contenteditable>',
23 '<blockquote type="cite">',
24 '<div>Blockquotedfoo</div>',
25 '</blockquote>',
26 '<blockquote type="cite">',
27 '<div>bar|Text</div>',
28 '</blockquote>',
29 '</div>',
30 ].join('')),
31 'Paragraphs go into BLOCKQUOTE');
4 </script> 32 </script>
5 <p>This tests pasting a Mail blockquote at the start of a paragraph. Blockquoti ng should be stripped.</p>
6 <div id="test1" contenteditable="true">x</div>
7
8 <script type="text/javascript" src="../editing.js"></script>
9 <script>
10 var e = document.getElementById("test1");
11 var s = window.getSelection();
12
13 setSelectionCommand(e, 0, e, 0);
14 insertHTMLCommand("<blockquote type='cite'><div>Blockquoted Text</div></blockquo te>");
15 </script>
16
17 <p>This tests pasting text into a Mail blockquote. The last bit of content in t he incoming fragment should be merged with the paragraph after the position bein g pasted into.</p>
18 <div id="test2" contenteditable="true"><blockquote type='cite'><div>Blockquoted Text</div></blockquote></div>
19
20 <script>
21 var e = document.getElementById("test2");
22 var s = window.getSelection();
23
24 setSelectionCommand(e, 0, e, 0);
25 moveSelectionForwardByWordCommand();
26 insertHTMLCommand("<div>foo</div><div>bar</div>");
27 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/platform/linux/editing/pasteboard/merge-end-blockquote-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698