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

Side by Side Diff: chrome/test/data/webui/settings/settings_ui_browsertest.js

Issue 2360873005: MD Settings: Cleanup, remove unnecessary <cr-settings> wrapper. (Closed)
Patch Set: Remove more Created 4 years, 2 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
« no previous file with comments | « chrome/test/data/webui/settings/settings_page_browsertest.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** @fileoverview Suite of tests for the Settings layout. */ 5 /** @fileoverview Suite of tests for the Settings layout. */
6 6
7 GEN_INCLUDE(['settings_page_browsertest.js']); 7 GEN_INCLUDE(['settings_page_browsertest.js']);
8 8
9 /** 9 /**
10 * @constructor 10 * @constructor
(...skipping 13 matching lines...) Expand all
24 GEN('#else'); 24 GEN('#else');
25 GEN('#define MAYBE_All All'); 25 GEN('#define MAYBE_All All');
26 GEN('#endif'); 26 GEN('#endif');
27 27
28 TEST_F('SettingsUIBrowserTest', 'MAYBE_All', function() { 28 TEST_F('SettingsUIBrowserTest', 'MAYBE_All', function() {
29 suite('settings-ui', function() { 29 suite('settings-ui', function() {
30 var toolbar; 30 var toolbar;
31 var ui; 31 var ui;
32 32
33 suiteSetup(function() { 33 suiteSetup(function() {
34 var settings = assert(document.querySelector('cr-settings')); 34 ui = assert(document.querySelector('settings-ui'));
35 ui = assert(settings.$$('settings-ui'));
36 }); 35 });
37 36
38 test('basic', function() { 37 test('basic', function() {
39 toolbar = assert(ui.$$('cr-toolbar')); 38 toolbar = assert(ui.$$('cr-toolbar'));
40 assertTrue(toolbar.showMenu); 39 assertTrue(toolbar.showMenu);
41 }); 40 });
42 41
43 test('app drawer', function(done) { 42 test('app drawer', function(done) {
44 assertEquals(null, ui.$$('settings-menu')); 43 assertEquals(null, ui.$$('settings-menu'));
45 var drawer = assert(ui.$$('app-drawer')); 44 var drawer = assert(ui.$$('app-drawer'));
(...skipping 26 matching lines...) Expand all
72 // visible as the drawer slides out. 71 // visible as the drawer slides out.
73 assertFalse(drawer.opened); 72 assertFalse(drawer.opened);
74 assertTrue(!!ui.$$('settings-menu')); 73 assertTrue(!!ui.$$('settings-menu'));
75 done(); 74 done();
76 }); 75 });
77 }); 76 });
78 }); 77 });
79 78
80 mocha.run(); 79 mocha.run();
81 }); 80 });
OLDNEW
« no previous file with comments | « chrome/test/data/webui/settings/settings_page_browsertest.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698