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

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

Issue 10805064: Revert 147895 - switch mediaGalleries to .idl api definition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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/manifest.json ('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
===================================================================
--- chrome/test/data/extensions/api_test/media_galleries/test.js (revision 147896)
+++ chrome/test/data/extensions/api_test/media_galleries/test.js (working copy)
@@ -1,43 +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.
-
-var mediaGalleries = chrome.experimental.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);
-};
-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 = mediaGalleries.extractEmbeddedThumbnails({});
- chrome.test.assertEq(null, result);
- chrome.test.succeed();
- },
-
- function assembleMediaFile() {
- mediaGalleries.assembleMediaFile(
- new Blob, {},
- chrome.test.callbackPass(nullCallback));
- },
-]);
« no previous file with comments | « chrome/test/data/extensions/api_test/media_galleries/manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698