From 82ef2356a5879d5f23322b2c0ddc54539d5ca94f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20H=C3=A4cker?= Date: Mon, 18 May 2009 14:40:43 +0200 Subject: [PATCH] fixes as per the review from Ross Boucher --- Tests/AppKit/CPCollectionViewTest.j | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Tests/AppKit/CPCollectionViewTest.j diff --git a/Tests/AppKit/CPCollectionViewTest.j b/Tests/AppKit/CPCollectionViewTest.j new file mode 100644 index 000000000..fc6eeafe2 --- /dev/null +++ b/Tests/AppKit/CPCollectionViewTest.j @@ -0,0 +1,16 @@ +// Just doing @import failed on CPWindow not being defined somewhere. +@import + +@implementation CPCollectionViewTest : OJTestCase + +- (void)testItemPrototypeActuallyReturnsTheItemPrototype +{ + var propertiesCollectionView = [[CPCollectionView alloc] initWithFrame:CGRectMakeZero()], + itemPrototype = [[CPCollectionViewItem alloc] init]; + + [propertiesCollectionView setItemPrototype:itemPrototype]; + + [self assert:[CPCollectionViewItem class] equals:[[propertiesCollectionView itemPrototype] class]]; +} + +@end