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

Unified Diff: chrome/test/data/webui/md_history/history_drawer_test.js

Issue 2627263002: MD History: Remove unnecessary namespacing from tests (part 2) (Closed)
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
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
- };
+ });
});

Powered by Google App Engine
This is Rietveld 408576698