mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-22 14:35:52 +00:00
add test for CPTabView height resizing
This commit is contained in:
1 parent
b9095b2176
commit
9a4c9e4306
1 file changed
+15
@@ -10,6 +10,11 @@
|
||||
return tabs;
|
||||
}
|
||||
|
||||
- (CPBox)box
|
||||
{
|
||||
return box;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@@ -62,4 +67,14 @@
|
||||
[self assert:([tabs boundsSize].width / 2) equals:CPRectGetMidX([tabs bounds])];
|
||||
}
|
||||
|
||||
- (void)testBoxHeight
|
||||
{
|
||||
var box = [_tabView box],
|
||||
tabs = [_tabView tabs];
|
||||
|
||||
[_tabView setFrame:CPRectMake(0, 0, 800, 800)];
|
||||
[self assert:[box frameSize].height equals:800 - ([box frameOrigin].y) - [tabs frameSize].height / 2];
|
||||
}
|
||||
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user