function verifyWindow(win, noreferrer, urlParam) {
  if (noreferrer && self.crossOriginIsolated === undefined) {
    assertEquals(
        'Referrer should have been stripped', '', win.document.referrer);
  }

  const winUrl = decodeURI(String(win.location));
  const expectedUrlSuffix = decodeURI(urlParam);
  assertTrue(
      `New window href should have ended with <${expectedUrlSuffix}` +
          '> but was <' + winUrl + '>',
      googString.endsWith(winUrl, expectedUrlSuffix));
}
Asserts that a newly created window has the correct parameters.
@param {Window} win
@param {boolean} noreferrer Whether the noreferrer option is being tested.
@param {string} urlParam Url param appended to the url being opened.