2010-01-19 12:45:21 -08:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>NPAPI Cookie Tests</title>
|
2010-08-24 10:29:34 -07:00
|
|
|
<script type="application/javascript" src="/MochiKit/packed.js"></script>
|
|
|
|
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
2010-01-19 12:45:21 -08:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body onload="runTests()">
|
|
|
|
<embed id="plugin1" type="application/x-test" width="400" height="400"></embed>
|
|
|
|
<script class="testbody" type="application/javascript">
|
|
|
|
SimpleTest.waitForExplicitFinish();
|
|
|
|
function runTests() {
|
|
|
|
var pluginElement = document.getElementById("plugin1");
|
|
|
|
pluginElement.setCookie("foo");
|
2010-01-21 11:11:49 -08:00
|
|
|
is(pluginElement.getCookie(), "foo", "Cookie was set and retrieved correctly via NPAPI.");
|
2010-01-19 12:45:21 -08:00
|
|
|
SimpleTest.finish();
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|