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

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: 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(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 ]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698