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