diff --git a/Tests/gui/NSCollectionView/MainMenu.xib b/Tests/gui/NSCollectionView/MainMenu.xib new file mode 100644 index 0000000000..19080faafa --- /dev/null +++ b/Tests/gui/NSCollectionView/MainMenu.xib @@ -0,0 +1,752 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Default + + + + + + + Left to Right + + + + + + + Right to Left + + + + + + + + + + + Default + + + + + + + Left to Right + + + + + + + Right to Left + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Tests/gui/NSCollectionView/TestInfo b/Tests/gui/NSCollectionView/TestInfo new file mode 100644 index 0000000000..e69de29bb2 diff --git a/Tests/gui/NSCollectionView/basic.m b/Tests/gui/NSCollectionView/basic.m new file mode 100644 index 0000000000..6a3a92bbaa --- /dev/null +++ b/Tests/gui/NSCollectionView/basic.m @@ -0,0 +1,64 @@ +#import "ObjectTesting.h" + +#import +#import + +// For some nib/xibs the AppDelegate is defined... +@interface AppDelegate : NSObject +{ + IBOutlet NSWindow *window; +} +@end + +@implementation AppDelegate +@end + + +int main() +{ + NSAutoreleasePool *arp = [NSAutoreleasePool new]; + NSArray **testObjects; + BOOL success = NO; + NSFileManager *mgr = [NSFileManager defaultManager]; + NSString *path = [mgr currentDirectoryPath]; + NSBundle *bundle = [[NSBundle alloc] initWithPath: path]; + + START_SET("NSCollectionView GNUstep basic") + + NS_DURING + { + [NSApplication sharedApplication]; + } + NS_HANDLER + { + if ([[localException name] isEqualToString: NSInternalInconsistencyException ]) + SKIP("It looks like GNUstep backend is not yet installed") + } + NS_ENDHANDLER + + if ([[path lastPathComponent] isEqualToString: @"obj"]) + { + path = [path stringByDeletingLastPathComponent]; + } + + PASS(bundle != nil, "NSBundle was initialized"); + + NS_DURING + { + success = [bundle loadNibNamed: @"MainMenu" + owner: [NSApplication sharedApplication] + topLevelObjects: testObjects]; + + PASS(success == YES, ".xib file containing an NSCollectionView loads properly"); + } + NS_HANDLER + { + NSLog(@"%@", [localException reason]); + } + NS_ENDHANDLER + + END_SET("NSCollectionView GNUstep basic") + + [arp release]; + return 0; +} diff --git a/Tests/gui/NSGridView/MainMenu.xib b/Tests/gui/NSGridView/MainMenu.xib new file mode 100644 index 0000000000..768859898d --- /dev/null +++ b/Tests/gui/NSGridView/MainMenu.xib @@ -0,0 +1,850 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Default + + + + + + + Left to Right + + + + + + + Right to Left + + + + + + + + + + + Default + + + + + + + Left to Right + + + + + + + Right to Left + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Tests/gui/NSGridView/TestInfo b/Tests/gui/NSGridView/TestInfo new file mode 100644 index 0000000000..e69de29bb2 diff --git a/Tests/gui/NSGridView/basic.m b/Tests/gui/NSGridView/basic.m new file mode 100644 index 0000000000..8b785e63c0 --- /dev/null +++ b/Tests/gui/NSGridView/basic.m @@ -0,0 +1,64 @@ +#import "ObjectTesting.h" + +#import +#import + +// For some nib/xibs the AppDelegate is defined... +@interface AppDelegate : NSObject +{ + IBOutlet NSWindow *window; +} +@end + +@implementation AppDelegate +@end + + +int main() +{ + NSAutoreleasePool *arp = [NSAutoreleasePool new]; + NSArray **testObjects; + BOOL success = NO; + NSFileManager *mgr = [NSFileManager defaultManager]; + NSString *path = [mgr currentDirectoryPath]; + NSBundle *bundle = [[NSBundle alloc] initWithPath: path]; + + START_SET("NSGridView GNUstep basic") + + NS_DURING + { + [NSApplication sharedApplication]; + } + NS_HANDLER + { + if ([[localException name] isEqualToString: NSInternalInconsistencyException ]) + SKIP("It looks like GNUstep backend is not yet installed") + } + NS_ENDHANDLER + + if ([[path lastPathComponent] isEqualToString: @"obj"]) + { + path = [path stringByDeletingLastPathComponent]; + } + + PASS(bundle != nil, "NSBundle was initialized"); + + NS_DURING + { + success = [bundle loadNibNamed: @"MainMenu" + owner: [NSApplication sharedApplication] + topLevelObjects: testObjects]; + + PASS(success == YES, ".xib file containing an NSGridView loads properly"); + } + NS_HANDLER + { + NSLog(@"%@", [localException reason]); + } + NS_ENDHANDLER + + END_SET("NSGridView GNUstep basic") + + [arp release]; + return 0; +} diff --git a/Tests/gui/NSStackView/MainMenu.xib b/Tests/gui/NSStackView/MainMenu.xib new file mode 100644 index 0000000000..2cd7f07f9b --- /dev/null +++ b/Tests/gui/NSStackView/MainMenu.xib @@ -0,0 +1,860 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Default + + + + + + + Left to Right + + + + + + + Right to Left + + + + + + + + + + + Default + + + + + + + Left to Right + + + + + + + Right to Left + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Tests/gui/NSStackView/TestInfo b/Tests/gui/NSStackView/TestInfo new file mode 100644 index 0000000000..e69de29bb2 diff --git a/Tests/gui/NSStackView/basic.m b/Tests/gui/NSStackView/basic.m new file mode 100644 index 0000000000..e9159c6be9 --- /dev/null +++ b/Tests/gui/NSStackView/basic.m @@ -0,0 +1,64 @@ +#import "ObjectTesting.h" + +#import +#import + +// For some nib/xibs the AppDelegate is defined... +@interface AppDelegate : NSObject +{ + IBOutlet NSWindow *window; +} +@end + +@implementation AppDelegate +@end + + +int main() +{ + NSAutoreleasePool *arp = [NSAutoreleasePool new]; + NSArray **testObjects; + BOOL success = NO; + NSFileManager *mgr = [NSFileManager defaultManager]; + NSString *path = [mgr currentDirectoryPath]; + NSBundle *bundle = [[NSBundle alloc] initWithPath: path]; + + START_SET("NSStackView GNUstep basic") + + NS_DURING + { + [NSApplication sharedApplication]; + } + NS_HANDLER + { + if ([[localException name] isEqualToString: NSInternalInconsistencyException ]) + SKIP("It looks like GNUstep backend is not yet installed") + } + NS_ENDHANDLER + + if ([[path lastPathComponent] isEqualToString: @"obj"]) + { + path = [path stringByDeletingLastPathComponent]; + } + + PASS(bundle != nil, "NSBundle was initialized"); + + NS_DURING + { + success = [bundle loadNibNamed: @"MainMenu" + owner: [NSApplication sharedApplication] + topLevelObjects: testObjects]; + + PASS(success == YES, ".xib file containing an NSStackView loads properly"); + } + NS_HANDLER + { + NSLog(@"%@", [localException reason]); + } + NS_ENDHANDLER + + END_SET("NSStackView GNUstep basic") + + [arp release]; + return 0; +}