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

Unified Diff: chrome/test/data/extensions/api_test/file_system/get_volume_list_not_kiosk_session/background.js

Issue 1029803004: Add chrome.fileSystem.GetVolumeList(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed chrome_extensions.js. Created 5 years, 8 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/get_volume_list_not_kiosk_session/background.js
diff --git a/chrome/test/data/extensions/api_test/file_system/request_file_system_not_kiosk_session/test.js b/chrome/test/data/extensions/api_test/file_system/get_volume_list_not_kiosk_session/background.js
similarity index 55%
copy from chrome/test/data/extensions/api_test/file_system/request_file_system_not_kiosk_session/test.js
copy to chrome/test/data/extensions/api_test/file_system/get_volume_list_not_kiosk_session/background.js
index c382827dc7c5a6f68c74dd5433b8e034c695e5d6..dcca20fde94900f0f84275ef11d840190a0ec389 100644
--- a/chrome/test/data/extensions/api_test/file_system/request_file_system_not_kiosk_session/test.js
+++ b/chrome/test/data/extensions/api_test/file_system/get_volume_list_not_kiosk_session/background.js
@@ -3,10 +3,12 @@
// found in the LICENSE file.
chrome.test.runTests([
- function readOnlyVolume() {
- chrome.fileSystem.requestFileSystem(
- {volumeId: 'testing:read-only'},
+ function getVolumeList() {
+ chrome.fileSystem.getVolumeList(
chrome.test.callbackFail('Operation only supported for kiosk apps ' +
- 'running in a kiosk session.', function(fs) {}));
- },
+ 'running in a kiosk session.',
+ function(volumeList) {
+ chrome.test.assertFalse(!!volumeList);
+ }));
+ }
]);

Powered by Google App Engine
This is Rietveld 408576698