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

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

Issue 10409084: Media Gallery: Implement a basic version of GetMediaFileSystems(). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix tests Created 8 years, 7 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/renderer/resources/extensions/experimental.media_galleries_custom_bindings.js ('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_gallery/test.js
===================================================================
--- chrome/test/data/extensions/api_test/media_gallery/test.js (revision 139354)
+++ chrome/test/data/extensions/api_test/media_gallery/test.js (working copy)
@@ -4,10 +4,11 @@
var mediaGalleries = chrome.experimental.mediaGalleries;
var emptyListCallback = function(results) {
vandebo (ex-Chrome) 2012/05/31 04:10:39 nit: change the name of the function.
Lei Zhang 2012/05/31 08:32:38 Done.
- chrome.test.assertEq(results, []);
+ // There should be a "Pictures" directory on all desktop platforms.
+ chrome.test.assertEq(1, results.length);
};
var nullCallback = function(result) {
- chrome.test.assertEq(result, null);
+ chrome.test.assertEq(null, result);
};
chrome.test.runTests([
@@ -24,7 +25,7 @@
function extractEmbeddedThumbnails() {
var result = mediaGalleries.extractEmbeddedThumbnails({});
- chrome.test.assertEq(result, null);
+ chrome.test.assertEq(null, result);
chrome.test.succeed()
},
« no previous file with comments | « chrome/renderer/resources/extensions/experimental.media_galleries_custom_bindings.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698