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

Unified Diff: ui/file_manager/integration_tests/file_manager/open_image_files.js

Issue 1158923004: Add support to mime types in Files app UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed tests. Created 5 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: ui/file_manager/integration_tests/file_manager/open_image_files.js
diff --git a/ui/file_manager/integration_tests/file_manager/open_image_files.js b/ui/file_manager/integration_tests/file_manager/open_image_files.js
index 5fa208b007769021bb84dc8058781b2a635d2189..f02b3fa60e14a568c290fdd5896d9714e0635b24 100644
--- a/ui/file_manager/integration_tests/file_manager/open_image_files.js
+++ b/ui/file_manager/integration_tests/file_manager/open_image_files.js
@@ -20,7 +20,7 @@ function imageOpen(path) {
TestEntryInfo.getExpectedRows(path == RootPath.DRIVE ?
BASIC_DRIVE_ENTRY_SET : BASIC_LOCAL_ENTRY_SET).sort();
var expectedFilesAfter =
- expectedFilesBefore.concat([ENTRIES.image2.getExpectedRow()]).sort();
+ expectedFilesBefore.concat([ENTRIES.image3.getExpectedRow()]).sort();
StepsRunner.run([
function() {
@@ -31,7 +31,7 @@ function imageOpen(path) {
appId = inAppId;
// Add an additional image file.
- addEntries(['local', 'drive'], [ENTRIES.image2], this.next);
+ addEntries(['local', 'drive'], [ENTRIES.image3], this.next);
},
function(result) {
chrome.test.assertTrue(result);
@@ -58,13 +58,13 @@ function imageOpen(path) {
function() {
// Open another file in Files.app.
remoteCall.callRemoteTestUtil(
- 'openFile', appId, ['image2.png'], this.next);
+ 'openFile', appId, ['image3.jpg'], this.next);
},
function(result) {
chrome.test.assertTrue(result);
// Wait for the file opened.
galleryApp.waitForSlideImage(
- galleryAppId, 1024, 768, 'image2').then(this.next);
+ galleryAppId, 640, 480, 'image3').then(this.next);
},
function() {
// Close window
« no previous file with comments | « ui/file_manager/gallery/js/gallery_util.js ('k') | ui/file_manager/integration_tests/gallery/open_image_files.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698