зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1170488 - Add browser_multiple_pushState.js regression test. r=smaug
--HG-- extra : commitid : F8FqOZql1gs extra : rebase_source : 2cff12af1780483bc17827550cf4bd8dce2db096
This commit is contained in:
Родитель
6401cd5977
Коммит
3d82028ac3
|
@ -33,6 +33,7 @@ support-files =
|
|||
file_bug852909.pdf
|
||||
file_bug852909.png
|
||||
file_bug1046022.html
|
||||
file_multiple_pushState.html
|
||||
print_postdata.sjs
|
||||
test-form_sjis.html
|
||||
timelineMarkers-04.html
|
||||
|
@ -98,6 +99,7 @@ skip-if = e10s # Bug ?????? - event handler checks event.target is the content d
|
|||
skip-if = e10s
|
||||
[browser_loadURI.js]
|
||||
skip-if = e10s # Bug ?????? - event handler checks event.target is the content document and test e10s-utils doesn't do that.
|
||||
[browser_multiple_pushState.js]
|
||||
[browser_onbeforeunload_navigation.js]
|
||||
skip-if = e10s
|
||||
[browser_search_notification.js]
|
||||
|
|
|
@ -0,0 +1,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);
|
||||
});
|
||||
});
|
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Test multiple calls to history.pushState</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Ohai</h1>
|
||||
</body>
|
||||
<script type="text/javascript">
|
||||
window.history.pushState({}, "", "/bar/ABC?key=baz");
|
||||
window.history.pushState({}, "", "/bar/ABC/DEF?key=baz");
|
||||
</script>
|
||||
</html>
|
Загрузка…
Ссылка в новой задаче