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

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

Issue 1077823005: Declare providing extension capabilities in the manifest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed tests. Created 5 years, 7 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 913ca0ade229b29d56d97231dd6b38087eba5b9e..f40d59d77f184dc0f9c174c3d7117d79d4758da5 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
@@ -68,7 +68,6 @@ chrome.test.runTests([
{
fileSystemId: fileSystemId,
displayName: 'caramel-candy.zip',
- source: 'FILE'
},
chrome.test.callbackPass(function() {
chrome.fileManagerPrivate.getVolumeMetadataList(function(volumeList) {
@@ -137,23 +136,6 @@ chrome.test.runTests([
tryNextOne();
},
- // Tests if fileManagerPrivate.addProvidedFileSystem() fails if the extension
- // does not listen to onMountRequested() event.
- function requestMountWithoutListener() {
- chrome.fileManagerPrivate.getProvidingExtensions(
- chrome.test.callbackPass(function(extensions) {
- chrome.test.assertEq(extensions.length, 1);
- chrome.test.assertEq(chrome.runtime.id, extensions[0].extensionId);
- chrome.test.assertEq(
- chrome.runtime.getManifest().name, extensions[0].name);
- chrome.test.assertFalse(extensions[0].canConfigure);
- chrome.test.assertFalse(extensions[0].canAdd);
- }));
- chrome.fileManagerPrivate.addProvidedFileSystem(
- chrome.runtime.id,
- chrome.test.callbackFail('Failed to request a new mount.'));
- },
-
// Tests if fileManagerPrivate.addProvidedFileSystem() emits the
// onMountRequested() event.
function requestMountSuccess() {
@@ -171,8 +153,9 @@ chrome.test.runTests([
chrome.test.assertEq(chrome.runtime.id, extensions[0].extensionId);
chrome.test.assertEq(
chrome.runtime.getManifest().name, extensions[0].name);
- chrome.test.assertFalse(extensions[0].canConfigure);
- chrome.test.assertTrue(extensions[0].canAdd);
+ chrome.test.assertFalse(extensions[0].configurable);
+ chrome.test.assertTrue(extensions[0].multipleMounts);
+ chrome.test.assertEq('network', extensions[0].source);
}));
chrome.fileManagerPrivate.addProvidedFileSystem(
« no previous file with comments | « chrome/test/data/extensions/api_test/file_system_provider/mount/manifest.json ('k') | extensions/common/manifest_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698