function assertBrowserSanitizedCssEquals(
    expectedCssTextByBrowser, inputCssText, containerId = undefined,
    uriRewriter = undefined) {
  let expectedCssText = undefined;
  if (product.CHROME) {
    expectedCssText = expectedCssTextByBrowser.chrome;
  } else if (product.FIREFOX) {
    expectedCssText = expectedCssTextByBrowser.firefox;
  } else if (product.SAFARI) {
    expectedCssText = expectedCssTextByBrowser.safari;
  } else if (product.IE || product.EDGE) {
    expectedCssText = expectedCssTextByBrowser.newIE;
  } else {
    throw new Error('Unrecognized browser, this function needs to be updated.');
  }
  if (expectedCssText == undefined) {
    expectedCssText = expectedCssTextByBrowser.chrome;
  }
  assertEquals(
      expectedCssText,
      SafeStyleSheet.unwrap(CssSanitizer.sanitizeStyleSheetString(
          inputCssText, containerId === undefined ? 'foo' : containerId,
          uriRewriter)));
}
Asserts that on each browser the input CSS text is equal to the expected CSS
text after sanitization using {@link CssSanitizer.sanitizeStyleSheetString}.
Automatically verifies that on older browsers the sanitizer returns an empty
string.
@param {{
    chrome: string,
    firefox: (string|undefined),
    safari: (string|undefined),
    newIE: (string|undefined)}} expectedCssTextByBrowser An object that maps
each browser to a different expected value. All browsers but chrome are
optional. If a browser is missing, the chrome expected value is used instead.
@param {string} inputCssText
@param {?string=} containerId
@param {function(string, string):?SafeUrl=} uriRewriter