chromium/third_party/blink/web_tests/editing/selection/move-by-line-cycles-in-table.html

<!DOCTYPE html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
// Test for http://bugs.webkit.org/show_bug.cgi?id=50012
// Moving cursor down in table cycles at the end of a row

selection_test(
    `
      <div contenteditable>
        <table><tbody><tr><td>|Cursor should be at the end</td></tr></tbody></table>
      </div>
    `,
    selection => selection.modify('move', 'forward', 'line'),
    `
      <div contenteditable>
        <table><tbody><tr><td>Cursor should be at the end</td></tr></tbody></table>|
      </div>
    `,
    'Caret movement does not cycle');

selection_test(
    `
      <div contenteditable>
        <table><tbody><tr><td>Cursor should be at the end</td></tr></tbody></table>|
      </div>
    `,
    selection => selection.modify('move', 'forward', 'line'),
    `
      <div contenteditable>
        <table><tbody><tr><td>Cursor should be at the end</td></tr></tbody></table>|
      </div>
    `,
    'Caret movement does not cycle 2');
</script>