OLD | NEW |
---|---|
1 <script> | 1 <script> |
2 var allTypes = { | 2 var allTypes = { |
3 appcache: true, | |
Aaron Boodman
2011/10/12 08:20:32
API tests are really flakey and hard to work with.
Mike West
2011/12/13 11:27:23
Done.
| |
3 cache: true, | 4 cache: true, |
4 cookies: true, | 5 cookies: true, |
5 downloads: true, | 6 downloads: true, |
7 fileSystems: true, | |
6 formData: true, | 8 formData: true, |
7 history: true, | 9 history: true, |
8 passwords: true | 10 indexedDB: true, |
11 lsoData: true, | |
12 passwords: true, | |
13 webSQL: true | |
9 }; | 14 }; |
10 chrome.test.runTests([ | 15 chrome.test.runTests([ |
11 function testClearEverything() { | 16 function testClearEverything() { |
12 chrome.experimental.clear.browsingData("everything", allTypes, | 17 chrome.experimental.clear.browsingData("everything", allTypes, |
13 chrome.test.callbackPass()); | 18 chrome.test.callbackPass()); |
14 }, | 19 }, |
20 function testClearAppcache() { | |
21 chrome.experimental.clear.appcache("everything", | |
22 chrome.test.callbackPass()); | |
23 }, | |
15 function testClearCache() { | 24 function testClearCache() { |
16 chrome.experimental.clear.cache( | 25 chrome.experimental.clear.cache("everything", |
17 "everything", chrome.test.callbackPass()); | 26 chrome.test.callbackPass()); |
18 }, | 27 }, |
19 function testClearCookies() { | 28 function testClearCookies() { |
20 chrome.experimental.clear.cookies( | 29 chrome.experimental.clear.cookies("everything", |
21 "everything", chrome.test.callbackPass()); | 30 chrome.test.callbackPass()); |
31 }, | |
32 function testClearFileSystem() { | |
33 chrome.experimental.clear.fileSystems("everything", | |
34 chrome.test.callbackPass()); | |
35 }, | |
36 function testClearFormData() { | |
37 chrome.experimental.clear.formData("everything", | |
38 chrome.test.callbackPass()); | |
22 }, | 39 }, |
23 function testClearHistory() { | 40 function testClearHistory() { |
24 chrome.experimental.clear.history( | 41 chrome.experimental.clear.history("everything", |
25 "everything", chrome.test.callbackPass()); | 42 chrome.test.callbackPass()); |
43 }, | |
44 function testClearIndexedDB() { | |
45 chrome.experimental.clear.indexedDB("everything", | |
46 chrome.test.callbackPass()); | |
47 }, | |
48 function testClearLocalStorage() { | |
49 chrome.experimental.clear.localStorage("everything", | |
50 chrome.test.callbackPass()); | |
51 }, | |
52 function testClearLSOData() { | |
53 chrome.experimental.clear.lsoData("everything", | |
54 chrome.test.callbackPass()); | |
26 }, | 55 }, |
27 function testClearPasswords() { | 56 function testClearPasswords() { |
28 chrome.experimental.clear.passwords( | 57 chrome.experimental.clear.passwords("everything", |
29 "everything", chrome.test.callbackPass()); | 58 chrome.test.callbackPass()); |
30 }, | 59 }, |
31 function testClearDownloads() { | 60 function testClearWebSQL() { |
32 chrome.experimental.clear.downloads( | 61 chrome.experimental.clear.webSQL("everything", |
33 "everything", chrome.test.callbackPass()); | 62 chrome.test.callbackPass()); |
34 }, | |
35 function testClearFormData() { | |
36 chrome.experimental.clear.formData( | |
37 "everything", chrome.test.callbackPass()); | |
38 } | 63 } |
39 ]); | 64 ]); |
40 </script> | 65 </script> |
OLD | NEW |