Commit df1d1cf7 authored by rbpotter's avatar rbpotter Committed by Commit Bot

Settings subpage test: remove unnecessary wrapper

This is in preparation for autogenerating tests for the Polymer 3
version of settings-subpage.

Bug: 1026426
Change-Id: I32b119cf18f8b7f7f1053621a81e10f65ffcbc8f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2038491Reviewed-by: default avatarDemetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: Rebekah Potter <rbpotter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#738690}
parent 77f13a8f
......@@ -2,8 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
cr.define('settings_subpage', function() {
suite('SettingsSubpage', function() {
suite('SettingsSubpage', function() {
setup(function() {
const routes = {
BASIC: new settings.Route('/'),
......@@ -74,8 +73,7 @@ cr.define('settings_subpage', function() {
settings.Router.getInstance().navigateTo(settings.routes.BASIC);
settings.Router.getInstance().navigateTo(settings.routes.SYNC);
assertEquals(
settings.routes.SYNC,
settings.Router.getInstance().getCurrentRoute());
settings.routes.SYNC, settings.Router.getInstance().getCurrentRoute());
const subpage = document.createElement('settings-subpage');
document.body.appendChild(subpage);
......@@ -103,9 +101,9 @@ cr.define('settings_subpage', function() {
document.title,
loadTimeData.getStringF('settingsAltPageTitle', expectedTitle));
});
});
});
suite('SettingsSubpageSearch', function() {
suite('SettingsSubpageSearch', function() {
test('host autofocus propagates to <cr-input>', function() {
PolymerTest.clearBody();
const element = document.createElement('cr-search-field');
......@@ -117,5 +115,4 @@ cr.define('settings_subpage', function() {
element.removeAttribute('autofocus');
assertFalse(element.$$('cr-input').hasAttribute('autofocus'));
});
});
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment