chromium/third_party/blink/web_tests/editing/selection/extend/extend_selection_13_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">|\nabc efd dabeb\n</div>',
  selection => selection.modify('extend', 'left', 'character'),
  '<div contenteditable dir="rtl">\n^a|bc efd dabeb\n</div>',
  '13-0 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">\n|abc efd dabeb\n</div>',
  selection => selection.modify('extend', 'left', 'character'),
  '<div contenteditable dir="rtl">\n^a|bc efd dabeb\n</div>',
  '13-1 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">\na|bc efd dabeb\n</div>',
  selection => selection.modify('extend', 'left', 'character'),
  '<div contenteditable dir="rtl">\na^b|c efd dabeb\n</div>',
  '13-2 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">\nab|c efd dabeb\n</div>',
  selection => selection.modify('extend', 'left', 'character'),
  '<div contenteditable dir="rtl">\nab^c| efd dabeb\n</div>',
  '13-3 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">\nabc| efd dabeb\n</div>',
  selection => selection.modify('extend', 'left', 'character'),
  '<div contenteditable dir="rtl">\nabc^ |efd dabeb\n</div>',
  '13-4 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">\nabc |efd dabeb\n</div>',
  selection => selection.modify('extend', 'left', 'character'),
  '<div contenteditable dir="rtl">\nabc ^e|fd dabeb\n</div>',
  '13-5 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">\nabc e|fd dabeb\n</div>',
  selection => selection.modify('extend', 'left', 'character'),
  '<div contenteditable dir="rtl">\nabc e^f|d dabeb\n</div>',
  '13-6 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">\nabc ef|d dabeb\n</div>',
  selection => selection.modify('extend', 'left', 'character'),
  '<div contenteditable dir="rtl">\nabc ef^d| dabeb\n</div>',
  '13-7 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">\nabc efd| dabeb\n</div>',
  selection => selection.modify('extend', 'left', 'character'),
  '<div contenteditable dir="rtl">\nabc efd^ |dabeb\n</div>',
  '13-8 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">\nabc efd |dabeb\n</div>',
  selection => selection.modify('extend', 'left', 'character'),
  '<div contenteditable dir="rtl">\nabc efd ^d|abeb\n</div>',
  '13-9 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">\nabc efd d|abeb\n</div>',
  selection => selection.modify('extend', 'left', 'character'),
  '<div contenteditable dir="rtl">\nabc efd d^a|beb\n</div>',
  '13-10 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">\nabc efd da|beb\n</div>',
  selection => selection.modify('extend', 'left', 'character'),
  '<div contenteditable dir="rtl">\nabc efd da^b|eb\n</div>',
  '13-11 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">\nabc efd dab|eb\n</div>',
  selection => selection.modify('extend', 'left', 'character'),
  '<div contenteditable dir="rtl">\nabc efd dab^e|b\n</div>',
  '13-12 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">\nabc efd dabe|b\n</div>',
  selection => selection.modify('extend', 'left', 'character'),
  '<div contenteditable dir="rtl">\nabc efd dabe^b|\n</div>',
  '13-13 rtl left character');

selection_test(
  '<div contenteditable dir="rtl">\nabc efd dabeb|\n</div>',
  selection => selection.modify('extend', 'left', 'character'),
  '<div contenteditable dir="rtl">\nabc efd dabeb|\n</div>',
  '13-14 rtl left character');
</script>