Git init
[framework/web/webkit-efl.git] / LayoutTests / fast / history / history-traversal-is-asynchronous.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4   <link rel="stylesheet" href="../js/resources/js-test-style.css">
5   <script src="../js/resources/js-test-pre.js"></script>
6 </head>
7 <body>
8 <p id="description"></p>
9 <pre id="console"></pre>
10 <script>
11 description('Checks that session history traversal is done asynchronously.');
12
13 onload = function()
14 {
15     // Make sure that we can generate history entries
16     setTimeout(runTest, 0);
17 }
18
19 function runTest() 
20 {
21     location.hash = '#state1';
22     history.back();
23     // If history.back() is asychronous, then the location won't have been
24     // updated yet.
25     shouldBe('location.hash', '"#state1"');
26
27     finishJSTest();
28 }
29
30 var successfullyParsed = true;
31 var jsTestIsAsync = true;
32 </script>  
33 <script src="../js/resources/js-test-post.js"></script>
34 </body>
35 </html>