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

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

Issue 7298005: Expose privacy-relevant preferences via Chrome's extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing. Created 9 years, 4 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
deleted file mode 100644
index 69ffc7bf207009849c8d50729721a7046353df64..0000000000000000000000000000000000000000
--- a/chrome/test/data/extensions/api_test/content_settings/clear/test.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<script>
-// Content settings API test
-// Run with browser_tests --gtest_filter=ExtensionApiTest.ContentSettingsClear
-
-var cs = chrome.experimental.contentSettings;
-chrome.test.runTests([
- function getThirdPartyCookiesAllowed() {
- cs.global.thirdPartyCookiesAllowed.get({}, chrome.test.callbackPass(
- function(allowed) {
- chrome.test.assertEq(
- allowed,
- {
- 'value': false,
- 'levelOfControl': "controllable_by_this_extension"
- },
- "third-party cookies should be blocked");
- }));
- },
- function setThirdPartyCookiesAllowed() {
- cs.global.thirdPartyCookiesAllowed.set(
- {'value': true},
- chrome.test.callbackPass());
- },
- function clearThirdPartyCookiesAllowed() {
- cs.global.thirdPartyCookiesAllowed.clear({}, chrome.test.callbackPass());
- },
- function getThirdPartyCookiesAllowed2() {
- cs.global.thirdPartyCookiesAllowed.get({}, chrome.test.callbackPass(
- function(allowed) {
- chrome.test.assertEq(
- allowed,
- {
- 'value': false,
- 'levelOfControl': "controllable_by_this_extension"
- },
- "third-party cookies should be blocked");
- }));
- }
-]);
-</script>

Powered by Google App Engine
This is Rietveld 408576698