2010-01-19 12:45:21 -08:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>NPAPI Cookie Tests</title>
|
|
|
|
<script type="application/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
|
|
|
<script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
|
|
|
|
</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>
|