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 | |
Dan Beam
2014/04/24 21:54:33
/**
* Doc comment talking about how cool SetTimeW
michaelpg
2014/04/24 22:42:48
Done.
| |
7 function SetTimeWebUITest() {} | |
8 | |
9 SetTimeWebUITest.prototype = { | |
10 __proto__: testing.Test.prototype, | |
11 | |
12 /** | |
13 * Browse to set time dialog. | |
Dan Beam
2014/04/24 21:54:33
@override
michaelpg
2014/04/24 22:42:48
Done.
| |
14 **/ | |
Dan Beam
2014/04/24 21:54:33
**/ -> */
michaelpg
2014/04/24 22:42:48
Done.
| |
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; | |
Dan Beam
2014/04/24 21:54:33
nit: this is done everywhere else in webui as
v
michaelpg
2014/04/24 22:42:48
Done. Makes sense, I want the object, not the name
| |
22 var timezone = $('timezone-select'); | |
23 | |
24 // Verify timezone. | |
25 setTime.setTimezone("America/New_York"); | |
26 assertEquals("America/New_York", $('timezone-select').value); | |
Dan Beam
2014/04/24 21:54:33
use |timezone| or remove it (preferably remove it
michaelpg
2014/04/24 22:42:48
Done.
| |
27 setTime.setTimezone("Europe/Moscow"); | |
28 assertEquals("Europe/Moscow", $('timezone-select').value); | |
29 }); | |
30 | |
31 GEN('#endif'); | |
OLD | NEW |