wpt/css/css-images/gradient/color-stops-parsing.html fails
[WebKit-https.git] / LayoutTests / fast / events / fire-popstate-event.html
1
2 <html>
3 <script src="../../resources/js-test-pre.js"></script>
4 <body style="min-width: 5000px; min-height: 5000px">
5 <script>
6 description('Checks that the popstate event fires when dispatched via createEvent');
7
8 onpopstate = function(event)
9 {
10     if(!!event.state && !!event.state.testValue)
11     {
12         testPassed('Popstate state: (' + event.state.testValue +')');
13     }
14 }
15
16 onload = function()
17 {
18     var evt = new PopStateEvent('popstate', {
19             bubbles: false,
20             cancelable: false,
21             state: { testValue: 'Success' }
22         });
23     window.dispatchEvent(evt);
24 }
25
26 setTimeout(finishJSTest, 500);
27 var jsTestIsAsync = true;
28 </script>
29 <script src="../../resources/js-test-post.js"></script>
30 </body>
31 </html>