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

Unified Diff: chrome/test/data/extensions/api_test/content_settings/clear/test.html

Issue 7031063: Extension API: Rename contentSettings.misc to .global and rename preferences under it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/api_test/content_settings/clear/test.html
diff --git a/chrome/test/data/extensions/api_test/content_settings/clear/test.html b/chrome/test/data/extensions/api_test/content_settings/clear/test.html
index 6927f6a32994f84d2dab71318625ff550679433e..69ffc7bf207009849c8d50729721a7046353df64 100644
--- a/chrome/test/data/extensions/api_test/content_settings/clear/test.html
+++ b/chrome/test/data/extensions/api_test/content_settings/clear/test.html
@@ -4,33 +4,33 @@
var cs = chrome.experimental.contentSettings;
chrome.test.runTests([
- function getBlockThirdPartyCookies() {
- cs.misc.blockThirdPartyCookies.get({}, chrome.test.callbackPass(
- function(block) {
+ function getThirdPartyCookiesAllowed() {
+ cs.global.thirdPartyCookiesAllowed.get({}, chrome.test.callbackPass(
+ function(allowed) {
chrome.test.assertEq(
- block,
+ allowed,
{
- 'value': true,
+ 'value': false,
'levelOfControl': "controllable_by_this_extension"
},
"third-party cookies should be blocked");
}));
},
- function setBlockThirdPartyCookies() {
- cs.misc.blockThirdPartyCookies.set(
- {'value': false},
+ function setThirdPartyCookiesAllowed() {
+ cs.global.thirdPartyCookiesAllowed.set(
+ {'value': true},
chrome.test.callbackPass());
},
- function clearBlockThirdPartyCookies() {
- cs.misc.blockThirdPartyCookies.clear({}, chrome.test.callbackPass());
+ function clearThirdPartyCookiesAllowed() {
+ cs.global.thirdPartyCookiesAllowed.clear({}, chrome.test.callbackPass());
},
- function getBlockThirdPartyCookies2() {
- cs.misc.blockThirdPartyCookies.get({}, chrome.test.callbackPass(
- function(block) {
+ function getThirdPartyCookiesAllowed2() {
+ cs.global.thirdPartyCookiesAllowed.get({}, chrome.test.callbackPass(
+ function(allowed) {
chrome.test.assertEq(
- block,
+ allowed,
{
- 'value': true,
+ 'value': false,
'levelOfControl': "controllable_by_this_extension"
},
"third-party cookies should be blocked");

Powered by Google App Engine
This is Rietveld 408576698