| Index: chrome/test/data/extensions/api_test/preference/clear/test.html
|
| diff --git a/chrome/test/data/extensions/api_test/content_settings/clear/test.html b/chrome/test/data/extensions/api_test/preference/clear/test.html
|
| similarity index 69%
|
| rename from chrome/test/data/extensions/api_test/content_settings/clear/test.html
|
| rename to chrome/test/data/extensions/api_test/preference/clear/test.html
|
| index 69ffc7bf207009849c8d50729721a7046353df64..6e97d101d7c365a2c9ce64723fa9947260d6aa57 100644
|
| --- a/chrome/test/data/extensions/api_test/content_settings/clear/test.html
|
| +++ b/chrome/test/data/extensions/api_test/preference/clear/test.html
|
| @@ -1,11 +1,11 @@
|
| <script>
|
| // Content settings API test
|
| -// Run with browser_tests --gtest_filter=ExtensionApiTest.ContentSettingsClear
|
| +// Run with browser_tests --gtest_filter=ExtensionApiTest.PreferenceClear
|
|
|
| -var cs = chrome.experimental.contentSettings;
|
| +var pw = chrome.experimental.privacy.websites;
|
| chrome.test.runTests([
|
| function getThirdPartyCookiesAllowed() {
|
| - cs.global.thirdPartyCookiesAllowed.get({}, chrome.test.callbackPass(
|
| + pw.thirdPartyCookiesAllowed.get({}, chrome.test.callbackPass(
|
| function(allowed) {
|
| chrome.test.assertEq(
|
| allowed,
|
| @@ -17,15 +17,15 @@ chrome.test.runTests([
|
| }));
|
| },
|
| function setThirdPartyCookiesAllowed() {
|
| - cs.global.thirdPartyCookiesAllowed.set(
|
| + pw.thirdPartyCookiesAllowed.set(
|
| {'value': true},
|
| chrome.test.callbackPass());
|
| },
|
| function clearThirdPartyCookiesAllowed() {
|
| - cs.global.thirdPartyCookiesAllowed.clear({}, chrome.test.callbackPass());
|
| + pw.thirdPartyCookiesAllowed.clear({}, chrome.test.callbackPass());
|
| },
|
| function getThirdPartyCookiesAllowed2() {
|
| - cs.global.thirdPartyCookiesAllowed.get({}, chrome.test.callbackPass(
|
| + pw.thirdPartyCookiesAllowed.get({}, chrome.test.callbackPass(
|
| function(allowed) {
|
| chrome.test.assertEq(
|
| allowed,
|
|
|