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

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: rebase, single quotes in browsertest js 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 /**
8 * DateTimeOptionsWebUITest tests the date and time section of the options page.
9 * @constructor
10 * @extends {testing.Test}
11 */
12 function DateTimeOptionsWebUITest() {}
13
14 DateTimeOptionsWebUITest.prototype = {
15 __proto__: testing.Test.prototype,
16
17 /**
18 * Browse to date/time options.
19 * @override
20 */
21 browsePreload: 'chrome://settings-frame/search#date',
22 };
23
24 TEST_F('DateTimeOptionsWebUITest', 'testShowSetTimeButton', function() {
25 assertEquals(this.browsePreload, document.location.href);
26
27 // Hide label and show button.
28 BrowserOptions.setCanSetTime(true);
29 expectTrue($('time-synced-explanation').hidden);
30 expectFalse($('set-time').hidden);
31
32 // Show label and hide button.
33 BrowserOptions.setCanSetTime(false);
34 expectFalse($('time-synced-explanation').hidden);
35 expectTrue($('set-time').hidden);
36 });
37
38 GEN('#endif');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698