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