Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 GEN('#if defined(OS_CHROMEOS)'); | |
| 6 | |
| 7 function DateTimeOptionsWebUITest() {} | |
| 8 | |
| 9 DateTimeOptionsWebUITest.prototype = { | |
| 10 __proto__: testing.Test.prototype, | |
| 11 | |
| 12 /** | |
| 13 * Browse to date/time options. | |
| 14 **/ | |
|
Dan Beam
2014/04/24 21:54:33
same general nits in this file as the other one
michaelpg
2014/04/24 22:42:48
Done.
| |
| 15 browsePreload: 'chrome://settings-frame/search#date', | |
| 16 }; | |
| 17 | |
| 18 TEST_F('DateTimeOptionsWebUITest', 'testShowSetTimeButton', function() { | |
| 19 assertEquals(this.browsePreload, document.location.href); | |
| 20 | |
| 21 var timeSyncedLabel = $('time-synced-explanation'); | |
| 22 var setTime = $('set-time'); | |
| 23 | |
| 24 BrowserOptions.toggleCanSetTime(true); | |
| 25 // Label is hidden. | |
| 26 assertTrue(timeSyncedLabel.hidden); | |
| 27 assertFalse(setTime.hidden); | |
| 28 | |
| 29 BrowserOptions.toggleCanSetTime(false); | |
| 30 // Button section is hidden. | |
| 31 assertFalse(timeSyncedLabel.hidden); | |
| 32 assertTrue(setTime.hidden); | |
| 33 }); | |
| 34 | |
| 35 GEN('#endif'); | |
| OLD | NEW |