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

Side by Side Diff: chrome/browser/ui/webui/options/chromeos/date_time_options_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
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');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698