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