Don't show supervised user as "already on this device" while they're being imported.
[chromium-blink-merge.git] / chrome / browser / ui / webui / options / chromeos / date_time_options_browsertest.js
blob4f0845beb378f8ed829427366bdf13d7002f37f0
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.
5 GEN_INCLUDE(['../options_browsertest_base.js']);
7 GEN('#if defined(OS_CHROMEOS)');
9 /**
10 * DateTimeOptionsWebUITest tests the date and time section of the options page.
11 * @constructor
12 * @extends {testing.Test}
14 function DateTimeOptionsWebUITest() {}
16 DateTimeOptionsWebUITest.prototype = {
17 __proto__: OptionsBrowsertestBase.prototype,
19 /**
20 * Browse to date/time options.
21 * @override
23 browsePreload: 'chrome://settings-frame/search#date',
26 TEST_F('DateTimeOptionsWebUITest', 'testShowSetTimeButton', function() {
27 assertEquals(this.browsePreload, document.location.href);
29 // Show button.
30 BrowserOptions.setCanSetTime(true);
31 expectFalse($('set-time').hidden);
33 // Hide button.
34 BrowserOptions.setCanSetTime(false);
35 expectTrue($('set-time').hidden);
36 });
38 GEN('#endif');