[Web GPU] GPURenderPassEncoder updates: setBlendColor, setViewport, setScissorRect
[WebKit-https.git] / LayoutTests / plugins / private-browsing-mode.html
1 <head>
2 <script src="../resources/js-test-pre.js"></script>
3 </head>
4 <body onload="runTest()">
5 <p id="description"></p>
6 <div id="console"></div>
7 <script>
8 function runTest() 
9 {
10     if (!window.testRunner) {
11         debug("This test can only run from within DumpRenderTree because it requires TestNetscapePlugin.\n");
12         return;
13     }
14     
15     plugin1 = document.createElement("embed");
16     plugin1.type = "application/x-webkit-test-netscape";
17     plugin1.setAttribute('test', 'private-browsing');
18     document.body.appendChild(plugin1);
19     
20     shouldBe("plugin1.privateBrowsingEnabled", "false");
21     shouldBe("plugin1.cachedPrivateBrowsingEnabled", "false");
22
23     // Now enable private browsing
24     testRunner.setPrivateBrowsingEnabled(true);
25
26     shouldBe("plugin1.privateBrowsingEnabled", "true");
27     shouldBe("plugin1.cachedPrivateBrowsingEnabled", "true");
28     
29     plugin2 = document.createElement("embed");
30     plugin2.type = "application/x-webkit-test-netscape";
31     plugin2.setAttribute('test', 'private-browsing');
32     document.body.appendChild(plugin2);
33     
34     shouldBe("plugin2.privateBrowsingEnabled", "true");
35     shouldBe("plugin2.cachedPrivateBrowsingEnabled", "true");
36     
37 }
38 </script>
39
40 <script>
41 description("Tests that the private browsing API implementation works as expected");
42
43
44 </script>