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

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

Issue 50703013: fileSystemProvider: First cut at implementing fileSystemProvider API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 7 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 | Annotate | Revision Log
OLDNEW
(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(fileSystemId) {
10 chrome.test.assertEq('string', typeof(fileSystemId));
11 chrome.test.assertTrue(fileSystemId != '');
12 chrome.test.succeed();
13 },
14 function(error) {
15 chrome.test.fail();
16 }
17 );
18 },
19 function emptyDisplayName() {
20 chrome.fileSystemProvider.mount(
21 '',
22 function(fileSystemId) {
23 chrome.test.fail();
24 },
25 function(error) {
26 chrome.test.assertEq('SecurityError', error.name);
27 chrome.test.succeed();
28 }
29 );
30 },
31 ]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698