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

Unified Diff: chrome/test/data/extensions/api_test/file_manager_browsertest/restore_geometry.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/restore_geometry.js
diff --git a/chrome/test/data/extensions/api_test/file_manager_browsertest/restore_geometry.js b/chrome/test/data/extensions/api_test/file_manager_browsertest/restore_geometry.js
deleted file mode 100644
index 0f8f610bc1be7d3f14fd978be2d65118315f2462..0000000000000000000000000000000000000000
--- a/chrome/test/data/extensions/api_test/file_manager_browsertest/restore_geometry.js
+++ /dev/null
@@ -1,51 +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 restoring geometry of the Files app.
- */
-testcase.restoreGeometry = function() {
- var appId;
- var appId2;
- StepsRunner.run([
- // Set up File Manager.
- function() {
- setupAndWaitUntilReady(null, RootPath.DOWNLOADS, this.next);
- },
- // Resize the window to minimal dimensions.
- function(inAppId) {
- appId = inAppId;
- callRemoteTestUtil(
- 'resizeWindow', appId, [640, 480], this.next);
- },
- // Check the current window's size.
- function(inAppId) {
- waitForWindowGeometry(appId, 640, 480).then(this.next);
- },
- // Enlarge the window by 10 pixels.
- function(result) {
- callRemoteTestUtil(
- 'resizeWindow', appId, [650, 490], this.next);
- },
- // Check the current window's size.
- function() {
- waitForWindowGeometry(appId, 650, 490).then(this.next);
- },
- // Open another window, where the current view is restored.
- function() {
- setupAndWaitUntilReady(null, RootPath.DOWNLOADS, this.next);
- },
- // Check the next window's size.
- function(inAppId) {
- appId2 = inAppId;
- waitForWindowGeometry(appId2, 650, 490).then(this.next);
- },
- // Check for errors.
- function() {
- checkIfNoErrorsOccured(this.next);
- }
- ]);
-};

Powered by Google App Engine
This is Rietveld 408576698