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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/pasteboard/copy-paste-underlined.html

Issue 2621213002: Convert editing/pasteboard/5075944.html with assert_selection (Closed)
Patch Set: Remove expectation files... Created 3 years, 11 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 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script src="../assert_selection.js"></script>
5 <script>
6 test(() => assert_selection(
7 [
8 '<div contenteditable>^foo bar baz.|</div>',
9 '<div contenteditable id="paste"><br></div>'
10 ].join(''),
11 selection => {
12 const document = selection.document;
13 document.execCommand('underline');
14 document.execCommand('copy');
yosin_UTC9 2017/01/11 03:40:05 Since this test doesn't work with interactive sess
Xiaocheng 2017/01/11 05:07:44 Done.
15 document.getElementById('paste').focus();
16 document.execCommand('paste');
17 },
18 [
19 '<div contenteditable><u>foo bar baz.</u></div>',
20 '<div contenteditable id="paste"><u>foo bar baz.|</u></div>'
21 ].join('')),
22 'Copy/paste underlined text.');
23 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698