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

Unified Diff: chrome/test/data/extensions/api_test/media_galleries/no_access/test.js

Issue 24420003: Media Galleries: Run API tests in a temp directory with an injected common.js file. Avoid the need … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make it more obvious there's a JS file being injected into the test cases (try 2) Created 7 years, 3 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/test/data/extensions/api_test/media_galleries/no_access/manifest.json ('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_galleries/no_access/test.js
diff --git a/chrome/test/data/extensions/api_test/media_galleries/no_access/test.js b/chrome/test/data/extensions/api_test/media_galleries/no_access/test.js
index e6f959902549a3231ef26ebec5205fa339c30120..7b74cf4986e6d2693f26023de4ca5a1055e5614b 100644
--- a/chrome/test/data/extensions/api_test/media_galleries/no_access/test.js
+++ b/chrome/test/data/extensions/api_test/media_galleries/no_access/test.js
@@ -38,6 +38,8 @@ var mediaFileSystemsListCallback = function(results) {
galleries = results;
};
+CreateDummyWindowToPreventSleep();
+
chrome.test.getConfig(function(config) {
customArg = JSON.parse(config.customArg);
expectedFileSystems = customArg[0];
@@ -49,17 +51,17 @@ chrome.test.getConfig(function(config) {
},
function testGalleries() {
chrome.test.assertEq(expectedFileSystems, galleries.length);
- if (expectedFileSystems == 0) {
- chrome.test.succeed();
- return;
- }
-
for (var i = 0; i < galleries.length; i++) {
var dirReader = galleries[i].root.createReader();
dirReader.readEntries(mediaFileSystemsDirectoryEntryCallback,
mediaFileSystemsDirectoryErrorCallback);
}
},
-
+ function validFileCopyToShouldFail() {
+ runCopyToTest(validWEBPImageCase, false /* expect failure */);
+ },
+ function invalidFileCopyToShouldFail() {
+ runCopyToTest(invalidWEBPImageCase, false /* expect failure */);
+ },
]);
})
« no previous file with comments | « chrome/test/data/extensions/api_test/media_galleries/no_access/manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698