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

Unified Diff: chrome/test/data/extensions/api_test/media_galleries/test.js

Issue 10822002: Media Galleries API: hookup the AllGalleries permission and add tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/extensions/api_test/media_galleries/read_access/test.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/media_galleries/test.js
diff --git a/chrome/test/data/extensions/api_test/media_galleries/test.js b/chrome/test/data/extensions/api_test/media_galleries/test.js
deleted file mode 100644
index 734a7550b8a66eab4cc21ccedacf8af0f79fc706..0000000000000000000000000000000000000000
--- a/chrome/test/data/extensions/api_test/media_galleries/test.js
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-chrome.experimental.app.onLaunched.addListener(function() {
- var experimentalMediaGalleries = chrome.experimental.mediaGalleries;
- var mediaGalleries = chrome.mediaGalleries;
- var mediaFileSystemsListCallback = function(results) {
- // There should be a "Pictures" directory on all desktop platforms.
- var expectedFileSystems = 1;
- // But not on Android and ChromeOS.
- if (/Android/.test(navigator.userAgent) || /CrOS/.test(navigator.userAgent))
- expectedFileSystems = 0;
- chrome.test.assertEq(expectedFileSystems, results.length);
- // TODO(vandebo) Test that we can read from the file system object.
- };
- var nullCallback = function(result) {
- chrome.test.assertEq(null, result);
- };
-
- function runTests(tests) {
- chrome.test.getConfig(function(config) {
- operatingSystem = config.osName;
- chrome.test.runTests(tests);
- });
- }
-
- chrome.test.runTests([
- function getGalleries() {
- mediaGalleries.getMediaFileSystems(
- chrome.test.callbackPass(mediaFileSystemsListCallback));
- },
-
- function extractEmbeddedThumbnails() {
- var result = experimentalMediaGalleries.extractEmbeddedThumbnails({});
- chrome.test.assertEq(null, result);
- chrome.test.succeed();
- },
-
- function assembleMediaFile() {
- experimentalMediaGalleries.assembleMediaFile(
- new Blob, {},
- chrome.test.callbackPass(nullCallback));
- },
- ]);
-});
« no previous file with comments | « chrome/test/data/extensions/api_test/media_galleries/read_access/test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698