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

Side by Side Diff: chrome/browser/resources/file_manager/js/test_util.js

Issue 22382002: Rename VolumeList -> NavigationList in Files.app (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed comment Created 7 years, 4 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
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 /** 5 /**
6 * Namespace for test related things. 6 * Namespace for test related things.
7 */ 7 */
8 var test = test || {}; 8 var test = test || {};
9 9
10 /** 10 /**
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 test.util.sync.fakeMouseClick(contentWindow, driveQuery))) { 403 test.util.sync.fakeMouseClick(contentWindow, driveQuery))) {
404 callback(false); 404 callback(false);
405 return; 405 return;
406 } 406 }
407 preSelection = true; 407 preSelection = true;
408 } 408 }
409 setTimeout(steps.checkQuery, 50); 409 setTimeout(steps.checkQuery, 50);
410 }, 410 },
411 sendEvents: function() { 411 sendEvents: function() {
412 // To change the selected volume, we have to send both events 'mousedown' 412 // To change the selected volume, we have to send both events 'mousedown'
413 // and 'click' to the volume list. 413 // and 'click' to the navigation list.
414 callback(test.util.sync.fakeMouseDown(contentWindow, query) && 414 callback(test.util.sync.fakeMouseDown(contentWindow, query) &&
415 test.util.sync.fakeMouseClick(contentWindow, query)); 415 test.util.sync.fakeMouseClick(contentWindow, query));
416 } 416 }
417 }; 417 };
418 steps.checkQuery(); 418 steps.checkQuery();
419 }; 419 };
420 420
421 /** 421 /**
422 * Waits the contents of file list becomes to equal to expected contents. 422 * Waits the contents of file list becomes to equal to expected contents.
423 * 423 *
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 return false; 710 return false;
711 } else { 711 } else {
712 console.error('Invalid function name.'); 712 console.error('Invalid function name.');
713 return false; 713 return false;
714 } 714 }
715 }); 715 });
716 }; 716 };
717 717
718 // Register the test utils. 718 // Register the test utils.
719 test.util.registerRemoteTestUtils(); 719 test.util.registerRemoteTestUtils();
OLDNEW
« no previous file with comments | « chrome/browser/resources/file_manager/js/navigation_list.js ('k') | chrome/browser/resources/file_manager/js/volume_list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698