* Tests/gui/NSBezierPath/windingCountAtPoint.m

* Tests/gui/NSCell/basic.m
	* Tests/gui/NSEvent/delta.m
	* Tests/gui/NSPasteboard/lazy_copy.m
	* Tests/gui/NSSavePanel/setDelegate_reload.m
	* Tests/gui/NSSliderCell/minMax.m
	* Tests/gui/NSView/NSView_visibleRect.m
	Remove comipler warnings in test code.
	* Tests/gui/TextSystem/deallocation.m
	Move auto release pool inside of the test set to get the test
	working again.
This commit is contained in:
fredkiefer 2017-12-28 17:18:03 +01:00
parent 441af148b2
commit d6a1c119f5
8 changed files with 28 additions and 15 deletions

View file

@ -1,3 +1,16 @@
2017-12-28 Fred Kiefer <FredKiefer@gmx.de>
* Tests/gui/NSBezierPath/windingCountAtPoint.m
* Tests/gui/NSCell/basic.m
* Tests/gui/NSEvent/delta.m
* Tests/gui/NSPasteboard/lazy_copy.m
* Tests/gui/NSSavePanel/setDelegate_reload.m
* Tests/gui/NSSliderCell/minMax.m
Remove comipler warnings in test code.
* Tests/gui/TextSystem/deallocation.m
Move auto release pool inside of the test set to get the test
working again.
2017-12-28 Fred Kiefer <FredKiefer@gmx.de>
* Printing/GSCUPS/GSCUPSPrinter.m,

View file

@ -117,8 +117,6 @@ int main(int argc, char **argv)
{
CREATE_AUTORELEASE_POOL(arp);
NSBezierPath *p=[[NSBezierPath alloc] init];
NSRect r;
float x;
int i;
const char *str;
int X=-1000;

View file

@ -53,20 +53,21 @@ int main()
return YES;
if (![anObject isKindOfClass: [NSCell class]])
return NO;
if (![[anObject stringValue] isEqual: [self stringValue]])
if (![[(NSCell *)anObject stringValue] isEqual: [self stringValue]])
return NO;
if (![[anObject title] isEqual: [self title]])
if (![[(NSCell *)anObject title] isEqual: [self title]])
return NO;
if (!([anObject image] == [self image]) && ![[anObject image] isEqual: [self image]])
if (!([(NSCell *)anObject image] == [self image])
&& ![[(NSCell *)anObject image] isEqual: [self image]])
{
NSLog(@"image differ %@ %@", [self image], [anObject image]);
return NO;
}
if ([anObject type] != [self type])
if ([(NSCell *)anObject type] != [self type])
return NO;
if ([anObject tag] != [self tag])
if ([(NSCell *)anObject tag] != [self tag])
return NO;
return YES;
}
@end
@end

View file

@ -1,6 +1,7 @@
#include "Testing.h"
#include <Foundation/NSAutoreleasePool.h>
#include <Foundation/NSDictionary.h>
#include <Foundation/NSString.h>
#include <AppKit/NSApplication.h>

View file

@ -29,10 +29,9 @@ int main(int argc, char **argv)
CREATE_AUTORELEASE_POOL(arp);
NSPasteboard *pb=[NSPasteboard pasteboardWithName: @"lazy copy test"];
int i;
NSString *s;
i=[pb declareTypes: [NSArray arrayWithObject: NSStringPboardType]
[pb declareTypes: [NSArray arrayWithObject: NSStringPboardType]
owner: [Foo self]];
DESTROY(arp);

View file

@ -9,6 +9,10 @@ delegate changes.
#include <AppKit/AppKit.h>
@interface NSSavePanel (TestDelegate)
- (NSMatrix *)lastColumnMatrix;
@end
@implementation NSSavePanel (TestDelegate)
- (NSMatrix *)lastColumnMatrix
@ -23,8 +27,6 @@ delegate changes.
@implementation Delegate
static BOOL pressed;
static NSSavePanel *sp;
+ (BOOL) panel: (NSSavePanel *)p
shouldShowFilename: (NSString *)fname

View file

@ -11,7 +11,6 @@ int main()
{
CREATE_AUTORELEASE_POOL(arp);
NSSliderCell *cell;
NSNumber *num;
START_SET("NSSliderCell GNUstep minMax")

View file

@ -23,9 +23,9 @@ main(int argc, char **argv)
NSTextStorage *ts;
NSTextContainer *tc;
NSTextView *tv;
CREATE_AUTORELEASE_POOL(arp);
START_SET("TextSystem GNUstep deallocation")
CREATE_AUTORELEASE_POOL(arp);
NS_DURING
{
@ -81,8 +81,8 @@ main(int argc, char **argv)
pass([tv layoutManager] == nil, "NSTextView -layoutManager returns nil");
pass([tv textStorage] == nil, "NSTextView -textStorage returns nil");
DESTROY(arp);
END_SET("TextSystem GNUstep deallocation")
DESTROY(arp);
return 0;
}