chromium/third_party/blink/web_tests/editing/selection/modify_move/move_left_character_24_ltr.html

<!doctype html>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<script src="../../assert_selection.js"></script>
<script>
selection_test(
  '<div contenteditable dir="ltr">|\u05E6\u05DC\u05D7\u05EA\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">|\u05E6\u05DC\u05D7\u05EA\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  '24-0 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">\u05E6|\u05DC\u05D7\u05EA\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">|\u05E6\u05DC\u05D7\u05EA\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  '24-1 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">\u05E6\u05DC|\u05D7\u05EA\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">\u05E6|\u05DC\u05D7\u05EA\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  '24-2 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7|\u05EA\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">\u05E6\u05DC|\u05D7\u05EA\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  '24-3 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA|\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7|\u05EA\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  '24-4 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA\n|        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7|\u05EA\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  '24-5 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA\n |       <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7|\u05EA\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  '24-6 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA\n  |      <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7|\u05EA\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  '24-7 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA\n   |     <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7|\u05EA\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  '24-8 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA\n    |    <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7|\u05EA\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  '24-9 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA\n     |   <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7|\u05EA\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  '24-10 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA\n      |  <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7|\u05EA\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  '24-11 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA\n       | <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7|\u05EA\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  '24-12 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA\n        |<div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7|\u05EA\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  '24-13 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA\n        <div>|</div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA|\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  '24-14 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA\n        <div></div>|\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA|\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  '24-15 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA\n        <div></div>\n|        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA|\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  '24-16 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA\n        <div></div>\n |       \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA|\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  '24-17 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA\n        <div></div>\n  |      \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA|\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  '24-18 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA\n        <div></div>\n   |     \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA|\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  '24-19 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA\n        <div></div>\n    |    \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA|\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  '24-20 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA\n        <div></div>\n     |   \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA|\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  '24-21 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA\n        <div></div>\n      |  \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA|\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  '24-22 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA\n        <div></div>\n       | \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA|\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  '24-23 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA\n        <div></div>\n        |\u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA|\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  '24-24 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA\n        <div></div>\n        \u05DE|\u05E6\u05E0\u05E4\u05EA</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA\n        <div></div>\n        |\u05DE\u05E6\u05E0\u05E4\u05EA</div>',
  '24-25 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA\n        <div></div>\n        \u05DE\u05E6|\u05E0\u05E4\u05EA</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA\n        <div></div>\n        \u05DE|\u05E6\u05E0\u05E4\u05EA</div>',
  '24-26 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA\n        <div></div>\n        \u05DE\u05E6\u05E0|\u05E4\u05EA</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA\n        <div></div>\n        \u05DE\u05E6|\u05E0\u05E4\u05EA</div>',
  '24-27 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4|\u05EA</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA\n        <div></div>\n        \u05DE\u05E6\u05E0|\u05E4\u05EA</div>',
  '24-28 ltr left character');

selection_test(
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4\u05EA|</div>',
  selection => selection.modify('move', 'left', 'character'),
  '<div contenteditable dir="ltr">\u05E6\u05DC\u05D7\u05EA\n        <div></div>\n        \u05DE\u05E6\u05E0\u05E4|\u05EA</div>',
  '24-29 ltr left character');
</script>