| 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 SetTimeWebUITest() {} |
| 8 |
| 9 SetTimeWebUITest.prototype = { |
| 10 __proto__: testing.Test.prototype, |
| 11 |
| 12 /** |
| 13 * Browse to set time dialog. |
| 14 **/ |
| 15 browsePreload: 'chrome://set-time/', |
| 16 }; |
| 17 |
| 18 TEST_F('SetTimeWebUITest', 'testChangeTimezone', function() { |
| 19 assertEquals(this.browsePreload, document.location.href); |
| 20 |
| 21 var setTime = settime.TimeSetter; |
| 22 var timezone = $('timezone-select'); |
| 23 |
| 24 // Verify timezone. |
| 25 setTime.setTimezone("America/New_York"); |
| 26 assertEquals("America/New_York", $('timezone-select').value); |
| 27 setTime.setTimezone("Europe/Moscow"); |
| 28 assertEquals("Europe/Moscow", $('timezone-select').value); |
| 29 }); |
| 30 |
| 31 GEN('#endif'); |
| OLD | NEW |