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

Side by Side Diff: chrome/test/data/extensions/api_test/downloads/test.js

Issue 9617010: Move chrome.downloads out of experimental to dev (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: permissions Created 8 years, 9 months 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // downloads api test 5 // downloads api test
6 // browser_tests.exe --gtest_filter=DownloadsApiTest.Downloads 6 // browser_tests.exe --gtest_filter=DownloadsApiTest.Downloads
7 7
8 // Uncomment this when the apitest is re-enabled. 8 // Uncomment this when the apitest is re-enabled.
9 // console.debug = function() {}; 9 // console.debug = function() {};
10 10
11 function debugObject(obj) { 11 function debugObject(obj) {
12 for (var property in obj) { 12 for (var property in obj) {
13 console.debug(property + ': ' + obj[property]); 13 console.debug(property + ': ' + obj[property]);
14 } 14 }
15 } 15 }
16 16
17 var downloads = chrome.experimental.downloads; 17 var downloads = {};
18 // TODO(benjhayden) Remove this when everything is out of experimental.
19 for (var name in chrome.experimental.downloads) {
20 downloads[name] = chrome.experimental.downloads[name];
21 }
22 for (var name in chrome.downloads) {
23 downloads[name] = chrome.downloads[name];
24 }
18 25
19 chrome.test.getConfig(function(testConfig) { 26 chrome.test.getConfig(function(testConfig) {
20 function getURL(path) { 27 function getURL(path) {
21 return 'http://localhost:' + testConfig.testServer.port + '/' + path; 28 return 'http://localhost:' + testConfig.testServer.port + '/' + path;
22 } 29 }
23 30
24 var nextId = 0; 31 var nextId = 0;
25 function getNextId() { 32 function getNextId() {
26 return nextId++; 33 return nextId++;
27 } 34 }
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 }, 855 },
849 856
850 function callNotifyPass() { 857 function callNotifyPass() {
851 chrome.test.notifyPass(); 858 chrome.test.notifyPass();
852 setTimeout(chrome.test.callback(function() { 859 setTimeout(chrome.test.callback(function() {
853 console.debug(''); 860 console.debug('');
854 }), 0); 861 }), 0);
855 } 862 }
856 ]); 863 ]);
857 }); 864 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698