This test: -Builds up a list of state object entries with fragment URLs. -Navigates through them to verify that the popstate and hashchanged events are fired. -Navigates away to a new document, with the old document being destroyed. -Navigates back to the state object entries and verifies the pageshow or popstate events are fired on the new documents.