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

Unified Diff: chrome/test/data/webui/cr_elements/cr_elements_focus_test.js

Issue 2638843002: MD WebUI: Remove WebUI test focus hack by moving to interactive ui tests (Closed)
Patch Set: Ui -> UI 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/cr_elements/cr_elements_focus_test.js
diff --git a/chrome/test/data/webui/cr_elements/cr_elements_focus_test.js b/chrome/test/data/webui/cr_elements/cr_elements_focus_test.js
new file mode 100644
index 0000000000000000000000000000000000000000..1a3469c826614681dad766ddc69441f3fc7332f9
--- /dev/null
+++ b/chrome/test/data/webui/cr_elements/cr_elements_focus_test.js
@@ -0,0 +1,58 @@
+// Copyright 2017 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 Tests for shared Polymer elements which rely on focus. */
+
+/** @const {string} Path to source root. */
+var ROOT_PATH = '../../../../../';
+
+// Polymer BrowserTest fixture.
+GEN_INCLUDE(
+ [ROOT_PATH + 'chrome/test/data/webui/polymer_interactive_ui_test.js']);
+
+function CrElementsFocusTest() {}
+
+CrElementsFocusTest.prototype = {
+ __proto__: PolymerInteractiveUITest.prototype,
+
+ extraLibraries: PolymerTest.getLibraries(ROOT_PATH),
+};
+
+function CrElementsActionMenuTest() {}
+
+CrElementsActionMenuTest.prototype = {
+ __proto__: CrElementsFocusTest.prototype,
+
+ /** @override */
+ browsePreload:
+ 'chrome://resources/cr_elements/cr_action_menu/cr_action_menu.html',
+
+ extraLibraries: CrElementsFocusTest.prototype.extraLibraries.concat([
+ 'cr_action_menu_test.js',
+ ]),
+};
+
+TEST_F('CrElementsActionMenuTest', 'All', function() {
+ mocha.run();
+});
+
+function CrElementsProfileAvatarSelectorFocusTest() {}
+
+CrElementsProfileAvatarSelectorFocusTest.prototype = {
+ __proto__: CrElementsFocusTest.prototype,
+
+ /** @override */
+ browsePreload:
+ 'chrome://resources/cr_elements/cr_profile_avatar_selector/' +
+ 'cr_profile_avatar_selector.html',
+
+ extraLibraries: CrElementsFocusTest.prototype.extraLibraries.concat([
+ 'cr_profile_avatar_selector_tests.js',
+ ]),
+};
+
+TEST_F('CrElementsProfileAvatarSelectorFocusTest', 'All', function() {
+ cr_profile_avatar_selector.registerTests();
+ mocha.grep(cr_profile_avatar_selector.TestNames.Focus).run();
+});

Powered by Google App Engine
This is Rietveld 408576698