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

Side by Side Diff: chrome/test/data/extensions/api_test/media_galleries/experimental/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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 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 var experimentalMediaGalleries = chrome.experimental.mediaGalleries;
6
7 var nullCallback = function(result) {
8 chrome.test.assertEq(null, result);
9 };
10
11 chrome.test.runTests([
12 function extractEmbeddedThumbnails() {
13 var result = experimentalMediaGalleries.extractEmbeddedThumbnails({});
14 chrome.test.assertEq(null, result);
15 chrome.test.succeed();
16 },
17
18 function assembleMediaFile() {
19 experimentalMediaGalleries.assembleMediaFile(
20 new Blob, {},
21 chrome.test.callbackPass(nullCallback));
22 },
23 ]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698