OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #import "chrome/browser/ui/cocoa/validation_message_bubble_controller.h" | 8 #import "chrome/browser/ui/cocoa/validation_message_bubble_controller.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 EXPECT_GT(NSHeight(shortMainMediumSubFrame), NSHeight(shortMainNoSubFrame)); | 33 EXPECT_GT(NSHeight(shortMainMediumSubFrame), NSHeight(shortMainNoSubFrame)); |
34 | 34 |
35 NSRect shortMainLongSubFrame = [constructView("abc", | 35 NSRect shortMainLongSubFrame = [constructView("abc", |
36 "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod" | 36 "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod" |
37 " tempor incididunt ut labore et dolore magna aliqua.") frame]; | 37 " tempor incididunt ut labore et dolore magna aliqua.") frame]; |
38 EXPECT_GT(NSWidth(shortMainLongSubFrame), NSWidth(shortMainMediumSubFrame)); | 38 EXPECT_GT(NSWidth(shortMainLongSubFrame), NSWidth(shortMainMediumSubFrame)); |
39 EXPECT_LT(NSWidth(shortMainLongSubFrame), 500); | 39 EXPECT_LT(NSWidth(shortMainLongSubFrame), 500); |
40 EXPECT_GT(NSHeight(shortMainLongSubFrame), NSHeight(shortMainMediumSubFrame)); | 40 EXPECT_GT(NSHeight(shortMainLongSubFrame), NSHeight(shortMainMediumSubFrame)); |
41 } | 41 } |
42 | 42 |
43 } | 43 } // namespace |
44 | |
OLD | NEW |