OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 var allTypes = { |
| 6 cache: true, |
| 7 cookies: true, |
| 8 downloads: true, |
| 9 formData: true, |
| 10 history: true, |
| 11 passwords: true |
| 12 }; |
| 13 chrome.test.runTests([ |
| 14 function testEverything() { |
| 15 chrome.experimental.clear.browsingData("everything", allTypes, |
| 16 chrome.test.callbackFail( |
| 17 'Only one \'clear\' API call can run at a time.')); |
| 18 }, |
| 19 function testClearCache() { |
| 20 chrome.experimental.clear.cache("everything", |
| 21 chrome.test.callbackFail( |
| 22 'Only one \'clear\' API call can run at a time.')); |
| 23 }, |
| 24 function testClearCookies() { |
| 25 chrome.experimental.clear.cookies("everything", |
| 26 chrome.test.callbackFail( |
| 27 'Only one \'clear\' API call can run at a time.')); |
| 28 }, |
| 29 function testClearHistory() { |
| 30 chrome.experimental.clear.history("everything", |
| 31 chrome.test.callbackFail( |
| 32 'Only one \'clear\' API call can run at a time.')); |
| 33 }, |
| 34 function testClearPasswords() { |
| 35 chrome.experimental.clear.passwords("everything", |
| 36 chrome.test.callbackFail( |
| 37 'Only one \'clear\' API call can run at a time.')); |
| 38 }, |
| 39 function testClearDownloads() { |
| 40 chrome.experimental.clear.downloads("everything", |
| 41 chrome.test.callbackFail( |
| 42 'Only one \'clear\' API call can run at a time.')); |
| 43 }, |
| 44 function testClearFormData() { |
| 45 chrome.experimental.clear.formData("everything", |
| 46 chrome.test.callbackFail( |
| 47 'Only one \'clear\' API call can run at a time.')); |
| 48 } |
| 49 ]); |
OLD | NEW |