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

Unified Diff: chrome/test/data/extensions/api_test/file_system_provider/mount/test.js

Issue 329483002: [fsp] Group arguments for API methods and events in dictionaries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleaned up. Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/api_test/file_system_provider/mount/test.js
diff --git a/chrome/test/data/extensions/api_test/file_system_provider/mount/test.js b/chrome/test/data/extensions/api_test/file_system_provider/mount/test.js
index 3f12a029b1f8412d0c5eb160d2f4ef3084b54f10..38c3a39199a2c69c3365edededde5c88a3a5a619 100644
--- a/chrome/test/data/extensions/api_test/file_system_provider/mount/test.js
+++ b/chrome/test/data/extensions/api_test/file_system_provider/mount/test.js
@@ -12,8 +12,7 @@ chrome.test.runTests([
function goodDisplayName() {
var onTestSuccess = chrome.test.callbackPass();
chrome.fileSystemProvider.mount(
- 'file-system-id',
- 'File System Name',
+ {fileSystemId: 'file-system-id', displayName: 'file-system-name'},
function() {
onTestSuccess();
},
@@ -26,8 +25,7 @@ chrome.test.runTests([
function emptyDisplayName() {
var onTestSuccess = chrome.test.callbackPass();
chrome.fileSystemProvider.mount(
- 'file-system-id',
- '',
+ {fileSystemId: 'file-system-id', displayName: ''},
function() {
chrome.test.fail();
},
@@ -40,8 +38,7 @@ chrome.test.runTests([
function emptyFileSystemId() {
var onTestSuccess = chrome.test.callbackPass();
chrome.fileSystemProvider.mount(
- '',
- 'File System Name',
+ {fileSystemId: '', displayName: 'File System Name'},
function() {
chrome.test.fail();
},
@@ -59,8 +56,7 @@ chrome.test.runTests([
var onTestSuccess = chrome.test.callbackPass();
var fileSystemId = 'caramel-candy';
chrome.fileSystemProvider.mount(
- fileSystemId,
- 'caramel-candy.zip',
+ {fileSystemId: fileSystemId, displayName: 'caramel-candy.zip'},
function() {
chrome.fileBrowserPrivate.getVolumeMetadataList(function(volumeList) {
var found = false;
@@ -93,8 +89,7 @@ chrome.test.runTests([
if (index < MAX_FILE_SYSTEMS - ALREADY_MOUNTED_FILE_SYSTEMS + 1) {
var fileSystemId = index + '-stress-test';
chrome.fileSystemProvider.mount(
- fileSystemId,
- index + 'th File System',
+ {fileSystemId: fileSystemId, displayName: index + 'th File System'},
function() {
tryNextOne();
},
@@ -103,8 +98,10 @@ chrome.test.runTests([
});
} else {
chrome.fileSystemProvider.mount(
- 'over-the-limit-fs-id',
- 'Over The Limit File System',
+ {
+ fileSystemId: 'over-the-limit-fs-id',
+ displayName: 'Over The Limit File System'
+ },
function() {
chrome.test.fail();
},

Powered by Google App Engine
This is Rietveld 408576698