-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Utilize assert_selection to move-left-right.html #1
This patch adds assert_selection tests converted from editing/selection/move-left-right.html. Here is generator: crrev.com/c/1032319 This patch includes #1-#10 tests in original 43 tests. Bug: 679977 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng Change-Id: I03da44fa82277cfe334c959405a4ca57d2613b94 Reviewed-on: https://chromium-review.googlesource.com/1063410 Commit-Queue: Yoichi Osato <yoichio@chromium.org> Reviewed-by: Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#560492}
- Loading branch information
Yoichi Osato
authored and
Commit Bot
committed
May 22, 2018
1 parent
c1c4c07
commit 65c55c1
Showing
41 changed files
with
1,960 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
third_party/WebKit/LayoutTests/editing/selection/modify_move/move_left_character_01_ltr.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!doctype html> | ||
<script src="../../../resources/testharness.js"></script> | ||
<script src="../../../resources/testharnessreport.js"></script> | ||
<script src="../../assert_selection.js"></script> | ||
<script> | ||
selection_test( | ||
'<div dir="ltr">|abc</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="ltr">|abc</div>', | ||
'1-0 ltr left character'); | ||
|
||
selection_test( | ||
'<div dir="ltr">a|bc</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="ltr">|abc</div>', | ||
'1-1 ltr left character'); | ||
|
||
selection_test( | ||
'<div dir="ltr">ab|c</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="ltr">a|bc</div>', | ||
'1-2 ltr left character'); | ||
|
||
selection_test( | ||
'<div dir="ltr">abc|</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="ltr">ab|c</div>', | ||
'1-3 ltr left character'); | ||
</script> |
29 changes: 29 additions & 0 deletions
29
third_party/WebKit/LayoutTests/editing/selection/modify_move/move_left_character_01_rtl.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!doctype html> | ||
<script src="../../../resources/testharness.js"></script> | ||
<script src="../../../resources/testharnessreport.js"></script> | ||
<script src="../../assert_selection.js"></script> | ||
<script> | ||
selection_test( | ||
'<div dir="rtl">|abc</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="rtl">ab|c</div>', | ||
'1-0 rtl left character'); | ||
|
||
selection_test( | ||
'<div dir="rtl">a|bc</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="rtl">abc|</div>', | ||
'1-1 rtl left character'); | ||
|
||
selection_test( | ||
'<div dir="rtl">ab|c</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="rtl">a|bc</div>', | ||
'1-2 rtl left character'); | ||
|
||
selection_test( | ||
'<div dir="rtl">abc|</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="rtl">abc|</div>', | ||
'1-3 rtl left character'); | ||
</script> |
29 changes: 29 additions & 0 deletions
29
third_party/WebKit/LayoutTests/editing/selection/modify_move/move_left_character_02_ltr.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!doctype html> | ||
<script src="../../../resources/testharness.js"></script> | ||
<script src="../../../resources/testharnessreport.js"></script> | ||
<script src="../../assert_selection.js"></script> | ||
<script> | ||
selection_test( | ||
'<div dir="ltr">|\u05D0\u05D1\u05D2</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="ltr">|\u05D0\u05D1\u05D2</div>', | ||
'2-0 ltr left character'); | ||
|
||
selection_test( | ||
'<div dir="ltr">\u05D0|\u05D1\u05D2</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="ltr">\u05D0\u05D1|\u05D2</div>', | ||
'2-1 ltr left character'); | ||
|
||
selection_test( | ||
'<div dir="ltr">\u05D0\u05D1|\u05D2</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="ltr">|\u05D0\u05D1\u05D2</div>', | ||
'2-2 ltr left character'); | ||
|
||
selection_test( | ||
'<div dir="ltr">\u05D0\u05D1\u05D2|</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="ltr">\u05D0|\u05D1\u05D2</div>', | ||
'2-3 ltr left character'); | ||
</script> |
29 changes: 29 additions & 0 deletions
29
third_party/WebKit/LayoutTests/editing/selection/modify_move/move_left_character_02_rtl.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!doctype html> | ||
<script src="../../../resources/testharness.js"></script> | ||
<script src="../../../resources/testharnessreport.js"></script> | ||
<script src="../../assert_selection.js"></script> | ||
<script> | ||
selection_test( | ||
'<div dir="rtl">|\u05D0\u05D1\u05D2</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="rtl">\u05D0|\u05D1\u05D2</div>', | ||
'2-0 rtl left character'); | ||
|
||
selection_test( | ||
'<div dir="rtl">\u05D0|\u05D1\u05D2</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="rtl">\u05D0\u05D1|\u05D2</div>', | ||
'2-1 rtl left character'); | ||
|
||
selection_test( | ||
'<div dir="rtl">\u05D0\u05D1|\u05D2</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="rtl">\u05D0\u05D1\u05D2|</div>', | ||
'2-2 rtl left character'); | ||
|
||
selection_test( | ||
'<div dir="rtl">\u05D0\u05D1\u05D2|</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="rtl">\u05D0\u05D1\u05D2|</div>', | ||
'2-3 rtl left character'); | ||
</script> |
35 changes: 35 additions & 0 deletions
35
third_party/WebKit/LayoutTests/editing/selection/modify_move/move_left_character_03_ltr.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!doctype html> | ||
<script src="../../../resources/testharness.js"></script> | ||
<script src="../../../resources/testharnessreport.js"></script> | ||
<script src="../../assert_selection.js"></script> | ||
<script> | ||
selection_test( | ||
'<div dir="ltr">|<br>abc</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="ltr">|<br>abc</div>', | ||
'3-0 ltr left character'); | ||
|
||
selection_test( | ||
'<div dir="ltr"><br>|abc</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="ltr">|<br>abc</div>', | ||
'3-1 ltr left character'); | ||
|
||
selection_test( | ||
'<div dir="ltr"><br>a|bc</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="ltr"><br>|abc</div>', | ||
'3-2 ltr left character'); | ||
|
||
selection_test( | ||
'<div dir="ltr"><br>ab|c</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="ltr"><br>a|bc</div>', | ||
'3-3 ltr left character'); | ||
|
||
selection_test( | ||
'<div dir="ltr"><br>abc|</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="ltr"><br>ab|c</div>', | ||
'3-4 ltr left character'); | ||
</script> |
35 changes: 35 additions & 0 deletions
35
third_party/WebKit/LayoutTests/editing/selection/modify_move/move_left_character_03_rtl.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!doctype html> | ||
<script src="../../../resources/testharness.js"></script> | ||
<script src="../../../resources/testharnessreport.js"></script> | ||
<script src="../../assert_selection.js"></script> | ||
<script> | ||
selection_test( | ||
'<div dir="rtl">|<br>abc</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="rtl"><br>|abc</div>', | ||
'3-0 rtl left character'); | ||
|
||
selection_test( | ||
'<div dir="rtl"><br>|abc</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="rtl"><br>ab|c</div>', | ||
'3-1 rtl left character'); | ||
|
||
selection_test( | ||
'<div dir="rtl"><br>a|bc</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="rtl"><br>abc|</div>', | ||
'3-2 rtl left character'); | ||
|
||
selection_test( | ||
'<div dir="rtl"><br>ab|c</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="rtl"><br>a|bc</div>', | ||
'3-3 rtl left character'); | ||
|
||
selection_test( | ||
'<div dir="rtl"><br>abc|</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="rtl"><br>abc|</div>', | ||
'3-4 rtl left character'); | ||
</script> |
35 changes: 35 additions & 0 deletions
35
third_party/WebKit/LayoutTests/editing/selection/modify_move/move_left_character_04_ltr.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!doctype html> | ||
<script src="../../../resources/testharness.js"></script> | ||
<script src="../../../resources/testharnessreport.js"></script> | ||
<script src="../../assert_selection.js"></script> | ||
<script> | ||
selection_test( | ||
'<div dir="ltr">|<br>\u05D0\u05D1\u05D2</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="ltr">|<br>\u05D0\u05D1\u05D2</div>', | ||
'4-0 ltr left character'); | ||
|
||
selection_test( | ||
'<div dir="ltr"><br>|\u05D0\u05D1\u05D2</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="ltr">|<br>\u05D0\u05D1\u05D2</div>', | ||
'4-1 ltr left character'); | ||
|
||
selection_test( | ||
'<div dir="ltr"><br>\u05D0|\u05D1\u05D2</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="ltr"><br>\u05D0\u05D1|\u05D2</div>', | ||
'4-2 ltr left character'); | ||
|
||
selection_test( | ||
'<div dir="ltr"><br>\u05D0\u05D1|\u05D2</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="ltr"><br>|\u05D0\u05D1\u05D2</div>', | ||
'4-3 ltr left character'); | ||
|
||
selection_test( | ||
'<div dir="ltr"><br>\u05D0\u05D1\u05D2|</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="ltr"><br>\u05D0|\u05D1\u05D2</div>', | ||
'4-4 ltr left character'); | ||
</script> |
35 changes: 35 additions & 0 deletions
35
third_party/WebKit/LayoutTests/editing/selection/modify_move/move_left_character_04_rtl.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!doctype html> | ||
<script src="../../../resources/testharness.js"></script> | ||
<script src="../../../resources/testharnessreport.js"></script> | ||
<script src="../../assert_selection.js"></script> | ||
<script> | ||
selection_test( | ||
'<div dir="rtl">|<br>\u05D0\u05D1\u05D2</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="rtl"><br>|\u05D0\u05D1\u05D2</div>', | ||
'4-0 rtl left character'); | ||
|
||
selection_test( | ||
'<div dir="rtl"><br>|\u05D0\u05D1\u05D2</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="rtl"><br>\u05D0|\u05D1\u05D2</div>', | ||
'4-1 rtl left character'); | ||
|
||
selection_test( | ||
'<div dir="rtl"><br>\u05D0|\u05D1\u05D2</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="rtl"><br>\u05D0\u05D1|\u05D2</div>', | ||
'4-2 rtl left character'); | ||
|
||
selection_test( | ||
'<div dir="rtl"><br>\u05D0\u05D1|\u05D2</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="rtl"><br>\u05D0\u05D1\u05D2|</div>', | ||
'4-3 rtl left character'); | ||
|
||
selection_test( | ||
'<div dir="rtl"><br>\u05D0\u05D1\u05D2|</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="rtl"><br>\u05D0\u05D1\u05D2|</div>', | ||
'4-4 rtl left character'); | ||
</script> |
65 changes: 65 additions & 0 deletions
65
third_party/WebKit/LayoutTests/editing/selection/modify_move/move_left_character_05_ltr.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<!doctype html> | ||
<script src="../../../resources/testharness.js"></script> | ||
<script src="../../../resources/testharnessreport.js"></script> | ||
<script src="../../assert_selection.js"></script> | ||
<script> | ||
selection_test( | ||
'<div dir="ltr">|abc\u05D0\u05D1\u05D2def</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="ltr">|abc\u05D0\u05D1\u05D2def</div>', | ||
'5-0 ltr left character'); | ||
|
||
selection_test( | ||
'<div dir="ltr">a|bc\u05D0\u05D1\u05D2def</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="ltr">|abc\u05D0\u05D1\u05D2def</div>', | ||
'5-1 ltr left character'); | ||
|
||
selection_test( | ||
'<div dir="ltr">ab|c\u05D0\u05D1\u05D2def</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="ltr">a|bc\u05D0\u05D1\u05D2def</div>', | ||
'5-2 ltr left character'); | ||
|
||
selection_test( | ||
'<div dir="ltr">abc|\u05D0\u05D1\u05D2def</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="ltr">ab|c\u05D0\u05D1\u05D2def</div>', | ||
'5-3 ltr left character'); | ||
|
||
selection_test( | ||
'<div dir="ltr">abc\u05D0|\u05D1\u05D2def</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="ltr">abc\u05D0\u05D1|\u05D2def</div>', | ||
'5-4 ltr left character'); | ||
|
||
selection_test( | ||
'<div dir="ltr">abc\u05D0\u05D1|\u05D2def</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="ltr">abc|\u05D0\u05D1\u05D2def</div>', | ||
'5-5 ltr left character'); | ||
|
||
selection_test( | ||
'<div dir="ltr">abc\u05D0\u05D1\u05D2|def</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="ltr">abc\u05D0|\u05D1\u05D2def</div>', | ||
'5-6 ltr left character'); | ||
|
||
selection_test( | ||
'<div dir="ltr">abc\u05D0\u05D1\u05D2d|ef</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="ltr">abc\u05D0\u05D1\u05D2|def</div>', | ||
'5-7 ltr left character'); | ||
|
||
selection_test( | ||
'<div dir="ltr">abc\u05D0\u05D1\u05D2de|f</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="ltr">abc\u05D0\u05D1\u05D2d|ef</div>', | ||
'5-8 ltr left character'); | ||
|
||
selection_test( | ||
'<div dir="ltr">abc\u05D0\u05D1\u05D2def|</div>', | ||
selection => selection.modify('move', 'left', 'character'), | ||
'<div dir="ltr">abc\u05D0\u05D1\u05D2de|f</div>', | ||
'5-9 ltr left character'); | ||
</script> |
Oops, something went wrong.