testEnterInBlockquoteRemovesUnnecessaryBrWithCursorBeforeBr() {
    setUpFields(true);

    // Assume the following HTML snippet:-
    // <blockquote>one|<br>two<br></blockquote>
    //
    // After enter on the cursor position, the resulting HTML should be.
    // <blockquote>one<br></blockquote>
    // <div>&nbsp;</div>
    // <blockquote>two<br></blockquote>
    field1.setSafeHtml(
        false,
        testing.newSafeHtmlForTest(
            '<blockquote id="quote" class="tr_bq">one<br>' +
            'two<br></blockquote>'));
    const dom = field1.getEditableDomHelper();
    let cursor = dom.getElement('quote').firstChild;
    Range.createCaret(cursor, 3).select();
    testingEvents.fireKeySequence(field1.getElement(), KeyCodes.ENTER);
    const elem = field1.getElement();
    let secondBlockquote =
        dom.getElementsByTagNameAndClass(TagName.BLOCKQUOTE, null, elem)[1];
    assertHTMLEquals('two<br>', secondBlockquote.innerHTML);

    // Ensures that standard text node split works as expected with the new
    // change.
    field1.setSafeHtml(
        false,
        testing.newSafeHtmlForTest(
            '<blockquote id="quote" class="tr_bq">one<b>two</b><br>'));
    cursor = dom.getElement('quote').firstChild;
    Range.createCaret(cursor, 3).select();
    testingEvents.fireKeySequence(field1.getElement(), KeyCodes.ENTER);
    secondBlockquote =
        dom.getElementsByTagNameAndClass(TagName.BLOCKQUOTE, null, elem)[1];
    assertHTMLEquals('<b>two</b><br>', secondBlockquote.innerHTML);
  }
Tests that breaking in a text node before a BR doesn't result in
unnecessary newlines.
@bug 1471047