Stabilize history.replaceState tests
This commit is contained in:
parent
eb202d761c
commit
43155b0cc8
@ -5,8 +5,8 @@
|
||||
<title>Test title</title>
|
||||
<script type="text/javascript">
|
||||
window.onload = function () {
|
||||
console.log("Calling history.replaceState");
|
||||
history.replaceState({}, '', window.location + '?state=2');
|
||||
console.log("Called history.replaceState");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
@ -198,7 +198,7 @@ Feature: Saving and loading sessions
|
||||
|
||||
Scenario: Saving a session with a page using history.replaceState()
|
||||
When I open data/sessions/history_replace_state.html without waiting
|
||||
Then the javascript message "Calling history.replaceState" should be logged
|
||||
Then the javascript message "Called history.replaceState" should be logged
|
||||
And the session should look like:
|
||||
windows:
|
||||
- tabs:
|
||||
@ -212,7 +212,7 @@ Feature: Saving and loading sessions
|
||||
Scenario: Saving a session with a page using history.replaceState() and navigating away (qtwebkit)
|
||||
When I open data/sessions/history_replace_state.html
|
||||
And I open data/hello.txt
|
||||
Then the javascript message "Calling history.replaceState" should be logged
|
||||
Then the javascript message "Called history.replaceState" should be logged
|
||||
And the session should look like:
|
||||
windows:
|
||||
- tabs:
|
||||
@ -229,7 +229,7 @@ Feature: Saving and loading sessions
|
||||
@qtwebkit_skip
|
||||
Scenario: Saving a session with a page using history.replaceState() and navigating away
|
||||
When I open data/sessions/history_replace_state.html without waiting
|
||||
And I wait for "* Calling history.replaceState" in the log
|
||||
And I wait for "* Called history.replaceState" in the log
|
||||
And I open data/hello.txt
|
||||
Then the session should look like:
|
||||
windows:
|
||||
|
Loading…
Reference in New Issue
Block a user