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 @@ ...@@ -2,8 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
cr.define('settings_subpage', function() { suite('SettingsSubpage', function() {
suite('SettingsSubpage', function() {
setup(function() { setup(function() {
const routes = { const routes = {
BASIC: new settings.Route('/'), BASIC: new settings.Route('/'),
...@@ -74,8 +73,7 @@ cr.define('settings_subpage', function() { ...@@ -74,8 +73,7 @@ cr.define('settings_subpage', function() {
settings.Router.getInstance().navigateTo(settings.routes.BASIC); settings.Router.getInstance().navigateTo(settings.routes.BASIC);
settings.Router.getInstance().navigateTo(settings.routes.SYNC); settings.Router.getInstance().navigateTo(settings.routes.SYNC);
assertEquals( assertEquals(
settings.routes.SYNC, settings.routes.SYNC, settings.Router.getInstance().getCurrentRoute());
settings.Router.getInstance().getCurrentRoute());
const subpage = document.createElement('settings-subpage'); const subpage = document.createElement('settings-subpage');
document.body.appendChild(subpage); document.body.appendChild(subpage);
...@@ -103,9 +101,9 @@ cr.define('settings_subpage', function() { ...@@ -103,9 +101,9 @@ cr.define('settings_subpage', function() {
document.title, document.title,
loadTimeData.getStringF('settingsAltPageTitle', expectedTitle)); loadTimeData.getStringF('settingsAltPageTitle', expectedTitle));
}); });
}); });
suite('SettingsSubpageSearch', function() { suite('SettingsSubpageSearch', function() {
test('host autofocus propagates to <cr-input>', function() { test('host autofocus propagates to <cr-input>', function() {
PolymerTest.clearBody(); PolymerTest.clearBody();
const element = document.createElement('cr-search-field'); const element = document.createElement('cr-search-field');
...@@ -117,5 +115,4 @@ cr.define('settings_subpage', function() { ...@@ -117,5 +115,4 @@ cr.define('settings_subpage', function() {
element.removeAttribute('autofocus'); element.removeAttribute('autofocus');
assertFalse(element.$$('cr-input').hasAttribute('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