testPartialTableRemoveFormatting() {
    if (userAgent.IE) {
      // IE returns an "unspecified error" which seems to be beyond
      // ExpectedFailures' ability to catch.
      return;
    }

    const div = document.getElementById('html');
    div.innerHTML = 'bar<table><tr><td><b id="b">foo</b></td></tr>' +
        '<tr><td><i>banana</i></td></tr></table><div id="baz">' +
        'baz</div>';

    // Select from the "oo" inside the b tag to the end of "baz".
    Range
        .createFromNodes(
            dom.getElement('b').firstChild, 1, dom.getElement('baz').firstChild,
            3)
        .select();

    // All browsers currently clobber the table cells that are selected.
    expectedFailures.expectFailureFor(userAgent.WEBKIT);

    expectedFailures.run(/**
                            @suppress {visibility} suppression added to enable
                            type checking
                          */
                         () => {
                           FORMATTER.removeFormatting_();
                           // Only remove styling from inside tables.
                           assertHTMLEquals(
                               'bar<table><tr><td><b id="b">f</b>oo</td></tr>' +
                                   '<tr><td>banana</td></tr></table>baz',
                               div.innerHTML);
                           FIELDMOCK.$verify();
                         });
  }
@suppress {visibility} suppression added to enable
                            type checking