| Index: chrome/browser/ui/cocoa/framed_browser_window_unittest.mm
|
| diff --git a/chrome/browser/ui/cocoa/framed_browser_window_unittest.mm b/chrome/browser/ui/cocoa/framed_browser_window_unittest.mm
|
| index 32322eec913e1b07e995026e5bf8bdd2cfc23139..9931a679de5f85f7447329ccf32427215edf519f 100644
|
| --- a/chrome/browser/ui/cocoa/framed_browser_window_unittest.mm
|
| +++ b/chrome/browser/ui/cocoa/framed_browser_window_unittest.mm
|
| @@ -5,6 +5,7 @@
|
| #import <Cocoa/Cocoa.h>
|
|
|
| #include "base/debug/debugger.h"
|
| +#include "base/mac/mac_util.h"
|
| #include "base/mac/scoped_nsobject.h"
|
| #include "chrome/app/chrome_command_ids.h"
|
| #import "chrome/browser/ui/cocoa/browser_window_controller.h"
|
| @@ -70,7 +71,7 @@ TEST_F(FramedBrowserWindowTest, ShowAndClose) {
|
| [window_ display];
|
| }
|
|
|
| -// Test that undocumented title-hiding API we're using does the job.
|
| +// Test that the title-hiding API we're using does the job.
|
| TEST_F(FramedBrowserWindowTest, DoesHideTitle) {
|
| // The -display calls are not strictly necessary, but they do
|
| // make it easier to see what's happening when debugging (without
|
| @@ -97,8 +98,11 @@ TEST_F(FramedBrowserWindowTest, DoesHideTitle) {
|
|
|
| // With our magic setting, the window with a title should look the
|
| // same as the window with an empty title.
|
| - EXPECT_TRUE([window_ _isTitleHidden]);
|
| EXPECT_TRUE([emptyTitleData isEqualToData:hiddenTitleData]);
|
| +
|
| + // Test the secret API only on versions of the system in which it exists.
|
| + if (base::mac::IsOSMavericksOrEarlier())
|
| + EXPECT_TRUE([window_ _isTitleHidden]);
|
| }
|
|
|
| // Test to make sure that our window widgets are in the right place.
|
|
|