OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 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 chrome.test.runTests([ |
| 6 function goodDisplayName() { |
| 7 chrome.fileSystemProvider.mount( |
| 8 'test file system', |
| 9 function(error, fileSystemId) { |
| 10 chrome.test.assertEq('OK', error.name); |
| 11 chrome.test.assertTrue(fileSystemId != ''); |
| 12 chrome.test.succeed(); |
| 13 } |
| 14 ); |
| 15 }, |
| 16 function emptyDisplayName() { |
| 17 chrome.fileSystemProvider.mount( |
| 18 '', |
| 19 function(error, fileSystemId) { |
| 20 chrome.test.assertEq('SecurityError', error.name); |
| 21 chrome.test.succeed(); |
| 22 } |
| 23 ); |
| 24 }, |
| 25 ]); |
OLD | NEW |