gecko-dev/docshell/test/browser/browser_multiple_pushState.js
Mike Conley 3d82028ac3 Bug 1170488 - Add browser_multiple_pushState.js regression test. r=smaug
--HG--
extra : commitid : F8FqOZql1gs
extra : rebase_source : 2cff12af1780483bc17827550cf4bd8dce2db096
2015-06-16 10:15:40 -04:00

16 lines
506 B
JavaScript

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);
});
});