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

Side by Side Diff: chrome/test/data/extensions/api_test/file_system_provider/get_all/test.js

Issue 703123003: [fsp] Pass more detailed errors to the providing extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a bug. Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
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
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 ]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698