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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/selection/modify_move/move_around_image.html

Issue 2446893006: Convert editing/selection/4932260-[123].html to utilize w3c test harness (Closed)
Patch Set: 2016-10-26T16:41:10 Created 4 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
(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>',
9 '|foo <img src="../../resources/abe.png"> bar',
10 '</div>',
11 ].join(''),
12 selection => selection.modify('move', 'forward', 'sentence'),
13 [
14 '<div contenteditable>',
15 'foo <img src="../../resources/abe.png"> bar|',
16 '</div>',
17 ].join('')),
18 'Move forward sentence');
19
20 test(() => assert_selection(
21 [
22 '<div contenteditable>',
23 'foo <img src="../../resources/abe.png"> bar|',
24 '</div>',
25 ].join(''),
26 selection => selection.modify('move', 'backward', 'sentence'),
27 [
28 '<div contenteditable>',
29 '|foo <img src="../../resources/abe.png"> bar',
30 '</div>',
31 ].join('')),
32 'Move backward sentence');
33
34 test(() => assert_selection(
35 [
36 '<div contenteditable>',
37 '|foo<img src="../../resources/abe.png">bar',
38 '</div>',
39 ].join(''),
40 selection => selection.modify('move', 'forward', 'sentence'),
Xiaocheng 2016/10/26 09:31:04 Should be move forward by word twice.
yosin_UTC9 2016/10/26 09:40:39 No need to move twice to verify 'move-forward-sent
41 [
42 '<div contenteditable>',
43 'foo<img src="../../resources/abe.png">bar|',
44 '</div>',
45 ].join('')),
46 'Move forward word');
47
48 test(() => assert_selection(
49 [
50 '<div contenteditable>',
51 'foo<img src="../../resources/abe.png">bar|',
52 '</div>',
53 ].join(''),
54 selection => selection.modify('move', 'backward', 'sentence'),
Xiaocheng 2016/10/26 09:31:04 Should be move backward by word twice.
yosin_UTC9 2016/10/26 09:40:38 No need to move twice to verify 'move-backward-sen
55 [
56 '<div contenteditable>',
57 '|foo<img src="../../resources/abe.png">bar',
58 '</div>',
59 ].join('')),
60 'Move backward word');
61 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698