| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 #include "chrome/browser/profiles/profile.h" | 7 #include "chrome/browser/profiles/profile.h" |
| 8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
| 9 #import "chrome/browser/ui/cocoa/applescript/browsercrapplication+applescript.h" | 9 #import "chrome/browser/ui/cocoa/applescript/browsercrapplication+applescript.h" |
| 10 #import "chrome/browser/ui/cocoa/applescript/constants_applescript.h" | 10 #import "chrome/browser/ui/cocoa/applescript/constants_applescript.h" |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 // Check for objectSpecifer of the root scripting object. | 86 // Check for objectSpecifer of the root scripting object. |
| 87 IN_PROC_BROWSER_TEST_F(BrowserCrApplicationAppleScriptTest, ObjectSpecifier) { | 87 IN_PROC_BROWSER_TEST_F(BrowserCrApplicationAppleScriptTest, ObjectSpecifier) { |
| 88 // Should always return nil to indicate its the root scripting object. | 88 // Should always return nil to indicate its the root scripting object. |
| 89 EXPECT_EQ(nil, [NSApp objectSpecifier]); | 89 EXPECT_EQ(nil, [NSApp objectSpecifier]); |
| 90 } | 90 } |
| 91 | 91 |
| 92 // Bookmark folders at the root level. | 92 // Bookmark folders at the root level. |
| 93 // http://code.google.com/p/chromium/issues/detail?id=84299 | 93 // http://code.google.com/p/chromium/issues/detail?id=84299 |
| 94 IN_PROC_BROWSER_TEST_F(BrowserCrApplicationAppleScriptTest, | 94 IN_PROC_BROWSER_TEST_F(BrowserCrApplicationAppleScriptTest, |
| 95 FLAKY_BookmarkFolders) { | 95 DISABLED_BookmarkFolders) { |
| 96 NSArray* bookmarkFolders = [NSApp bookmarkFolders]; | 96 NSArray* bookmarkFolders = [NSApp bookmarkFolders]; |
| 97 EXPECT_EQ(2U, [bookmarkFolders count]); | 97 EXPECT_EQ(2U, [bookmarkFolders count]); |
| 98 | 98 |
| 99 for (BookmarkFolderAppleScript* bookmarkFolder in bookmarkFolders) { | 99 for (BookmarkFolderAppleScript* bookmarkFolder in bookmarkFolders) { |
| 100 EXPECT_EQ(NSApp, | 100 EXPECT_EQ(NSApp, |
| 101 [bookmarkFolder container]); | 101 [bookmarkFolder container]); |
| 102 EXPECT_NSEQ(AppleScript::kBookmarkFoldersProperty, | 102 EXPECT_NSEQ(AppleScript::kBookmarkFoldersProperty, |
| 103 [bookmarkFolder containerProperty]); | 103 [bookmarkFolder containerProperty]); |
| 104 } | 104 } |
| 105 | 105 |
| 106 EXPECT_NSEQ(@"Other Bookmarks", [[NSApp otherBookmarks] title]); | 106 EXPECT_NSEQ(@"Other Bookmarks", [[NSApp otherBookmarks] title]); |
| 107 EXPECT_NSEQ(@"Bookmarks Bar", [[NSApp bookmarksBar] title]); | 107 EXPECT_NSEQ(@"Bookmarks Bar", [[NSApp bookmarksBar] title]); |
| 108 } | 108 } |
| OLD | NEW |