Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: dom/jsurl/test/mochitest.toml
<!DOCTYPE HTML>
<html>
<!--
-->
<head>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=351633">Mozilla Bug 351633</a>
<p id="display">
<iframe name="x" id="x"></iframe>
</p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script class="testbody" type="text/javascript">
var str;
str = "a";
window.x.location.href =
"javascript: parent.str += 'c'; void(parent.finishTest());"
str += "b";
SimpleTest.waitForExplicitFinish();
function finishTest() {
is (str, "abc", "Unexpected ordering");
SimpleTest.finish();
}
</script>
</pre>
</body>
</html>