chromium/third_party/blink/web_tests/editing/selection/android-longtap-not-select-empty.html

<!DOCTYPE html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
selection_test(
  [
    '<p><span id="span1">paragraph A</span></p>',
    '<p>paragraph B</p>',
  ],
  selection => {
    if (!window.eventSender)
      throw 'This test requires eventSender.';

    const span1 = selection.document.getElementById('span1');
    eventSender.gestureLongPress(
        selection.computeLeft(span1) + span1.offsetWidth + 20,
        selection.computeTop(span1) + span1.offsetHeight / 2);
  },
  [
    '<p><span id="span1">paragraph A|</span></p>',
    '<p>paragraph B</p>',
  ],
  'Long tap on empty area between span and p');
</script>