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

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

Issue 9358076: Initial extension bindings for Media Gallery API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 9 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 mediaGalleries = chrome.experimental.mediaGalleries;
6
7 chrome.test.runTests([
8 function getGalleries() {
9 mediaGalleries.getMediaGalleries(
10 chrome.test.callbackPass(function(results) {
11 chrome.test.assertEq(results, []);
jstritar 2012/03/21 00:02:02 nit: for each of these, I think the body of callba
vandebo (ex-Chrome) 2012/03/21 16:17:57 Hmm, that looks a bit strange to me... instead I p
12 }));
13 },
14
15 function assembleMediaFile() {
16 mediaGalleries.assembleMediaFile(
17 {},
18 {},
19 chrome.test.callbackPass(function(result) {
20 chrome.test.assertEq(result, null);
21 }));
22 },
23
24 function parseMediaFileMetadata() {
25 mediaGalleries.parseMediaFileMetadata(
26 {},
27 chrome.test.callbackPass(function(result) {
28 chrome.test.assertEq(result, null);
29 }));
30 },
31 ]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698