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

Side by Side Diff: chrome/test/data/webui/ntp4.js

Issue 7741010: Added minimal ntp4 WebUI test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 /**
6 * TestFixture for NTP4 WebUI testing.
7 * @extends {testing.Test}
8 * @constructor
9 */
10 function NTP4WebUITest() {}
11
12 NTP4WebUITest.prototype = {
13 __proto__: testing.Test.prototype,
14
15 /**
16 * Browse to the newtab page & call PreLoad().
17 */
18 browsePreload: 'chrome://newtab',
19 };
20
21 // Test loading new tab page and selecting each card doesn't have console
22 // errors.
23 TEST_F('NTP4WebUITest', 'TestBrowsePages', function() {
24 var cardSlider = ntp4.getCardSlider();
25 assertNotEquals(null, cardSlider);
26 for (var i = 0; i < cardSlider.cardCount; ++i) {
27 cardSlider.selectCard(i);
28 expectEquals(i, cardSlider.currentCard);
29 }
30 });
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698