Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: verify && debug && os == 'mac'
- Manifest: netwerk/test/mochitests/mochitest.toml
<!DOCTYPE HTML>
<html>
<!--
-->
<head>
<title>Test for URI Manipulation</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
<script type="text/javascript">
function dotest1()
{
SimpleTest.waitForExplicitFinish();
try { o.href = "foopy:bar:baz"; } catch(e) { }
o.protocol = "http:";
o.hostname;
ok(o.protocol, "http:");
dotest2();
}
function dotest2()
{
try {
o.href ="aaaaaaaaaaa:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
} catch(e) { }
o.hash = "#";
o.pathname = "/";
o.protocol = "http:";
ok(o.protocol, "http:");
dotest3();
}
}
</script>
</head>
<body onload="dotest1();">
<p id="display"></p>
<div id="content" style="display: none"></div>
<pre id="test">
</pre>
</body>
</html>