chromium/chrome/test/data/chromeos/app_mode/apps_and_extensions/get_volume_list/src/background.js

// Copyright 2015 The Chromium Authors
// 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(2, volumeList.length);
          chrome.test.assertTrue(/^downloads:.*/.test(volumeList[0].volumeId));
          chrome.test.assertTrue(volumeList[0].writable);
          chrome.test.assertEq(
              'system_internal:ShareCache', volumeList[1].volumeId);
          chrome.test.assertFalse(volumeList[1].writable);
        }));
  }
]);