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

Unified Diff: chrome/test/data/extensions/api_test/file_manager_browsertest/file_display.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/file_display.js
diff --git a/chrome/test/data/extensions/api_test/file_manager_browsertest/file_display.js b/chrome/test/data/extensions/api_test/file_manager_browsertest/file_display.js
deleted file mode 100644
index e9eb41dbd87392c90ddf7e83f77dde46db615a99..0000000000000000000000000000000000000000
--- a/chrome/test/data/extensions/api_test/file_manager_browsertest/file_display.js
+++ /dev/null
@@ -1,52 +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';
-
-/**
- * Tests if the files initially added by the C++ side are displayed, and
- * that a subsequently added file shows up.
- *
- * @param {string} path Directory path to be tested.
- */
-function fileDisplay(path) {
- var appId;
-
- var expectedFilesBefore =
- TestEntryInfo.getExpectedRows(path == RootPath.DRIVE ?
- BASIC_DRIVE_ENTRY_SET : BASIC_LOCAL_ENTRY_SET).sort();
-
- var expectedFilesAfter =
- expectedFilesBefore.concat([ENTRIES.newlyAdded.getExpectedRow()]).sort();
-
- StepsRunner.run([
- function() {
- setupAndWaitUntilReady(null, path, this.next);
- },
- // Notify that the list has been verified and a new file can be added
- // in file_manager_browsertest.cc.
- function(inAppId, actualFilesBefore) {
- appId = inAppId;
- chrome.test.assertEq(expectedFilesBefore, actualFilesBefore);
- addEntries(['local', 'drive'], [ENTRIES.newlyAdded], this.next);
- },
- function(result) {
- chrome.test.assertTrue(result);
- waitForFileListChange(appId, expectedFilesBefore.length).then(this.next);
- },
- // Confirm the file list.
- function(actualFilesAfter) {
- chrome.test.assertEq(expectedFilesAfter, actualFilesAfter);
- checkIfNoErrorsOccured(this.next);
- },
- ]);
-}
-
-testcase.fileDisplayDownloads = function() {
- fileDisplay(RootPath.DOWNLOADS);
-};
-
-testcase.fileDisplayDrive = function() {
- fileDisplay(RootPath.DRIVE);
-};

Powered by Google App Engine
This is Rietveld 408576698