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

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

Issue 304683002: Add the browser test for the new gallery. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed. Created 6 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: chrome/test/data/extensions/api_test/file_manager_browsertest/traverse.js
diff --git a/chrome/test/data/extensions/api_test/file_manager_browsertest/traverse.js b/chrome/test/data/extensions/api_test/file_manager_browsertest/traverse.js
deleted file mode 100644
index 8f23cbac928ae5fa07a1e0498577e36d63aff67c..0000000000000000000000000000000000000000
--- a/chrome/test/data/extensions/api_test/file_manager_browsertest/traverse.js
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright (c) 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-'use strict';
-
-/**
- * Test utility for traverse tests.
- * @param {string} path Root path to be traversed.
- */
-function traverseDirectories(path) {
- var appId;
- StepsRunner.run([
- // Set up File Manager. Do not add initial files.
- function() {
- openNewWindow(null, path, this.next);
- },
- // Check the initial view.
- function(inAppId) {
- appId = inAppId;
- waitForElement(appId, '#detail-table').then(this.next);
- },
- function() {
- addEntries(['local', 'drive'], NESTED_ENTRY_SET, this.next);
- },
- function(result) {
- chrome.test.assertTrue(result);
- waitForFiles(appId, [ENTRIES.directoryA.getExpectedRow()]).
- then(this.next);
- },
- // Open the directory
- function() {
- callRemoteTestUtil('openFile', appId, ['A'], this.next);
- },
- // Check the contents of current directory.
- function(result) {
- chrome.test.assertTrue(result);
- waitForFiles(appId, [ENTRIES.directoryB.getExpectedRow()]).
- then(this.next);
- },
- // Open the directory
- function() {
- callRemoteTestUtil('openFile', appId, ['B'], this.next);
- },
- // Check the contents of current directory.
- function(result) {
- chrome.test.assertTrue(result);
- waitForFiles(appId, [ENTRIES.directoryC.getExpectedRow()]).
- then(this.next);
- },
- // Check the error.
- function() {
- checkIfNoErrorsOccured(this.next);
- }
- ]);
-}
-
-/**
- * Tests to traverse local directories.
- */
-testcase.traverseDownloads = function() {
- traverseDirectories(RootPath.DOWNLOADS);
-};
-
-/**
- * Tests to traverse drive directories.
- */
-testcase.traverseDrive = function() {
- traverseDirectories(RootPath.DRIVE);
-};

Powered by Google App Engine
This is Rietveld 408576698