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

Unified Diff: chrome/test/data/webui/polymer_interactive_ui_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
« no previous file with comments | « chrome/test/data/webui/md_history/md_history_focus_test.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/polymer_interactive_ui_test.js
diff --git a/chrome/test/data/webui/polymer_interactive_ui_test.js b/chrome/test/data/webui/polymer_interactive_ui_test.js
new file mode 100644
index 0000000000000000000000000000000000000000..8737533e91db7e3659e8858f6bc84f4c188294f1
--- /dev/null
+++ b/chrome/test/data/webui/polymer_interactive_ui_test.js
@@ -0,0 +1,22 @@
+// Copyright 2016 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.
+
+GEN_INCLUDE(['polymer_browser_test_base.js']);
+
+GEN('#include "chrome/browser/ui/browser.h"');
+GEN('#include "chrome/browser/ui/tabs/tab_strip_model.h"');
+GEN('#include "content/public/browser/web_contents.h"');
+
+function PolymerInteractiveUITest() {}
+
+PolymerInteractiveUITest.prototype = {
+ __proto__: PolymerTest.prototype,
+
+ testGenPreamble: function() {
+ // Must explicitly focus the web contents before running the test on Mac.
+ // See: https://crbug.com/642467.
+ GEN(' browser()->tab_strip_model()->GetActiveWebContents()->Focus();');
+ },
+
+};
« no previous file with comments | « chrome/test/data/webui/md_history/md_history_focus_test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698