| 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 '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 Loading... |
| 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 Loading... |
| 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 }; |
| OLD | NEW |