testHardReturnsInHeadersPreserved() {
    const div = document.getElementById('html');
    div.innerHTML = '<h1>abcd</h1><h2>efgh</h2><h3>ijkl</h3>';

    // Select efgh.
    Range.createFromNodeContents(div.childNodes[1]).select();
    FORMATTER.removeFormatting_();

    expectedFailures.expectFailureFor(
        userAgent.IE, 'Proper behavior not yet implemented for IE.');
    expectedFailures.expectFailureFor(
        userAgent.WEBKIT, 'Proper behavior not yet implemented for WebKit.');
    expectedFailures.run(() => {
      assertHTMLEquals('<h1>abcd</h1><br>efgh<h3>ijkl</h3>', div.innerHTML);
    });

    // Select ijkl.
    Range.createFromNodeContents(div.lastChild).select();
    FORMATTER.removeFormatting_();

    expectedFailures.expectFailureFor(
        userAgent.IE, 'Proper behavior not yet implemented for IE.');
    expectedFailures.expectFailureFor(
        userAgent.WEBKIT, 'Proper behavior not yet implemented for WebKit.');
    expectedFailures.run(() => {
      assertHTMLEquals('<h1>abcd</h1><br>efgh<br>ijkl', div.innerHTML);
    });

    // Select abcd.
    Range.createFromNodeContents(div.firstChild).select();
    FORMATTER.removeFormatting_();

    expectedFailures.expectFailureFor(
        userAgent.IE, 'Proper behavior not yet implemented for IE.');
    expectedFailures.expectFailureFor(
        userAgent.WEBKIT, 'Proper behavior not yet implemented for WebKit.');
    expectedFailures.run(() => {
      assertHTMLEquals('<br>abcd<br>efgh<br>ijkl', div.innerHTML);
    });
  }
@bug 1272905
@suppress {visibility} suppression added to enable type
     checking