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

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: Address comment 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 var emptyListCallback = function(results) {
7 chrome.test.assertEq(results, []);
8 };
9 var nullCallback = function(results) {
10 chrome.test.assertEq(results, null);
11 };
12
13 chrome.test.runTests([
14 function getGalleries() {
15 mediaGalleries.getMediaGalleries(
16 chrome.test.callbackPass(emptyListCallback));
17 },
18
19 function assembleMediaFile() {
20 mediaGalleries.assembleMediaFile(
21 {}, {}, chrome.test.callbackPass(nullCallback));
22 },
23
24 function parseMediaFileMetadata() {
25 mediaGalleries.parseMediaFileMetadata(
26 {}, chrome.test.callbackPass(nullCallback));
27 },
28 ]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698