Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: chrome/test/data/extensions/api_test/clear/api/background.js

Issue 8725019: Move another bunch of extension API tests to manifest_version 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 ]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698