3 <script src="../js/resources/js-test-pre.js"></script>
4 <body style="min-width: 5000px; min-height: 5000px">
6 description('Checks that the popstate event fires when dispatched via createEvent');
8 onpopstate = function(event)
10 if(!!event.state && !!event.state.testValue)
12 testPassed('Popstate state: (' + event.state.testValue +')');
18 var evt = new PopStateEvent('popstate', {
21 state: { testValue: 'Success' }
23 window.dispatchEvent(evt);
26 setTimeout(finishJSTest, 500);
27 var jsTestIsAsync = true;
29 <script src="../js/resources/js-test-post.js"></script>