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

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

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

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

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

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

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

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

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

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

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

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

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

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