| Index: chrome/test/data/extensions/api_test/clear/api/background.html
|
| diff --git a/chrome/test/data/extensions/api_test/clear/api/background.html b/chrome/test/data/extensions/api_test/clear/api/background.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ce65bdc478b4dc445953ae8de5def2b4264901cd
|
| --- /dev/null
|
| +++ b/chrome/test/data/extensions/api_test/clear/api/background.html
|
| @@ -0,0 +1,40 @@
|
| +<script>
|
| + var allTypes = {
|
| + cache: true,
|
| + cookies: true,
|
| + downloads: true,
|
| + formData: true,
|
| + history: true,
|
| + passwords: true
|
| + };
|
| + chrome.test.runTests([
|
| + function testClearEverything() {
|
| + chrome.experimental.clear.browsingData("everything", allTypes,
|
| + chrome.test.callbackPass());
|
| + },
|
| + function testClearCache() {
|
| + chrome.experimental.clear.cache(
|
| + "everything", chrome.test.callbackPass());
|
| + },
|
| + function testClearCookies() {
|
| + chrome.experimental.clear.cookies(
|
| + "everything", chrome.test.callbackPass());
|
| + },
|
| + function testClearHistory() {
|
| + chrome.experimental.clear.history(
|
| + "everything", chrome.test.callbackPass());
|
| + },
|
| + function testClearPasswords() {
|
| + chrome.experimental.clear.passwords(
|
| + "everything", chrome.test.callbackPass());
|
| + },
|
| + function testClearDownloads() {
|
| + chrome.experimental.clear.downloads(
|
| + "everything", chrome.test.callbackPass());
|
| + },
|
| + function testClearFormData() {
|
| + chrome.experimental.clear.formData(
|
| + "everything", chrome.test.callbackPass());
|
| + }
|
| + ]);
|
| +</script>
|
|
|