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

Unified Diff: chrome/test/data/extensions/api_test/file_manager_browsertest/tab_index.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/tab_index.js
diff --git a/chrome/test/data/extensions/api_test/file_manager_browsertest/tab_index.js b/chrome/test/data/extensions/api_test/file_manager_browsertest/tab_index.js
deleted file mode 100644
index 56f03e12f1c95efd221ff931513de89848ec93f9..0000000000000000000000000000000000000000
--- a/chrome/test/data/extensions/api_test/file_manager_browsertest/tab_index.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 the focus behavior of the search box.
- */
-testcase.searchBoxFocus = function() {
- var appId;
- StepsRunner.run([
- // Set up File Manager.
- function() {
- setupAndWaitUntilReady(null, RootPath.DRIVE, this.next);
- },
- // Check that the file list has the focus on launch.
- function(inAppId) {
- appId = inAppId;
- waitForElement(appId, ['#file-list:focus']).then(this.next);
- },
- // Press the Ctrl-F key.
- function(element) {
- callRemoteTestUtil('fakeKeyDown',
- appId,
- ['body', 'U+0046', true],
- this.next);
- },
- // Check that the search box has the focus.
- function(result) {
- chrome.test.assertTrue(result);
- waitForElement(appId, ['#search-box input:focus']).then(this.next);
- },
- // Press the Tab key.
- function(element) {
- callRemoteTestUtil('fakeKeyDown',
- appId,
- ['body', 'U+0009', false],
- this.next);
- },
- // Check that the file list has the focus.
- function(result) {
- chrome.test.assertTrue(result);
- waitForElement(appId, ['#file-list:focus']).then(this.next);
- },
- // Check for errors.
- function(element) {
- checkIfNoErrorsOccured(this.next);
- }
- ]);
-};

Powered by Google App Engine
This is Rietveld 408576698