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

Unified Diff: chrome/test/data/extensions/api_test/file_manager_browsertest/open_zip_files.js

Issue 285373015: Gallery.app: Replace the existing gallery with the new separated gallery. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove gallery tests. Created 6 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
Index: chrome/test/data/extensions/api_test/file_manager_browsertest/open_zip_files.js
diff --git a/chrome/test/data/extensions/api_test/file_manager_browsertest/open_special_types.js b/chrome/test/data/extensions/api_test/file_manager_browsertest/open_zip_files.js
similarity index 53%
rename from chrome/test/data/extensions/api_test/file_manager_browsertest/open_special_types.js
rename to chrome/test/data/extensions/api_test/file_manager_browsertest/open_zip_files.js
index 1fd97e3b3e476ad575cb9db79d897543730b129a..e86f2e6e680144d517e7b3e6e3dc2a6f0d15557a 100644
--- a/chrome/test/data/extensions/api_test/file_manager_browsertest/open_special_types.js
+++ b/chrome/test/data/extensions/api_test/file_manager_browsertest/open_zip_files.js
@@ -5,59 +5,6 @@
'use strict';
/**
- * Tests if the gallery shows up for the selected image and that the image
- * gets displayed.
- *
- * @param {string} path Directory path to be tested.
- */
-function galleryOpen(path) {
- var appId;
- StepsRunner.run([
- function() {
- setupAndWaitUntilReady(null, path, this.next);
- },
- // Resize the window to desired dimensions to avoid flakyness.
- function(inAppId) {
- appId = inAppId;
- callRemoteTestUtil('resizeWindow',
- appId,
- [480, 480],
- this.next);
- },
- // Select the image.
- function(result) {
- chrome.test.assertTrue(result);
- callRemoteTestUtil('openFile',
- appId,
- ['My Desktop Background.png'],
- this.next);
- },
- // Wait for the image in the gallery's screen image.
- function(result) {
- chrome.test.assertTrue(result);
- waitForElement(appId,
- '.gallery .content canvas.image',
- 'iframe.overlay-pane').then(this.next);
- },
- // Verify the gallery's screen image.
- function(element) {
- chrome.test.assertEq('480', element.attributes.width);
- chrome.test.assertEq('360', element.attributes.height);
- // Get the full-resolution image.
- waitForElement(appId,
- '.gallery .content canvas.fullres',
- 'iframe.overlay-pane').then(this.next);
- },
- // Verify the gallery's full resolution image.
- function(element) {
- chrome.test.assertEq('800', element.attributes.width);
- chrome.test.assertEq('600', element.attributes.height);
- checkIfNoErrorsOccured(this.next);
- }
- ]);
-}
-
-/**
* Tests if we can open and unmount a zip file.
* @param {string} path Directory path to be tested.
*/
@@ -124,14 +71,6 @@ function zipOpen(path) {
]);
}
-testcase.galleryOpenDownloads = function() {
- galleryOpen(RootPath.DOWNLOADS);
-};
-
-testcase.galleryOpenDrive = function() {
- galleryOpen(RootPath.DRIVE);
-};
-
testcase.zipOpenDownloads = function() {
zipOpen(RootPath.DOWNLOADS);
};
« no previous file with comments | « chrome/test/data/extensions/api_test/file_manager_browsertest/open_special_types.js ('k') | chromeos/chromeos_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698