blob: 980a65753252b6781ebd9555accac912a78aea87 [file] [log] [blame]
<!-- webkit-test-runner [ useEphemeralSession=true ] -->
<head>
<script src="../resources/js-test.js"></script>
</head>
<body onload="runTest()">
<script>
function runTest()
{
if (!window.testRunner) {
debug("This test can only run from within DumpRenderTree because it requires TestNetscapePlugin.\n");
return;
}
plugin = document.createElement("embed");
plugin.type = "application/x-webkit-test-netscape";
plugin.setAttribute('test', 'private-browsing');
document.body.appendChild(plugin);
shouldBe("plugin.privateBrowsingEnabled", "true");
shouldBe("plugin.cachedPrivateBrowsingEnabled", "true");
}
</script>
<script>
description("Tests that the private browsing API implementation works as expected");
</script>