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

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

Issue 144783002: Simplify directory initialization in Files app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed. Created 6 years, 11 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/test_cases.js
diff --git a/chrome/test/data/extensions/api_test/file_manager_browsertest/test_cases.js b/chrome/test/data/extensions/api_test/file_manager_browsertest/test_cases.js
index 3d8b6bf666c52716c25a0071c07123471024e95f..870aa0c6bb61885468cb462bb7d7816079e24f2e 100644
--- a/chrome/test/data/extensions/api_test/file_manager_browsertest/test_cases.js
+++ b/chrome/test/data/extensions/api_test/file_manager_browsertest/test_cases.js
@@ -320,7 +320,7 @@ testcase.intermediate.fileDisplay = function(path) {
StepsRunner.run([
function() {
- var appState = {defaultPath: path};
+ var appState = {currentDirectoryPath: path};
setupAndWaitUntilReady(appState, this.next);
},
// Notify that the list has been verified and a new file can be added
@@ -356,7 +356,7 @@ testcase.intermediate.galleryOpen = function(path) {
var appId;
StepsRunner.run([
function() {
- var appState = {defaultPath: path};
+ var appState = {currentDirectoryPath: path};
setupAndWaitUntilReady(appState, this.next);
},
// Resize the window to desired dimensions to avoid flakyness.
@@ -415,7 +415,7 @@ testcase.intermediate.audioOpen = function(path) {
var audioAppId;
StepsRunner.run([
function() {
- var appState = {defaultPath: path};
+ var appState = {currentDirectoryPath: path};
setupAndWaitUntilReady(appState, this.next);
},
// Select the song.
@@ -478,7 +478,7 @@ testcase.intermediate.videoOpen = function(path) {
var videoAppId;
StepsRunner.run([
function() {
- var appState = {defaultPath: path};
+ var appState = {currentDirectoryPath: path};
setupAndWaitUntilReady(appState, this.next);
},
function(inAppId) {
@@ -539,7 +539,7 @@ testcase.intermediate.keyboardCopy = function(path, callback) {
StepsRunner.run([
// Set up File Manager.
function() {
- var appState = {defaultPath: path};
+ var appState = {currentDirectoryPath: path};
setupAndWaitUntilReady(appState, this.next);
},
// Copy the file.
@@ -585,7 +585,7 @@ testcase.intermediate.keyboardDelete = function(path) {
StepsRunner.run([
// Set up File Manager.
function() {
- var appState = {defaultPath: path};
+ var appState = {currentDirectoryPath: path};
setupAndWaitUntilReady(appState, this.next);
},
// Delete the file.
@@ -692,7 +692,7 @@ testcase.openSidebarRecent = function() {
var appId;
StepsRunner.run([
function() {
- var appState = {defaultPath: '/drive/root'};
+ var appState = {currentDirectoryPath: '/drive/root'};
setupAndWaitUntilReady(appState, this.next);
},
// Click the icon of the Recent volume.
@@ -730,7 +730,7 @@ testcase.openSidebarOffline = function() {
var appId;
StepsRunner.run([
function() {
- var appState = {defaultPath: '/drive/root/'};
+ var appState = {currentDirectoryPath: '/drive/root/'};
setupAndWaitUntilReady(appState, this.next);
},
// Click the icon of the Offline volume.
@@ -767,7 +767,7 @@ testcase.openSidebarSharedWithMe = function() {
var appId;
StepsRunner.run([
function() {
- var appState = {defaultPath: '/drive/root/'};
+ var appState = {currentDirectoryPath: '/drive/root/'};
setupAndWaitUntilReady(appState, this.next);
},
// Click the icon of the Shared With Me volume.
@@ -809,7 +809,7 @@ testcase.autocomplete = function() {
StepsRunner.run([
function() {
- var appState = {defaultPath: '/drive/root'};
+ var appState = {currentDirectoryPath: '/drive/root'};
setupAndWaitUntilReady(appState, this.next);
},
// Perform an auto complete test and wait until the list changes.
@@ -851,7 +851,7 @@ testcase.intermediate.copyBetweenVolumes = function(targetFile,
StepsRunner.run([
// Set up File Manager.
function() {
- var appState = {defaultPath: '/Downloads'};
+ var appState = {currentDirectoryPath: '/Downloads'};
setupAndWaitUntilReady(appState, this.next);
},
// Select the source volume.
@@ -949,7 +949,7 @@ testcase.intermediate.share = function(path) {
StepsRunner.run([
// Set up File Manager.
function() {
- var appState = {defaultPath: '/drive/root/'};
+ var appState = {currentDirectoryPath: '/drive/root/'};
setupAndWaitUntilReady(appState, this.next);
},
// Select the source file.
@@ -1027,7 +1027,7 @@ testcase.intermediate.traverseDirectories = function(root) {
StepsRunner.run([
// Set up File Manager.
function() {
- var appState = {defaultPath: root};
+ var appState = {currentDirectoryPath: root};
callRemoteTestUtil('openMainWindow', null, [appState], this.next);
},
// Check the initial view.
@@ -1194,7 +1194,7 @@ testcase.intermediate.executeDefaultTask = function(drive) {
// Set up File Manager.
function() {
var appState = {
- defaultPath: root
+ currentDirectoryPath: root
};
setupAndWaitUntilReady(appState, this.next);
},
@@ -1264,7 +1264,7 @@ testcase.suggestAppDialog = function() {
var data = JSON.parse(json);
var appState = {
- defaultPath: '/drive/root',
+ currentDirectoryPath: '/drive/root',
suggestAppsDialogState: {
overrideCwsContainerUrlForTest: data.url,
overrideCwsContainerOriginForTest: data.origin
@@ -1378,7 +1378,7 @@ testcase.hideSearchBox = function() {
StepsRunner.run([
// Set up File Manager.
function() {
- var appState = {defaultPath: '/Downloads'};
+ var appState = {currentDirectoryPath: '/Downloads'};
setupAndWaitUntilReady(appState, this.next);
},
// Resize the window.
@@ -1419,7 +1419,7 @@ testcase.restoreSortColumn = function() {
StepsRunner.run([
// Set up File Manager.
function() {
- var appState = {defaultPath: '/Downloads'};
+ var appState = {currentDirectoryPath: '/Downloads'};
setupAndWaitUntilReady(appState, this.next);
},
// Sort by name.
@@ -1460,7 +1460,7 @@ testcase.restoreSortColumn = function() {
},
// Open another window, where the sorted column should be restored.
function() {
- var appState = {defaultPath: '/Downloads'};
+ var appState = {currentDirectoryPath: '/Downloads'};
setupAndWaitUntilReady(appState, this.next);
},
// Check the sorted style of the header.
@@ -1493,7 +1493,7 @@ testcase.restoreCurrentView = function() {
StepsRunner.run([
// Set up File Manager.
function() {
- var appState = {defaultPath: '/Downloads'};
+ var appState = {currentDirectoryPath: '/Downloads'};
setupAndWaitUntilReady(appState, this.next);
},
// Check the initial view.
@@ -1528,7 +1528,7 @@ testcase.restoreCurrentView = function() {
},
// Open another window, where the current view is restored.
function() {
- var appState = {defaultPath: '/Downloads'};
+ var appState = {currentDirectoryPath: '/Downloads'};
callRemoteTestUtil('openMainWindow', null, [appState], this.next);
},
// Check the current view.
@@ -1554,7 +1554,7 @@ testcase.traverseNavigationList = function() {
StepsRunner.run([
// Set up File Manager.
function() {
- var appState = {defaultPath: '/drive/root'};
+ var appState = {currentDirectoryPath: '/drive/root'};
setupAndWaitUntilReady(appState, this.next);
},
// Wait until Google Drive is selected.
@@ -1650,7 +1650,7 @@ testcase.restoreGeometry = function() {
StepsRunner.run([
// Set up File Manager.
function() {
- var appState = {defaultPath: '/Downloads'};
+ var appState = {currentDirectoryPath: '/Downloads'};
setupAndWaitUntilReady(appState, this.next);
},
// Resize the window to minimal dimensions.
@@ -1680,7 +1680,7 @@ testcase.restoreGeometry = function() {
},
// Open another window, where the current view is restored.
function() {
- var appState = {defaultPath: '/Downloads'};
+ var appState = {currentDirectoryPath: '/Downloads'};
setupAndWaitUntilReady(appState, this.next);
},
// Check the next window's size.
@@ -1718,7 +1718,7 @@ testcase.searchBoxFocus = function() {
StepsRunner.run([
// Set up File Manager.
function() {
- var appState = {defaultPath: '/drive/root'};
+ var appState = {currentDirectoryPath: '/drive/root'};
setupAndWaitUntilReady(appState, this.next);
},
// Check that the file list has the focus on launch.
@@ -1768,7 +1768,7 @@ testcase.thumbnailsDownloads = function() {
var appId;
StepsRunner.run([
function() {
- var appState = {defaultPath: '/Downloads'};
+ var appState = {currentDirectoryPath: '/Downloads'};
setupAndWaitUntilReady(appState, this.next);
},
// Select the image.

Powered by Google App Engine
This is Rietveld 408576698