Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Side by Side Diff: chrome/browser/ui/webui/chromeos/set_time_ui_browsertest.js

Issue 247663003: Date and Time dialog for when the clock isn't synced. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698