| Index: chrome/test/data/extensions/api_test/file_system_provider/mount/test.js
|
| diff --git a/chrome/test/data/extensions/api_test/file_system_provider/mount/test.js b/chrome/test/data/extensions/api_test/file_system_provider/mount/test.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..48788bfec8e9bfa8bd48cc5d1d07dab034a1bd39
|
| --- /dev/null
|
| +++ b/chrome/test/data/extensions/api_test/file_system_provider/mount/test.js
|
| @@ -0,0 +1,25 @@
|
| +// Copyright 2013 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 goodDisplayName() {
|
| + chrome.fileSystemProvider.mount(
|
| + 'test file system',
|
| + function(error, fileSystemId) {
|
| + chrome.test.assertEq('OK', error.name);
|
| + chrome.test.assertTrue(fileSystemId != '');
|
| + chrome.test.succeed();
|
| + }
|
| + );
|
| + },
|
| + function emptyDisplayName() {
|
| + chrome.fileSystemProvider.mount(
|
| + '',
|
| + function(error, fileSystemId) {
|
| + chrome.test.assertEq('SecurityError', error.name);
|
| + chrome.test.succeed();
|
| + }
|
| + );
|
| + },
|
| +]);
|
|
|