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

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

Issue 1789593002: Files app: Loading detailed information for single file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 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 | « ui/file_manager/file_manager/main.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/integration_tests/file_manager/details_panel.js
diff --git a/ui/file_manager/integration_tests/file_manager/details_panel.js b/ui/file_manager/integration_tests/file_manager/details_panel.js
index f5fd6f8ac32c59500d9acedd3756fc847afcc3a5..05440b2bb3016b27709b0ca1c14b02b67324be03 100644
--- a/ui/file_manager/integration_tests/file_manager/details_panel.js
+++ b/ui/file_manager/integration_tests/file_manager/details_panel.js
@@ -45,8 +45,7 @@ testcase.openDetailsPanelForSingleFile = function() {
},
function(result) {
chrome.test.assertFalse(result.hidden);
- remoteCall.waitForAFile('downloads',
- 'hello.txt').then(this.next);
+ remoteCall.waitForAFile('downloads', 'hello.txt').then(this.next);
},
function(result) {
remoteCall.waitForElement(appId, "#single-file-details").then(this.next);
@@ -57,3 +56,35 @@ testcase.openDetailsPanelForSingleFile = function() {
}
]);
};
+
+testcase.openSingleFileAndSeeDetailsPanel = function() {
+ var appId;
+ StepsRunner.run([
+ function() {
+ setupAndWaitUntilReady(null, RootPath.DOWNLOADS, this.next);
+ },
+ function(results) {
+ appId = results.windowId;
+ remoteCall.callRemoteTestUtil('fakeEvent',
+ appId,
+ ['#details-button', 'click'],
+ this.next);
+ },
+ function(result) {
+ remoteCall.waitForElement(appId, "#details-container").then(this.next);
+ },
+ function(result) {
+ chrome.test.assertFalse(result.hidden);
+ remoteCall.callRemoteTestUtil('selectFile', appId, ['hello.txt'],
+ this.next);
+ },
+ function(result) {
+ remoteCall.waitForElement(appId, "#single-file-details .filename")
+ .then(this.next);
+ },
+ function(result) {
+ chrome.test.assertEq('hello.txt', result.text);
+ checkIfNoErrorsOccured(this.next);
+ }
+ ]);
+};
« no previous file with comments | « ui/file_manager/file_manager/main.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698