| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 'use strict'; | 5 'use strict'; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * Runs all of the test cases, one by one. | 8 * Runs all of the test cases, one by one. |
| 9 */ | 9 */ |
| 10 chrome.test.runTests([ | 10 chrome.test.runTests([ |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 chrome.test.assertEq(0, fileSystems.length); | 39 chrome.test.assertEq(0, fileSystems.length); |
| 40 })); | 40 })); |
| 41 })); | 41 })); |
| 42 }, | 42 }, |
| 43 | 43 |
| 44 // Verifies that if mounting fails, then the file system is not added to the | 44 // Verifies that if mounting fails, then the file system is not added to the |
| 45 // getAll() list. | 45 // getAll() list. |
| 46 function mountError() { | 46 function mountError() { |
| 47 chrome.fileSystemProvider.mount( | 47 chrome.fileSystemProvider.mount( |
| 48 {fileSystemId: '', displayName: ''}, | 48 {fileSystemId: '', displayName: ''}, |
| 49 chrome.test.callbackFail('SECURITY', function() { | 49 chrome.test.callbackFail('INVALID_OPERATION', function() { |
| 50 chrome.fileSystemProvider.getAll(chrome.test.callbackPass( | 50 chrome.fileSystemProvider.getAll(chrome.test.callbackPass( |
| 51 function(fileSystems) { | 51 function(fileSystems) { |
| 52 chrome.test.assertEq(0, fileSystems.length); | 52 chrome.test.assertEq(0, fileSystems.length); |
| 53 })); | 53 })); |
| 54 })); | 54 })); |
| 55 } | 55 } |
| 56 ]); | 56 ]); |
| OLD | NEW |