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

Unified Diff: chrome/test/data/extensions/api_test/file_system_provider/extension/test.js

Issue 527663002: [fsp] Enable the File System Provider API for extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 6 years, 3 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
« no previous file with comments | « chrome/test/data/extensions/api_test/file_system_provider/extension/manifest.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
+ });
+ },
+]);
« no previous file with comments | « chrome/test/data/extensions/api_test/file_system_provider/extension/manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698