chromium/third_party/blink/web_tests/editing/selection/extend/extend_selection_09_rtl_right_lineboundary.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">|Lorem <div  dir="ltr">ipsum dolor sit</div> amet</div>',
  selection => selection.modify('extend', 'right', 'lineboundary'),
  '<div contenteditable dir="rtl">|Lorem <div dir="ltr">ipsum dolor sit</div> amet</div>',
  '9-0 rtl right lineboundary');

selection_test(
  '<div contenteditable dir="rtl">L|orem <div  dir="ltr">ipsum dolor sit</div> amet</div>',
  selection => selection.modify('extend', 'right', 'lineboundary'),
  '<div contenteditable dir="rtl">|L^orem <div dir="ltr">ipsum dolor sit</div> amet</div>',
  '9-1 rtl right lineboundary');

selection_test(
  '<div contenteditable dir="rtl">Lo|rem <div  dir="ltr">ipsum dolor sit</div> amet</div>',
  selection => selection.modify('extend', 'right', 'lineboundary'),
  '<div contenteditable dir="rtl">|Lo^rem <div dir="ltr">ipsum dolor sit</div> amet</div>',
  '9-2 rtl right lineboundary');

selection_test(
  '<div contenteditable dir="rtl">Lor|em <div  dir="ltr">ipsum dolor sit</div> amet</div>',
  selection => selection.modify('extend', 'right', 'lineboundary'),
  '<div contenteditable dir="rtl">|Lor^em <div dir="ltr">ipsum dolor sit</div> amet</div>',
  '9-3 rtl right lineboundary');

selection_test(
  '<div contenteditable dir="rtl">Lore|m <div  dir="ltr">ipsum dolor sit</div> amet</div>',
  selection => selection.modify('extend', 'right', 'lineboundary'),
  '<div contenteditable dir="rtl">|Lore^m <div dir="ltr">ipsum dolor sit</div> amet</div>',
  '9-4 rtl right lineboundary');

selection_test(
  '<div contenteditable dir="rtl">Lorem| <div  dir="ltr">ipsum dolor sit</div> amet</div>',
  selection => selection.modify('extend', 'right', 'lineboundary'),
  '<div contenteditable dir="rtl">|Lorem^ <div dir="ltr">ipsum dolor sit</div> amet</div>',
  '9-5 rtl right lineboundary');

selection_test(
  '<div contenteditable dir="rtl">Lorem <div  dir="ltr">|ipsum dolor sit</div> amet</div>',
  selection => selection.modify('extend', 'right', 'lineboundary'),
  '<div contenteditable dir="rtl">Lorem <div dir="ltr">^ipsum dolor sit|</div> amet</div>',
  '9-6 rtl right lineboundary');

selection_test(
  '<div contenteditable dir="rtl">Lorem <div  dir="ltr">i|psum dolor sit</div> amet</div>',
  selection => selection.modify('extend', 'right', 'lineboundary'),
  '<div contenteditable dir="rtl">Lorem <div dir="ltr">i^psum dolor sit|</div> amet</div>',
  '9-7 rtl right lineboundary');

selection_test(
  '<div contenteditable dir="rtl">Lorem <div  dir="ltr">ip|sum dolor sit</div> amet</div>',
  selection => selection.modify('extend', 'right', 'lineboundary'),
  '<div contenteditable dir="rtl">Lorem <div dir="ltr">ip^sum dolor sit|</div> amet</div>',
  '9-8 rtl right lineboundary');

selection_test(
  '<div contenteditable dir="rtl">Lorem <div  dir="ltr">ips|um dolor sit</div> amet</div>',
  selection => selection.modify('extend', 'right', 'lineboundary'),
  '<div contenteditable dir="rtl">Lorem <div dir="ltr">ips^um dolor sit|</div> amet</div>',
  '9-9 rtl right lineboundary');

selection_test(
  '<div contenteditable dir="rtl">Lorem <div  dir="ltr">ipsu|m dolor sit</div> amet</div>',
  selection => selection.modify('extend', 'right', 'lineboundary'),
  '<div contenteditable dir="rtl">Lorem <div dir="ltr">ipsu^m dolor sit|</div> amet</div>',
  '9-10 rtl right lineboundary');

selection_test(
  '<div contenteditable dir="rtl">Lorem <div  dir="ltr">ipsum| dolor sit</div> amet</div>',
  selection => selection.modify('extend', 'right', 'lineboundary'),
  '<div contenteditable dir="rtl">Lorem <div dir="ltr">ipsum^ dolor sit|</div> amet</div>',
  '9-11 rtl right lineboundary');

selection_test(
  '<div contenteditable dir="rtl">Lorem <div  dir="ltr">ipsum |dolor sit</div> amet</div>',
  selection => selection.modify('extend', 'right', 'lineboundary'),
  '<div contenteditable dir="rtl">Lorem <div dir="ltr">ipsum ^dolor sit|</div> amet</div>',
  '9-12 rtl right lineboundary');

selection_test(
  '<div contenteditable dir="rtl">Lorem <div  dir="ltr">ipsum d|olor sit</div> amet</div>',
  selection => selection.modify('extend', 'right', 'lineboundary'),
  '<div contenteditable dir="rtl">Lorem <div dir="ltr">ipsum d^olor sit|</div> amet</div>',
  '9-13 rtl right lineboundary');

selection_test(
  '<div contenteditable dir="rtl">Lorem <div  dir="ltr">ipsum do|lor sit</div> amet</div>',
  selection => selection.modify('extend', 'right', 'lineboundary'),
  '<div contenteditable dir="rtl">Lorem <div dir="ltr">ipsum do^lor sit|</div> amet</div>',
  '9-14 rtl right lineboundary');

selection_test(
  '<div contenteditable dir="rtl">Lorem <div  dir="ltr">ipsum dol|or sit</div> amet</div>',
  selection => selection.modify('extend', 'right', 'lineboundary'),
  '<div contenteditable dir="rtl">Lorem <div dir="ltr">ipsum dol^or sit|</div> amet</div>',
  '9-15 rtl right lineboundary');

selection_test(
  '<div contenteditable dir="rtl">Lorem <div  dir="ltr">ipsum dolo|r sit</div> amet</div>',
  selection => selection.modify('extend', 'right', 'lineboundary'),
  '<div contenteditable dir="rtl">Lorem <div dir="ltr">ipsum dolo^r sit|</div> amet</div>',
  '9-16 rtl right lineboundary');

selection_test(
  '<div contenteditable dir="rtl">Lorem <div  dir="ltr">ipsum dolor| sit</div> amet</div>',
  selection => selection.modify('extend', 'right', 'lineboundary'),
  '<div contenteditable dir="rtl">Lorem <div dir="ltr">ipsum dolor^ sit|</div> amet</div>',
  '9-17 rtl right lineboundary');

selection_test(
  '<div contenteditable dir="rtl">Lorem <div  dir="ltr">ipsum dolor |sit</div> amet</div>',
  selection => selection.modify('extend', 'right', 'lineboundary'),
  '<div contenteditable dir="rtl">Lorem <div dir="ltr">ipsum dolor ^sit|</div> amet</div>',
  '9-18 rtl right lineboundary');

selection_test(
  '<div contenteditable dir="rtl">Lorem <div  dir="ltr">ipsum dolor s|it</div> amet</div>',
  selection => selection.modify('extend', 'right', 'lineboundary'),
  '<div contenteditable dir="rtl">Lorem <div dir="ltr">ipsum dolor s^it|</div> amet</div>',
  '9-19 rtl right lineboundary');

selection_test(
  '<div contenteditable dir="rtl">Lorem <div  dir="ltr">ipsum dolor si|t</div> amet</div>',
  selection => selection.modify('extend', 'right', 'lineboundary'),
  '<div contenteditable dir="rtl">Lorem <div dir="ltr">ipsum dolor si^t|</div> amet</div>',
  '9-20 rtl right lineboundary');

selection_test(
  '<div contenteditable dir="rtl">Lorem <div  dir="ltr">ipsum dolor sit</div>| amet</div>',
  selection => selection.modify('extend', 'right', 'lineboundary'),
  '<div contenteditable dir="rtl">Lorem <div dir="ltr">ipsum dolor sit</div> |amet</div>',
  '9-21 rtl right lineboundary');

selection_test(
  '<div contenteditable dir="rtl">Lorem <div  dir="ltr">ipsum dolor sit</div> |amet</div>',
  selection => selection.modify('extend', 'right', 'lineboundary'),
  '<div contenteditable dir="rtl">Lorem <div dir="ltr">ipsum dolor sit</div> |amet</div>',
  '9-22 rtl right lineboundary');

selection_test(
  '<div contenteditable dir="rtl">Lorem <div  dir="ltr">ipsum dolor sit</div> a|met</div>',
  selection => selection.modify('extend', 'right', 'lineboundary'),
  '<div contenteditable dir="rtl">Lorem <div dir="ltr">ipsum dolor sit</div> |a^met</div>',
  '9-23 rtl right lineboundary');

selection_test(
  '<div contenteditable dir="rtl">Lorem <div  dir="ltr">ipsum dolor sit</div> am|et</div>',
  selection => selection.modify('extend', 'right', 'lineboundary'),
  '<div contenteditable dir="rtl">Lorem <div dir="ltr">ipsum dolor sit</div> |am^et</div>',
  '9-24 rtl right lineboundary');

selection_test(
  '<div contenteditable dir="rtl">Lorem <div  dir="ltr">ipsum dolor sit</div> ame|t</div>',
  selection => selection.modify('extend', 'right', 'lineboundary'),
  '<div contenteditable dir="rtl">Lorem <div dir="ltr">ipsum dolor sit</div> |ame^t</div>',
  '9-25 rtl right lineboundary');

selection_test(
  '<div contenteditable dir="rtl">Lorem <div  dir="ltr">ipsum dolor sit</div> amet|</div>',
  selection => selection.modify('extend', 'right', 'lineboundary'),
  '<div contenteditable dir="rtl">Lorem <div dir="ltr">ipsum dolor sit</div> |amet^</div>',
  '9-26 rtl right lineboundary');
</script>