blob: 947e9edbe5734f05775543c0164f16be9dac3798 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../js/resources/js-test-pre.js"></script>
</head>
<body>
<p id="description"></p>
<pre id="console"></pre>
<script>
description('Checks that session history traversal is done asynchronously.');
onload = function()
{
// Make sure that we can generate history entries
setTimeout(runTest, 0);
}
function runTest()
{
location.hash = '#state1';
history.back();
// If history.back() is asychronous, then the location won't have been
// updated yet.
shouldBe('location.hash', '"#state1"');
finishJSTest();
}
var jsTestIsAsync = true;
</script>
<script src="../js/resources/js-test-post.js"></script>
</body>
</html>