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

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

Issue 209663006: [fsp] Simplify ID of provided file systems. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments. Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/api/file_system_provider.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1912d390c2ea6b1a71a8147ab6596313ad907314..b5566d5c1c35a85563aae8cbbdf1f095ebbc2e55 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
@@ -7,8 +7,8 @@ chrome.test.runTests([
chrome.fileSystemProvider.mount(
'test file system',
function(fileSystemId) {
- chrome.test.assertEq('string', typeof(fileSystemId));
- chrome.test.assertTrue(fileSystemId != '');
+ chrome.test.assertEq('number', typeof(fileSystemId));
+ chrome.test.assertTrue(fileSystemId == 1);
chrome.test.succeed();
},
function(error) {
@@ -34,10 +34,11 @@ chrome.test.runTests([
chrome.fileSystemProvider.mount(
'caramel-candy.zip',
function(fileSystemId) {
- chrome.test.assertTrue(fileSystemId != '');
+ chrome.test.assertTrue(fileSystemId > 0);
chrome.fileBrowserPrivate.getVolumeMetadataList(function(volumeList) {
var found = volumeList.filter(function(volumeInfo) {
- return volumeInfo.volumeId == 'provided:' + fileSystemId;
+ return volumeInfo.volumeId ==
+ 'provided:' + chrome.runtime.id + '-' + fileSystemId + '-user';
});
chrome.test.assertEq(1, found.length);
chrome.test.succeed();
@@ -61,7 +62,7 @@ chrome.test.runTests([
chrome.fileSystemProvider.mount(
index + 'th file system',
function(fileSystemId) {
- chrome.test.assertTrue(fileSystemId != '');
+ chrome.test.assertTrue(fileSystemId > 0);
tryNextOne();
},
chrome.test.fail);
« no previous file with comments | « chrome/common/extensions/api/file_system_provider.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698