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

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

Issue 1572383006: MD History: Hook all elements into the page and add tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@patch
Patch Set: Rebase. Created 4 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/md_history_browsertest.js
diff --git a/chrome/test/data/webui/md_history/md_history_browsertest.js b/chrome/test/data/webui/md_history/md_history_browsertest.js
new file mode 100644
index 0000000000000000000000000000000000000000..18c3392c2046b9a47f305033d3d3147e83c4b4f9
--- /dev/null
+++ b/chrome/test/data/webui/md_history/md_history_browsertest.js
@@ -0,0 +1,50 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/**
+ * @fileoverview Test suite for the Material Design history page.
+ */
+
+var ROOT_PATH = '../../../../../';
+
+GEN_INCLUDE(
+ [ROOT_PATH + 'chrome/test/data/webui/polymer_browser_test_base.js']);
+
+function MaterialHistoryBrowserTest() {}
+
+MaterialHistoryBrowserTest.prototype = {
+ __proto__: PolymerTest.prototype,
+
+ browsePreload: 'chrome://history',
+
+ commandLineSwitches: [{switchName: 'enable-md-history'}],
+
+ extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([
+ 'test_util.js',
+ 'history_card_manager_test.js',
+ 'history_card_test.js',
+ 'history_overflow_menu_test.js',
+ 'history_toolbar_test.js'
+ ])
+};
+
+TEST_F('MaterialHistoryBrowserTest', 'HistoryCardTest', function() {
+ md_history.history_card_test.registerTests();
+ mocha.run();
+});
+
+TEST_F('MaterialHistoryBrowserTest', 'HistoryCardManagerTest', function() {
+ md_history.history_card_manager_test.registerTests();
+ mocha.run();
+});
+
+TEST_F('MaterialHistoryBrowserTest', 'HistoryToolbarTest', function() {
+ md_history.history_toolbar_test.registerTests();
+ mocha.run();
+});
+
+TEST_F('MaterialHistoryBrowserTest', 'HistoryOverflowMenuTest', function() {
+ md_history.history_overflow_menu_test.registerTests();
+ mocha.run();
+});
« no previous file with comments | « chrome/test/data/webui/md_history/history_toolbar_test.js ('k') | chrome/test/data/webui/md_history/test_util.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698