OLD | NEW |
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 Loading... |
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 Loading... |
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(); |
OLD | NEW |