blob: 376312451c1260d6d81e940e610b5c125d55bd08 [file] [log] [blame]
<?php
header("Content-type:application/javascript");
if (isset($_COOKIE["foo"])) {
echo "var cookieVal = '" . $_COOKIE["foo"] . "';";
} else {
echo "var cookieVal = '<null>';";
}
?>
if (cookieVal == "bar")
document.getElementById("result").innerHTML = "PASSED: Cookie is set to 'bar'";
else
document.getElementById("result").innerHTML = "FAILED: Cookie should be 'bar', is set to '" + cookieVal + "'";
if (window.testRunner)
testRunner.notifyDone();