Index: chrome/test/data/extensions/api_test/file_system_provider/extension/test.js |
diff --git a/chrome/test/data/extensions/api_test/file_system_provider/extension/test.js b/chrome/test/data/extensions/api_test/file_system_provider/extension/test.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e734b8b683445c0df3aa6586f0af70c4d769b240 |
--- /dev/null |
+++ b/chrome/test/data/extensions/api_test/file_system_provider/extension/test.js |
@@ -0,0 +1,21 @@ |
+// Copyright 2014 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. |
+ |
+'use strict'; |
+ |
+chrome.test.runTests([ |
+ // Tests if mounting succeeds when invoked from an extension. Note that all |
+ // other tests are implemented as apps. |
+ function mount() { |
+ var onTestSuccess = chrome.test.callbackPass(); |
+ chrome.fileSystemProvider.mount( |
+ {fileSystemId: 'file-system-id', displayName: 'file-system-name'}, |
+ function() { |
+ onTestSuccess(); |
+ }, |
+ function(error) { |
+ chrome.test.fail(); |
+ }); |
+ }, |
+]); |