Commit graph

47 commits

Author SHA1 Message Date
rfm
3a3a8c47c9 Fix a few testcase leaks 2025-01-01 15:03:52 +00:00
rfm
96a719ae20 Fix trival leaks 2024-12-31 08:21:15 +00:00
Fred Kiefer
87e132ca82 Fix test GSCellFlags.
Make NSBezierPath -dealloc a bit saver.
2024-11-15 22:10:29 +01:00
johnathan-becker
55ef9f465f
Add Tests for GSCodingFlags (#303)
* add test

* remove backend call

* fix this

* fix =
2024-10-14 22:34:51 +02:00
Gregory John Casamento
4f9889bbe4 Fix selector issue: quick fix 2024-07-26 23:31:46 -04:00
rfm
c93ee13f57 Fix missing return (suggested by Yavor Doganov) 2024-06-06 16:25:43 +01:00
rfm
c9a0e74437 Fixup bad testcases with non-portable code 2024-06-06 12:33:05 +01:00
rfm
71b82ee7a2 Fixup testcase to actually work on gcc systems etc 2024-06-05 12:14:42 +01:00
rfm
d312fbe168 Fix for #276 2024-06-03 16:55:33 +01:00
rfm
51ed6a9608 Fix to work without fast enumeration, also fix codign style errors and compiler warnings about operator precedence. 2024-06-03 16:06:00 +01:00
Frederik Carlier
2ab5953ea3
Add NSButtonCell, NSMenuItem keyEquivalentModifierMask encoding tests (#264) 2024-04-25 17:31:47 +02:00
Frederik Carlier
2ebf167e6f
It looks like GNUstep backend is not yet installed (#263) 2024-04-25 17:22:57 +02:00
Fred Kiefer
3fcd2e704f Fix typo in test comment 2022-06-19 16:49:47 +02:00
Riccardo Mottola
a7397b787c add tests 2022-03-22 23:59:10 +01:00
Gregory John Casamento
3d63255fe0 use general headers 2021-10-12 18:46:47 -04:00
Gregory John Casamento
bb17ac62d4 Minor corrections 2021-10-12 18:24:35 -04:00
Gregory John Casamento
0514328820 fix nib file 2021-10-11 19:34:56 -04:00
Gregory John Casamento
9c8e6d58ca Add nib 2021-10-11 19:31:16 -04:00
Gregory John Casamento
49b3111124 Add code to test xib file loading 2021-10-11 10:07:29 -04:00
Gregory John Casamento
9c3f0fbbf3 Add new test for NSNibLoading. Add method loadNibNamed:owner:topLevelObjects: 2021-10-11 09:42:46 -04:00
fredkiefer
d6a1c119f5 * 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.
2017-12-28 17:18:03 +01:00
Richard Frith-MacDonald
1b8dd0b36b Regression test improvments
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39755 72102866-910b-0410-8b05-ffd578937521
2016-05-13 15:41:27 +00:00
Fred Kiefer
59fa666263 * Tests/gui/NSView/NSView_autoresize_and_rounding.m: Add tests
for centerScanRect: with flipped view.
        * Source/NSView.m (-centerScanRect:): Change to get the failed
        tests to pass.
        * Source/GSThemeTools.m (-drawRoundBezel:withColor:): Make round
        bezel look a bit nicer.
        * Source/NSButtonCell.m (-drawImage:withFrame:inView:): Use
        centerScanRect: instead of similar code.
        * Source/NSCell.m: Use imageRectForBounds: and
        titleRectForBounds: in drawInteriorWithFrame:inView:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38929 72102866-910b-0410-8b05-ffd578937521
2015-08-25 21:33:04 +00:00
Fred Kiefer
8da8a7add8 * Source/NSBitmapImageRep.m (-copyWithZone): Changed the call
from -copyWithZone: to -mutableCopyWithZone:. 
        * Tests/gui/NSBitmapImageRep/testcopy.m: Test for this change
        Patch by Josh Freeman <tedge>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38301 72102866-910b-0410-8b05-ffd578937521
2015-01-23 17:16:08 +00:00
Ivan Vučica
8a34cc60b4 Don't fail if 'gnustep-tests --clean' fails.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37832 72102866-910b-0410-8b05-ffd578937521
2014-05-04 21:15:28 +00:00
Fred Kiefer
4765d0f314 * Tests/gui/NSImage/basic.m: Add basic tests for NSImage.
* Tests/gui/NSCell/basic.m: Extend basic tests for NSCell.
        * Source/NSImage.m: Try to correct keyed encoding/decoding. Add
        incomplete isEqual: method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36384 72102866-910b-0410-8b05-ffd578937521
2013-03-18 22:50:11 +00:00
Fred Kiefer
bfd8c9cba9 * Tests/gui/NSSavePanel/setDelegate_reload.m: Rewrite to remove
use of @defs().
        Base on idea by Wolfgang Lux  <wolfgang.lux@gmail.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36313 72102866-910b-0410-8b05-ffd578937521
2013-03-08 17:00:02 +00:00
Fred Kiefer
2f6cc73444 * Source/NSBezierPath.m: Implement keyed coding and complete
keyed decoding.
Patch by Christopher Armstrong <carmstrong@fastmail.com.au>
* Source/NSBezierPath.m: Rewrote -elementAtIndex:associatedPoints:
to return a point for NSClosePathBezierPathElement. And adjust
all callers to make use of that point. Complete non-keyed coding and
decoding.
* Tests/gui/NSBezierPath/basic.m: Add basic tests for NSBezierPath.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36267 72102866-910b-0410-8b05-ffd578937521
2013-03-04 16:51:10 +00:00
Wolfgang Lux
4470b2e655 Add new test to verify proper deallocation of text network elements.
NB This test is unlikely to yield correct results with a garbage
collected runtime; volunteers?


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35179 72102866-910b-0410-8b05-ffd578937521
2012-06-05 12:11:41 +00:00
Fred Kiefer
a1d2d901ad Mark all failing tests as dashed hopes to prepare for Jenkins.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35018 72102866-910b-0410-8b05-ffd578937521
2012-03-28 16:48:54 +00:00
Eric Wasylishen
880978575f * Tests/gui/NSView/NSView_autoresize_and_rounding.m: Add
centerScanRect test


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34103 72102866-910b-0410-8b05-ffd578937521
2011-11-01 17:37:26 +00:00
Fred Kiefer
90452c9b89 * Tests/gui/NSSavePanel/setDelegate_reload.m: Switch the save panel to
not show hidden files and remove ".svn" from the expected
  results. This file was never present in an exported directory
  and will no longer exist with SVN 1.7.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34100 72102866-910b-0410-8b05-ffd578937521
2011-10-31 22:17:30 +00:00
Fred Kiefer
1043d6ecce Split scroll test in two, as only the visibleRect method wont work for
views without window.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33614 72102866-910b-0410-8b05-ffd578937521
2011-07-23 14:21:28 +00:00
Fred Kiefer
c100baf6b4 Lots of minimal changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33613 72102866-910b-0410-8b05-ffd578937521
2011-07-23 13:43:33 +00:00
Eric Wasylishen
db1ce8c22c * Tests/gui/NSView/NSView_autoresize_and_rounding.m: Tweak the test
so it doesn't try to set the window size to {0,0}


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33489 72102866-910b-0410-8b05-ffd578937521
2011-07-08 19:26:55 +00:00
Eric Wasylishen
ceb2f73a53 * Tests/gui/NSView/NSView_autoresize_and_rounding.m: Add some more
test cases for when the view's width is 0


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33488 72102866-910b-0410-8b05-ffd578937521
2011-07-08 18:21:43 +00:00
Eric Wasylishen
81508c17ff * Tests/gui/NSView/NSView_autoresize_and_rounding.m:
More autoresizing test cases


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33472 72102866-910b-0410-8b05-ffd578937521
2011-07-07 05:05:37 +00:00
Eric Wasylishen
f4d911f81f * Tests/gui/NSView/NSView_autoresize_and_rounding.m:
Add a test for NSView autoresizing and rounding


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33471 72102866-910b-0410-8b05-ffd578937521
2011-07-06 20:16:50 +00:00
Fred Kiefer
87c05a3ba1 * Source/GSDragView.m (-init): Set the window background colour to clear.
* Headers/AppKit/NSAffineTransform.h,
* Headers/AppKit/NSView.h,
* Source/NSAffineTransform.m,
* Source/NSPrintOperation.m,
* Source/NSView.m: Use CGFlaot instead of float.
* Tests/gui/NSView/NSView_bounds_scale.m: New test file that currently fails.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33398 72102866-910b-0410-8b05-ffd578937521
2011-06-28 20:59:24 +00:00
Eric Wasylishen
c241019926 * Tests/gui/NSView/NSView_frame_bounds.m: Add some more tests
of setBoundsSize:. They are currently failing (but pass on
OS X).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32990 72102866-910b-0410-8b05-ffd578937521
2011-05-06 01:01:21 +00:00
Nicola Pero
2c78eae8da Minor tidyups to tests makefiles
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32810 72102866-910b-0410-8b05-ffd578937521
2011-04-08 18:40:44 +00:00
Fred Kiefer
5671f52913 Clean up test code and add a new basic test.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32726 72102866-910b-0410-8b05-ffd578937521
2011-03-28 16:26:47 +00:00
Richard Frith-MacDonald
6a5c5d12d4 use gnustep-make
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32401 72102866-910b-0410-8b05-ffd578937521
2011-02-28 10:13:35 +00:00
Richard Frith-MacDonald
e813542d97 add TestInfo markers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32336 72102866-910b-0410-8b05-ffd578937521
2011-02-23 18:36:57 +00:00
Richard Frith-MacDonald
e25e7e8a71 Move NSAffineTransform tests to base
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32308 72102866-910b-0410-8b05-ffd578937521
2011-02-22 23:08:59 +00:00
Richard Frith-MacDonald
2f0bd0708e delete obsolete makefile
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32303 72102866-910b-0410-8b05-ffd578937521
2011-02-22 18:50:23 +00:00
Richard Frith-MacDonald
251b1edd94 Import testsuite
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32225 72102866-910b-0410-8b05-ffd578937521
2011-02-19 16:57:57 +00:00