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 testClearEverything() { |
| 15 chrome.experimental.clear.browsingData("everything", allTypes, |
| 16 chrome.test.callbackPass()); |
| 17 }, |
| 18 function testClearCache() { |
| 19 chrome.experimental.clear.cache( |
| 20 "everything", chrome.test.callbackPass()); |
| 21 }, |
| 22 function testClearCookies() { |
| 23 chrome.experimental.clear.cookies( |
| 24 "everything", chrome.test.callbackPass()); |
| 25 }, |
| 26 function testClearHistory() { |
| 27 chrome.experimental.clear.history( |
| 28 "everything", chrome.test.callbackPass()); |
| 29 }, |
| 30 function testClearPasswords() { |
| 31 chrome.experimental.clear.passwords( |
| 32 "everything", chrome.test.callbackPass()); |
| 33 }, |
| 34 function testClearDownloads() { |
| 35 chrome.experimental.clear.downloads( |
| 36 "everything", chrome.test.callbackPass()); |
| 37 }, |
| 38 function testClearFormData() { |
| 39 chrome.experimental.clear.formData( |
| 40 "everything", chrome.test.callbackPass()); |
| 41 } |
| 42 ]); |
OLD | NEW |