add test for CPTabView height resizing

This commit is contained in:
Antoine Mercadal committed 2010-11-04 10:41:24 +01:00
1 parent b9095b2176
commit 9a4c9e4306
1 file changed
+15
+15
View File
@@ -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