Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(562)

Side by Side Diff: LayoutTests/plugins/private-browsing-mode.html

Issue 13861033: Remove Apple's unused implementation of private browsing from WebCore (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Repatch to ToT Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <head>
2 <script src="../fast/js/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 requ ires 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 expecte d");
42
43
44 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698