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

Side by Side 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 unified diff | Download patch
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 cr.define('md_history.history_drawer_test', function () { 5 suite('drawer-test', function() {
6 function registerTests() { 6 var app;
7 suite('drawer-test', function() {
8 var app;
9 7
10 suiteSetup(function() { 8 suiteSetup(function() {
11 app = $('history-app'); 9 app = $('history-app');
12 }); 10 });
13 11
14 test('drawer has correct selection', function() { 12 test('drawer has correct selection', function() {
15 app.selectedPage_ = 'syncedTabs'; 13 app.selectedPage_ = 'syncedTabs';
16 app.hasDrawer_ = true; 14 app.hasDrawer_ = true;
17 return PolymerTest.flushTasks().then(function() { 15 return PolymerTest.flushTasks().then(function() {
18 var drawer = app.$$('#drawer'); 16 var drawer = app.$$('#drawer');
19 var drawerSideBar = app.$$('#drawer-side-bar'); 17 var drawerSideBar = app.$$('#drawer-side-bar');
20 18
21 assertTrue(!!drawer); 19 assertTrue(!!drawer);
22 assertTrue(!!drawerSideBar); 20 assertTrue(!!drawerSideBar);
23 21
24 var menuButton = app.$.toolbar.$['main-toolbar'].$$('#menuButton'); 22 var menuButton = app.$.toolbar.$['main-toolbar'].$$('#menuButton');
25 assertTrue(!!menuButton); 23 assertTrue(!!menuButton);
26 24
27 MockInteractions.tap(menuButton); 25 MockInteractions.tap(menuButton);
28 assertTrue(drawer.opened); 26 assertTrue(drawer.opened);
29 27
30 assertEquals('syncedTabs', drawerSideBar.$.menu.selected); 28 assertEquals('syncedTabs', drawerSideBar.$.menu.selected);
31 });
32 });
33 }); 29 });
34 } 30 });
35
36 return {
37 registerTests: registerTests
38 };
39 }); 31 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698