OLD | NEW |
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 Loading... |
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> |
OLD | NEW |