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); |
}; |