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

Side by Side Diff: chrome/browser/ui/cocoa/hyperlink_text_view_unittest.mm

Issue 7610011: Update Sad Tab help text and link. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use views::GridLayout, address Cocoa comments. Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "base/memory/scoped_nsobject.h"
6 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
7 #import "chrome/browser/ui/cocoa/hyperlink_text_view.h"
8
9 namespace {
10
11 class HyperlinkTextViewTest : public CocoaTest {
12 public:
13 HyperlinkTextViewTest() {
14 NSRect frame = NSMakeRect(0, 0, 50, 50);
15 scoped_nsobject<HyperlinkTextView> view(
16 [[HyperlinkTextView alloc] initWithFrame:frame]);
17 view_ = view.get();
18 [[test_window() contentView] addSubview:view_];
Nico 2011/09/01 04:12:37 Nevermind, your window keeps a ref to the the view
msw 2011/09/01 16:27:42 Undone.
19 }
20
21 HyperlinkTextView* view_;
Nico 2011/09/01 03:36:03 This won't work. view is only alive in the constru
msw 2011/09/01 16:27:42 Done.
22 };
23
24 TEST_VIEW(HyperlinkTextViewTest, view_);
25
26 TEST_F(HyperlinkTextViewTest, TestViewConfiguration) {
27 EXPECT_FALSE([view_ isEditable]);
28 EXPECT_FALSE([view_ drawsBackground]);
29 EXPECT_FALSE([view_ isHorizontallyResizable]);
30 EXPECT_FALSE([view_ isVerticallyResizable]);
31 }
32
33 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698