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

Unified Diff: chrome/test/data/chromeos/app_mode/get_volume_list/src/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/chromeos/app_mode/get_volume_list/src/background.js
diff --git a/chrome/test/data/chromeos/app_mode/get_volume_list/src/background.js b/chrome/test/data/chromeos/app_mode/get_volume_list/src/background.js
new file mode 100644
index 0000000000000000000000000000000000000000..c9447e8c1de52d13c9198ab05e501190562b62fa
--- /dev/null
+++ b/chrome/test/data/chromeos/app_mode/get_volume_list/src/background.js
@@ -0,0 +1,15 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+chrome.test.runTests([
+ function getVolumeList() {
+ chrome.fileSystem.getVolumeList(
+ chrome.test.callbackPass(function(volumeList) {
+ // Drive is not exposed in kiosk session.
+ chrome.test.assertEq(1, volumeList.length);
+ chrome.test.assertEq('downloads:Downloads', volumeList[0].volumeId);
+ chrome.test.assertTrue(volumeList[0].writable);
+ }));
+ }
+]);

Powered by Google App Engine
This is Rietveld 408576698