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

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

Issue 128023002: [Files.app] Use 'activate' event on the view-change menuitems instead of 'click' event (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/file_manager/foreground/js/file_manager.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 'use strict'; 5 'use strict';
6 6
7 /** 7 /**
8 * @enum {string} 8 * @enum {string}
9 * @const 9 * @const
10 */ 10 */
(...skipping 1486 matching lines...) Expand 10 before | Expand all | Expand 10 after
1497 setupAndWaitUntilReady(appState, this.next); 1497 setupAndWaitUntilReady(appState, this.next);
1498 }, 1498 },
1499 // Check the initial view. 1499 // Check the initial view.
1500 function(inAppId) { 1500 function(inAppId) {
1501 appId = inAppId; 1501 appId = inAppId;
1502 callRemoteTestUtil('waitForElement', 1502 callRemoteTestUtil('waitForElement',
1503 appId, 1503 appId,
1504 ['.thumbnail-grid[hidden]'], 1504 ['.thumbnail-grid[hidden]'],
1505 this.next); 1505 this.next);
1506 }, 1506 },
1507 // Opens the gear menu.
1508 function() {
1509 callRemoteTestUtil('fakeMouseClick',
1510 appId,
1511 ['#gear-button'],
1512 this.next);
1513 },
1507 // Change the current view. 1514 // Change the current view.
1508 function() { 1515 function() {
1509 callRemoteTestUtil('fakeMouseClick', 1516 callRemoteTestUtil('fakeMouseClick',
1510 appId, 1517 appId,
1511 ['#thumbnail-view'], 1518 ['#thumbnail-view'],
1512 this.next); 1519 this.next);
1513 }, 1520 },
1514 // Check the new current view. 1521 // Check the new current view.
1515 function(result) { 1522 function(result) {
1516 chrome.test.assertTrue(result); 1523 chrome.test.assertTrue(result);
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
1789 this.next); 1796 this.next);
1790 }, 1797 },
1791 // Verify the thumbnail. 1798 // Verify the thumbnail.
1792 function(element) { 1799 function(element) {
1793 chrome.test.assertTrue(element.attributes.src.indexOf( 1800 chrome.test.assertTrue(element.attributes.src.indexOf(
1794 'data:image/jpeg') === 0); 1801 'data:image/jpeg') === 0);
1795 checkIfNoErrorsOccured(this.next); 1802 checkIfNoErrorsOccured(this.next);
1796 } 1803 }
1797 ]); 1804 ]);
1798 }; 1805 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/file_manager/foreground/js/file_manager.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698