<html> | |
<head> | |
<script> | |
function test() | |
{ | |
var expected = "?This+is+a+test"; | |
if (location.search != expected) | |
log("FAIL: Expected \"" + expected + "\" but got \"" + location.search + "\""); | |
else | |
log("PASS"); | |
} | |
function log(msg) | |
{ | |
document.getElementById("log").appendChild(document.createTextNode(msg + "\n")); | |
} | |
window.onload = test; | |
</script> | |
</head> | |
<body> | |
<pre id="log"></pre> | |
<script> | |
if (window.testRunner) | |
testRunner.notifyDone(); | |
</script> | |
</body> | |
</html> |