chromium/third_party/blink/web_tests/editing/selection/extend/extend_selection_16_rtl_left_character.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="rtl">|car means \u05D0\u05D1\u05D2.</div>',
  selection => selection.modify('extend', 'left', 'character'),
  '<div contenteditable dir="rtl">^c|ar means \u05D0\u05D1\u05D2.</div>',
  '16-0 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">c|ar means \u05D0\u05D1\u05D2.</div>',
  selection => selection.modify('extend', 'left', 'character'),
  '<div contenteditable dir="rtl">c^a|r means \u05D0\u05D1\u05D2.</div>',
  '16-1 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">ca|r means \u05D0\u05D1\u05D2.</div>',
  selection => selection.modify('extend', 'left', 'character'),
  '<div contenteditable dir="rtl">ca^r| means \u05D0\u05D1\u05D2.</div>',
  '16-2 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">car| means \u05D0\u05D1\u05D2.</div>',
  selection => selection.modify('extend', 'left', 'character'),
  '<div contenteditable dir="rtl">car^ |means \u05D0\u05D1\u05D2.</div>',
  '16-3 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">car |means \u05D0\u05D1\u05D2.</div>',
  selection => selection.modify('extend', 'left', 'character'),
  '<div contenteditable dir="rtl">car ^m|eans \u05D0\u05D1\u05D2.</div>',
  '16-4 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">car m|eans \u05D0\u05D1\u05D2.</div>',
  selection => selection.modify('extend', 'left', 'character'),
  '<div contenteditable dir="rtl">car m^e|ans \u05D0\u05D1\u05D2.</div>',
  '16-5 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">car me|ans \u05D0\u05D1\u05D2.</div>',
  selection => selection.modify('extend', 'left', 'character'),
  '<div contenteditable dir="rtl">car me^a|ns \u05D0\u05D1\u05D2.</div>',
  '16-6 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">car mea|ns \u05D0\u05D1\u05D2.</div>',
  selection => selection.modify('extend', 'left', 'character'),
  '<div contenteditable dir="rtl">car mea^n|s \u05D0\u05D1\u05D2.</div>',
  '16-7 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">car mean|s \u05D0\u05D1\u05D2.</div>',
  selection => selection.modify('extend', 'left', 'character'),
  '<div contenteditable dir="rtl">car mean^s| \u05D0\u05D1\u05D2.</div>',
  '16-8 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">car means| \u05D0\u05D1\u05D2.</div>',
  selection => selection.modify('extend', 'left', 'character'),
  '<div contenteditable dir="rtl">car means^ |\u05D0\u05D1\u05D2.</div>',
  '16-9 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">car means |\u05D0\u05D1\u05D2.</div>',
  selection => selection.modify('extend', 'left', 'character'),
  '<div contenteditable dir="rtl">car means ^\u05D0|\u05D1\u05D2.</div>',
  '16-10 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">car means \u05D0|\u05D1\u05D2.</div>',
  selection => selection.modify('extend', 'left', 'character'),
  '<div contenteditable dir="rtl">car means \u05D0^\u05D1|\u05D2.</div>',
  '16-11 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">car means \u05D0\u05D1|\u05D2.</div>',
  selection => selection.modify('extend', 'left', 'character'),
  '<div contenteditable dir="rtl">car means \u05D0\u05D1^\u05D2|.</div>',
  '16-12 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">car means \u05D0\u05D1\u05D2|.</div>',
  selection => selection.modify('extend', 'left', 'character'),
  '<div contenteditable dir="rtl">car means \u05D0\u05D1\u05D2^.|</div>',
  '16-13 rtl left character');
</script>