summaryrefslogtreecommitdiffstats
path: root/docshell/test/browser/browser_multiple_pushState.js
blob: 5c2f5aef4fffa4da874a2cfba014c2d608d8a16a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
add_task(function* test_multiple_pushState() {
  yield BrowserTestUtils.withNewTab({
    gBrowser,
    url: "http://example.org/browser/docshell/test/browser/file_multiple_pushState.html",
  }, function* (browser) {
    const kExpected = "http://example.org/bar/ABC/DEF?key=baz";

    let contentLocation = yield ContentTask.spawn(browser, null, function* () {
      return content.document.location.href;
    });

    is(contentLocation, kExpected);
    is(browser.documentURI.spec, kExpected);
  });
});