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

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

Issue 1221093002: Add support for refreshing contents of providers which don't support watchers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed tests. Created 5 years, 5 months 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 2013 The Chromium Authors. All rights reserved. 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 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 147
148 chrome.fileSystemProvider.onMountRequested.addListener( 148 chrome.fileSystemProvider.onMountRequested.addListener(
149 onMountRequested); 149 onMountRequested);
150 chrome.fileManagerPrivate.getProvidingExtensions( 150 chrome.fileManagerPrivate.getProvidingExtensions(
151 chrome.test.callbackPass(function(extensions) { 151 chrome.test.callbackPass(function(extensions) {
152 chrome.test.assertEq(extensions.length, 1); 152 chrome.test.assertEq(extensions.length, 1);
153 chrome.test.assertEq(chrome.runtime.id, extensions[0].extensionId); 153 chrome.test.assertEq(chrome.runtime.id, extensions[0].extensionId);
154 chrome.test.assertEq( 154 chrome.test.assertEq(
155 chrome.runtime.getManifest().name, extensions[0].name); 155 chrome.runtime.getManifest().name, extensions[0].name);
156 chrome.test.assertFalse(extensions[0].configurable); 156 chrome.test.assertFalse(extensions[0].configurable);
157 chrome.test.assertTrue(extensions[0].multipleMounts); 157 chrome.test.assertFalse(extensions[0].watchable);
158 chrome.test.assertFalse(extensions[0].multipleMounts);
158 chrome.test.assertEq('network', extensions[0].source); 159 chrome.test.assertEq('network', extensions[0].source);
159 })); 160 }));
160 161
161 chrome.fileManagerPrivate.addProvidedFileSystem( 162 chrome.fileManagerPrivate.addProvidedFileSystem(
162 chrome.runtime.id, 163 chrome.runtime.id,
163 chrome.test.callbackPass(function() {})); 164 chrome.test.callbackPass(function() {}));
164 } 165 }
165 ]); 166 ]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698