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 #import <Cocoa/Cocoa.h> | |
6 | |
7 #include "base/macros.h" | |
8 #include "chrome/browser/ui/browser.h" | |
9 #include "chrome/browser/ui/browser_tabstrip.h" | |
10 #include "chrome/browser/ui/tabs/tab_strip_model.h" | |
11 #include "chrome/browser/ui/views/frame/browser_view.h" | |
12 #include "chrome/test/base/in_process_browser_test.h" | |
13 | |
14 using BrowserViewTestMac = InProcessBrowserTest; | |
15 | |
16 IN_PROC_BROWSER_TEST_F(BrowserViewTestMac, CloseWithTabsStartWithActive) { | |
17 chrome::AddTabAt(browser(), GURL(), -1, true); | |
18 chrome::AddTabAt(browser(), GURL(), -1, true); | |
19 browser()->tab_strip_model()->ActivateTabAt(0, true); | |
20 NSWindow* window = BrowserView::GetBrowserViewForBrowser(browser()) | |
21 ->GetWidget()->GetNativeWindow(); | |
22 [window close]; | |
23 } | |
tapted
2016/10/05 08:38:18
this isn't the right place for a test, and there a
| |
OLD | NEW |