chromium/third_party/blink/web_tests/editing/selection/replaced-boundaries-3.html

<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
// This tests that when a selection that ends at [replaced element, 0] is
// painted, the replaced element doesn't appear selected.  This test uses a
// select box for the replaced element.
selection_test(
    [
        '<div contenteditable>',
            '|abc<br>',
            '<select><option>1</option><option>2</option></select>',
        '</div>',
    ],
    selection => selection.modify('extend', 'forward', 'line'),
    [
        '<div contenteditable>',
            '^abc<br>|',
            '<select><option>1</option><option>2</option></select>',
        '</div>',
    ]);
</script>