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

Side by Side Diff: chrome/test/data/extensions/api_test/clear/one_at_a_time/background.html

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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698