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

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

Issue 24356005: Simplify the MediaGalleriesPlatformAppBrowserTest copyTo tests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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/copy_to_access/no_access/test.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_galleries/copy_to_access/test.js
===================================================================
--- chrome/test/data/extensions/api_test/media_galleries/copy_to_access/test.js (revision 224775)
+++ chrome/test/data/extensions/api_test/media_galleries/copy_to_access/test.js (working copy)
@@ -2,8 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+CreateDummyWindowToPreventSleep();
+
chrome.test.runTests([
- createTest(validCase, getOnwriteendCallbackExpectSuccess),
- createTest(invalidCase, getOnwriteendCallbackExpectFailure)
+ function validFileCopyToShouldSucceed() {
+ runCopyToTest(validWEBPImageCase, true /* expect success */);
+ },
+ function invalidFileCopyToShouldFail() {
+ runCopyToTest(invalidWEBPImageCase, false /* expect failure */);
+ },
]);
« no previous file with comments | « chrome/test/data/extensions/api_test/media_galleries/copy_to_access/no_access/test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698