| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 GEN_INCLUDE(['polymer_browser_test_base.js']); |
| 6 |
| 7 GEN('#include "chrome/browser/ui/browser.h"'); |
| 8 GEN('#include "chrome/browser/ui/tabs/tab_strip_model.h"'); |
| 9 GEN('#include "content/public/browser/web_contents.h"'); |
| 10 |
| 11 function PolymerInteractiveUITest() {} |
| 12 |
| 13 PolymerInteractiveUITest.prototype = { |
| 14 __proto__: PolymerTest.prototype, |
| 15 |
| 16 testGenPreamble: function() { |
| 17 // Must explicitly focus the web contents before running the test on Mac. |
| 18 // See: https://crbug.com/642467. |
| 19 GEN(' browser()->tab_strip_model()->GetActiveWebContents()->Focus();'); |
| 20 }, |
| 21 |
| 22 }; |
| OLD | NEW |