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

Side by Side Diff: chrome/test/data/extensions/api_test/clear/one_at_a_time/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 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 ]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698