OLD | NEW |
| (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 ]); | |
OLD | NEW |