| Index: chrome/test/data/webui/md_history/history_drawer_test.js
|
| diff --git a/chrome/test/data/webui/md_history/history_drawer_test.js b/chrome/test/data/webui/md_history/history_drawer_test.js
|
| index 922d063c5af07639bb3e899aa04149edd12adbc8..574f73a267488f82a0d4cb5d2c862b821c6849a8 100644
|
| --- a/chrome/test/data/webui/md_history/history_drawer_test.js
|
| +++ b/chrome/test/data/webui/md_history/history_drawer_test.js
|
| @@ -2,38 +2,30 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -cr.define('md_history.history_drawer_test', function () {
|
| - function registerTests() {
|
| - suite('drawer-test', function() {
|
| - var app;
|
| +suite('drawer-test', function() {
|
| + var app;
|
|
|
| - suiteSetup(function() {
|
| - app = $('history-app');
|
| - });
|
| + suiteSetup(function() {
|
| + app = $('history-app');
|
| + });
|
|
|
| - test('drawer has correct selection', function() {
|
| - app.selectedPage_ = 'syncedTabs';
|
| - app.hasDrawer_ = true;
|
| - return PolymerTest.flushTasks().then(function() {
|
| - var drawer = app.$$('#drawer');
|
| - var drawerSideBar = app.$$('#drawer-side-bar');
|
| + test('drawer has correct selection', function() {
|
| + app.selectedPage_ = 'syncedTabs';
|
| + app.hasDrawer_ = true;
|
| + return PolymerTest.flushTasks().then(function() {
|
| + var drawer = app.$$('#drawer');
|
| + var drawerSideBar = app.$$('#drawer-side-bar');
|
|
|
| - assertTrue(!!drawer);
|
| - assertTrue(!!drawerSideBar);
|
| + assertTrue(!!drawer);
|
| + assertTrue(!!drawerSideBar);
|
|
|
| - var menuButton = app.$.toolbar.$['main-toolbar'].$$('#menuButton');
|
| - assertTrue(!!menuButton);
|
| + var menuButton = app.$.toolbar.$['main-toolbar'].$$('#menuButton');
|
| + assertTrue(!!menuButton);
|
|
|
| - MockInteractions.tap(menuButton);
|
| - assertTrue(drawer.opened);
|
| + MockInteractions.tap(menuButton);
|
| + assertTrue(drawer.opened);
|
|
|
| - assertEquals('syncedTabs', drawerSideBar.$.menu.selected);
|
| - });
|
| - });
|
| + assertEquals('syncedTabs', drawerSideBar.$.menu.selected);
|
| });
|
| - }
|
| -
|
| - return {
|
| - registerTests: registerTests
|
| - };
|
| + });
|
| });
|
|
|