testSetCursorPositionTextareaWithNewlines() {
    textarea.value = 'Hello\nWorld';
    textarea.focus();

    // Set the selection point between 'W' and 'o'. Position is computed this
    // way instead of being hard-coded because it's different in IE due to \r\n
    // vs \n.
    selection.setCursorPosition(textarea, textarea.value.length - 4);

    const expectedLeftString = 'Hello\nW';

    assertEquals(
        'getStart on input should return after the newline',
        expectedLeftString.length, selection.getStart(textarea));
    assertEquals(
        'getEnd on input should return after the newline',
        expectedLeftString.length, selection.getEnd(textarea));

    selection.setEnd(textarea, textarea.value.length);
    assertEquals('orld', selection.getText(textarea));
  }
Test to make sure there's no error setting cursor position within a
textarea after a newline. This is problematic on IE because of the
'\r\n' vs '\n' issue.