blob: c3f340df30d6509b3edca29e6b250501ae2f5183 [file] [log] [blame]
<html>
<script src="../js/resources/js-test-pre.js"></script>
<body style="min-width: 5000px; min-height: 5000px">
<script>
description('Checks that the popstate event fires when dispatched via createEvent');
onpopstate = function(event)
{
if(!!event.state && !!event.state.testValue)
{
testPassed('Popstate state: (' + event.state.testValue +')');
}
}
onload = function()
{
var evt = document.createEvent("PopStateEvent");
evt.initPopStateEvent("popstate", false, false, { testValue: "Success"} );
window.dispatchEvent(evt);
}
setTimeout(finishJSTest, 500);
var successfullyParsed = true;
var jsTestIsAsync = true;
</script>
<script src="../js/resources/js-test-post.js"></script>
</body>
</html>