Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

<!DOCTYPE HTML>
<html>
<!--
-->
<head>
<title>Test for Bug 1367586</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<iframe id="load-frame"></iframe>
<pre id="test">
<script class="testbody" type="text/javascript">
SimpleTest.waitForExplicitFinish();
var frm = document.getElementById("load-frame");
var step = 0;
window.addEventListener("load", () => {
frm.addEventListener("load", function() {
++step;
SimpleTest.executeSoon((function(_step, _frm) {
switch (_step) {
case 1:
"Redirected to the expected target in step 1");
break;
case 2:
"Navigated to the expected URL in step 2");
_frm.contentWindow.history.back();
break;
case 3:
"Seeing the correct URL when navigating back in step 3");
SimpleTest.finish();
break;
}
}).bind(window, step, frm));
});
});
</script>
</pre>
</body>
</html>