Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 'use strict'; | |
| 6 | |
| 7 chrome.test.runTests([ | |
| 8 // Tests if mounting succeeds when invoked from an extension. Note that all | |
| 9 // other tests are implemented as apps. | |
| 10 function mount() { | |
| 11 var onTestSuccess = chrome.test.callbackPass(); | |
| 12 chrome.fileSystemProvider.mount( | |
| 13 {fileSystemId: 'file-system-id', displayName: 'file-system-name'}, | |
| 14 function() { | |
| 15 onTestSuccess(); | |
| 16 }, | |
| 17 function(error) { | |
| 18 chrome.test.fail(); | |
| 19 }); | |
| 20 }, | |
| 21 ]); | |
| OLD | NEW |