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

Side by Side Diff: chrome/test/data/extensions/api_test/content_settings/persistent_incognito/test.html

Issue 7067040: Enable incognito_session_only preferences (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with ToT Created 9 years, 7 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
1 <script> 1 <script>
2 // Content settings API test 2 // Content settings API test
3 // Run with browser_tests --gtest_filter=ExtensionApiTest.IncognitoContentSettin gs 3 // Run with browser_tests --gtest_filter=ExtensionApiTest.PersistentIncognitoCon tentSettings
4 4
5 var cs = chrome.experimental.contentSettings; 5 var cs = chrome.experimental.contentSettings;
6 function expect(expected, message) { 6 function expect(expected, message) {
7 return chrome.test.callbackPass(function(value) { 7 return chrome.test.callbackPass(function(value) {
8 chrome.test.assertNoLastError(); 8 chrome.test.assertNoLastError();
9 chrome.test.assertEq(expected, value, message); 9 chrome.test.assertEq(expected, value, message);
10 }); 10 });
11 } 11 }
12 chrome.test.runTests([ 12 chrome.test.runTests([
13 function getRegular() { 13 function getRegular() {
(...skipping 26 matching lines...) Expand all
40 function getIncognito2() { 40 function getIncognito2() {
41 cs.misc.blockThirdPartyCookies.get( 41 cs.misc.blockThirdPartyCookies.get(
42 { 'incognito': true }, 42 { 'incognito': true },
43 expect({ 'value': true, 43 expect({ 'value': true,
44 'incognitoSpecific': true, 44 'incognitoSpecific': true,
45 'levelOfControl': "ControlledByThisExtension" }, 45 'levelOfControl': "ControlledByThisExtension" },
46 "third-party cookies should be blocked in incognito mode")); 46 "third-party cookies should be blocked in incognito mode"));
47 }, 47 },
48 ]); 48 ]);
49 </script> 49 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698