Commit Graph
526 Commits
Author SHA1 Message Date
Alexander Köplinger 48e112d652 [Cleanup] Removed TARGET_JVM
It was once part of a special Java target profile, but this is no longer used today.
2014-08-08 03:28:34 +02:00
Alexander Köplinger 5f4b8c2cf4 [Cleanup] Removed JavaEE csproj and sln files
They were once part of a special Java target profile, but this is no longer used today.
2014-08-07 23:01:53 +02:00
Alexander Köplinger 0450000dc4 [Cleanup] Removed a bunch of superfluous .csproj and .sln files
Most of these files weren't updated in the last >5 years and serve no purpose today, so they only clutter the repository.
2014-08-06 18:02:30 +02:00
Alexander Köplinger 9c73576f10 [System.Drawing] Delete test files after test 2014-07-07 14:24:55 +02:00
Eberhard Beilharz 4ee69bbd30 [Printing] Add unit test for Novell bug #602934
This unit test demonstrates the problem reported as #602934
(https://bugzilla.novell.com/show_bug.cgi?id=602934).
2014-02-28 16:36:26 +01:00
Alexander Köplinger b0032294da [Test] Cleaned up how a bunch of tests were ignored
Previously, many tests just had a return statement when the test shouldn't
be executed (e.g. Unix-only). This made it look like the test was successful
when in fact it wasn't executed at all.
Assert.Ignore() is now used instead to correctly exclude those tests.
2014-02-23 19:44:21 +01:00
Alexander Köplinger 6923ba9c02 Fixed a test failure that occurs when the specified font is not installed.
On systems where 'Liberation Sans' is not installed out-of-the-box
(e.g. Ubuntu Server, OpenSuse Server) it falls back to 'DejaVu Sans',
which makes the GetHashCode_NameDiffers_HashesNotEqual() test fail as
the two font names are now equal. Instead we use 'Arial' and 'Courier New'
which resolve to different fonts on most systems.

Changes licensed under MIT/X11.
2013-11-12 19:07:25 +01:00
gvillanueva 234c346b81 Rewrote Font.GetHashCode() to improve uniqueness.
Added test cases to prevent reintroduction of collision scenarios observed in Font.GetHashCode().
2013-08-27 22:22:09 -07:00
Miguel de Icaza c1c9dbb538 Put back the tests, we were trying to track down the regressions 2013-05-24 15:20:50 -04:00
Martin Baulig 7d92f4652d [System.Drawing]: Disable more broken tests. 2013-05-24 20:16:29 +02:00
Martin Baulig d97c1a2236 [System.Drawing]: Disable broken tests. 2013-05-24 02:28:24 +02:00
Martin Baulig a0a7c13e5f Disable failing tests on the Mac.
* System.Drawing (filed #7940 about this):
  GraphicsTest.DrawFillRectangle_Width_2 and
  GraphicsTest.FillDrawRectangle_Width_2

* Mono.Posix (filed #7942):
  UnixUserTest.NonReentrantSyscalls

* WCF (filed #7943):
  CallbackBehaviorAttributeTest.CallbackExample1
  CallbackBehaviorAttributeTest.CallbackExample2
  UriTemplateTest.EscapedUriCandidate
  UriTemplateTest.SimpleWebGet
  AnnouncementClientTest.AnnonceOnlineOfflineAddressSchemeMismatch
2012-10-23 13:02:01 +02:00
Jérémie Laval c0a8ef12af Merge pull request #439 from mono-soc-2012/garyb/iconfix
Fix for corruption of vista icons on save
2012-09-10 05:28:33 -07:00
garyb ef4470f38a System.Drawing: added email to icon and test file headers 2012-08-20 18:30:04 +01:00
garyb 1d88520773 Save icon with 256px image without losing data, Bugs Novell:415809 Xamarin:6451 2012-08-18 23:24:22 +01:00
Rolf Bjarne Kvinge 53f463e089 Rework RectangleF.Contains to not do equality comparison on floating point values. Fixes #5985. 2012-07-05 14:54:31 +02:00
Rob Wilkens 2ab9c2a739 Bug 1202 Fix: Adds float.NaN checks to DrawLine
As reported in Bug1202, Graphics.DrawLine was drawing a line when one of the
x/y parameters was NotANumber.  This differred from Microsoft.NET Behavior.
This patch brings it back in line by adding the checks.

This includes an extended unit test which now fails without this patch and
passes with it.

https://bugzilla.xamarin.com/show_bug.cgi?id=1202

No additional System.Drawing unit tests fail with this patch than without
it, presuming this patch is applied.
2012-06-23 09:07:35 -04:00
Miguel de Icaza a93835169b AOT not supported on Windows, warn the user 2012-04-24 00:08:16 -04:00
Miguel de Icaza 3038872e19 When running in MonoTouch, compare against a reference image, instead of generating the reference image 2012-04-22 21:11:09 -04:00
Miguel de Icaza 0e011eb7af Some small changes to assist Coregraphics System.Drawing 2012-04-20 00:36:55 -04:00
Miguel de Icaza 520b70deff Small touch up in the DrawingTest 2012-04-19 10:57:47 -04:00
Miguel de Icaza c2a3b43156 Bring this test to the new NUnit syntax 2012-04-12 23:26:07 -04:00
Miguel de Icaza bea98513ec Fix the build, add PDComparer to the Makefile 2012-04-12 23:26:06 -04:00
Miguel de Icaza dfb6317f7f Add some changes to work on MonoTouch 2012-04-12 23:26:06 -04:00
Raja R Harinath cd51491631 Fix a few cases of mixed line-endings
This is a scripted conversion of mixed line-ending files to LF-only or CRLF-only
based on which patch is smaller.  I used a threshold of upto a quarter of the
lines to determine whether to keep the patch or not.
2010-07-26 02:20:13 +05:30
Raja R Harinath b293948fb7 EOL handling
This set of .gitattributes was automatically generated from the list of files
that GIT tried to normalize when I enabled automatic EOL conversion.

With this set of attributes, we prevent automated EOL conversion on files that
we know will cause trouble down the road.
2010-07-25 20:17:39 +05:30
Sebastien Pouliot 451cfe2509 2009-07-20 Sebastien Pouliot <[email protected]>
* TestGraphics.cs: Add test case for #556181


svn path=/trunk/mcs/; revision=160639
2010-07-21 01:32:51 +00:00
Sebastien Pouliot e3a9837c8f 2010-07-15 Sebastien Pouliot <[email protected]>
* LinearGradientBrushTest.cs: Add test case for #537396 (empty rects)


svn path=/trunk/mcs/; revision=160455
2010-07-15 18:40:52 +00:00
Marek Safar 5ebec62786 2009-10-13 Marek Safar <[email protected]>
* KnownColors.cs: FindColorMatch has to match only predefined color
	names ignoring system elements.

	* ColorTranslator.cs: Add more predefined names.


svn path=/trunk/mcs/; revision=144019
2009-10-13 15:43:44 +00:00
Atsushi Eno c36e34c3bd 2009-08-28 Atsushi Enomoto <[email protected]>
* TestBlend.cs, TestMatrix.cs : nunit test upgrade to modern style.


svn path=/trunk/mcs/; revision=140869
2009-08-28 10:28:08 +00:00
Atsushi Eno 036afe79ce 2009-08-28 Atsushi Enomoto <[email protected]>
* TestColor.cs, TestPoint.cs, TestGraphics.cs, TestSystemBrushes.cs,
	  TestPens.cs, TestSize.cs, TestSystemPens.cs: nunit test upgrade.


svn path=/trunk/mcs/; revision=140868
2009-08-28 10:22:46 +00:00
Carlos Alberto Cortez a327820630 2009-07-09 Carlos Alberto Cortez <[email protected]>
* PageSourceTest.cs:
	* PaperSizeTest.cs: Include the new tests in NET_2_0 define, to fix
	the 1.1 build.


svn path=/trunk/mcs/; revision=137589
2009-07-08 23:40:55 +00:00
Carlos Alberto Cortez dc58173d51 2009-07-08 Carlos Alberto Cortez <[email protected]>
* PageSourceTest.cs: New file, by Andy Hume <[email protected]>


svn path=/trunk/mcs/; revision=137564
2009-07-08 12:56:29 +00:00
Carlos Alberto Cortez bba023dbd1 2009-07-08 Carlos Alberto Cortez <[email protected]>
* PaperSizeTest.cs: New file, by Andy Hume <[email protected]>


svn path=/trunk/mcs/; revision=137560
2009-07-08 12:01:07 +00:00
Sebastien Pouliot 21287d4719 2009-01-02 Sebastien Pouliot <[email protected]>
* TestBitmap.cs: Add test cases for SetResolution


svn path=/trunk/mcs/; revision=122355
2009-01-02 21:31:04 +00:00
Sebastien Pouliot 29533acdff 2009-01-02 Sebastien Pouliot <[email protected]>
* PenTest.cs: Fix test case not to use a color that is "destroyed" 
	by another unit test. The nunit update changed the order in which 
	the test cases are executed.


svn path=/trunk/mcs/; revision=122341
2009-01-02 16:07:12 +00:00
Sebastien Pouliot e29ace8e98 2008-12-23 Sebastien Pouliot <[email protected]>
* GDIPlusTest.cs: Add MeasureCharacterRanges test cases around bug
	#449971 and add a few delta for FP comparison.
	* TestGraphics.cs: Add a few delta for FP comparison.


svn path=/trunk/mcs/; revision=122060
2008-12-23 21:11:13 +00:00
Sebastien Pouliot bf17ee5e26 2008-12-23 Sebastien Pouliot <[email protected]>
* GraphicsPathTest.cs, LinearGradientBrushTest.cs, TestMatrix.cs:
	Add delta when comparing floating point values since there can be
	small differences between different platforms.


svn path=/trunk/mcs/; revision=122052
2008-12-23 20:10:57 +00:00
Miguel de Icaza 8e07acf772 Multiple files:
Deals with the extension to Environment.OSVersion.Platform that might return a new
value MacOSX (6) on .NET
 

svn path=/trunk/mcs/; revision=121711
2008-12-17 17:56:25 +00:00
Atsushi Eno f463d48ab1 2008-12-10 Atsushi Enomoto <[email protected]>
* TestGraphics.cs, GDIPlusTest.cs : fix tests wrt rounding that
	  were failing on .NET too (exposed by nunit24).

	* LinearGradientBrushTest.cs, GraphicsPathTest.cs,
	  TestMatrix.cs : fix tests wrt rounding that were failing on .NET
	  too (exposed by nunit24).


svn path=/trunk/mcs/; revision=121182
2008-12-10 02:06:14 +00:00
Sebastien Pouliot 06846be145 2008-11-01 Sebastien Pouliot <[email protected]>
* TestFont.cs: Add test cases for null checks to ensure we match
	MS behavior.


svn path=/trunk/mcs/; revision=117629
2008-11-02 00:50:18 +00:00
Sebastien Pouliot 8e543f769b 2008-11-01 Sebastien Pouliot <[email protected]>
* GraphicsPathIteratorTest.cs: New. Add some (incomplete) unit 
	tests for GraphicsPathIterator. Test cases are mostly to ensure 
	null check compatibility with MS.
	* LinearGradientBrushTest.cs: Add test case when setting null
	on properties.
	* PathGradientBrushTest.cs: Add test case when setting null
	on properties.


svn path=/trunk/mcs/; revision=117628
2008-11-02 00:48:42 +00:00
Sebastien Pouliot 62a5a3ef51 normalize line endings
svn path=/trunk/mcs/; revision=117618
2008-11-01 19:23:59 +00:00
Zoltan Varga f10ff05fc6 2008-10-08 Zoltan Varga <[email protected]>
* Makefile */Makefile build/profiles/*.make: Rename the 'default'
	profile to 'net_1_1'.

svn path=/trunk/mcs/; revision=115166
2008-10-08 05:58:51 +00:00
Sebastien Pouliot facb079bc0 2008-10-06 Sebastien Pouliot <[email protected]>
* TestColor.cs: Add test case, from Gert Driesen, for bug #410693
	* TestRectangleF.cs: Add test case, from Imie Nazwisko, for bug #431587

svn path=/trunk/mcs/; revision=114972
2008-10-06 17:16:34 +00:00
Sebastien Pouliot 9aa4eb45ae 2008-10-06 Sebastien Pouliot <[email protected]>
* TestRectangleF.cs: Add test case for bug #431587


svn path=/trunk/mcs/; revision=114954
2008-10-06 15:06:44 +00:00
Sebastien Pouliot 139627fce1 2008-09-03 Sebastien Pouliot <[email protected]>
* GraphicsPathTest.cs: Add unit test to check for an open curve
	points.


svn path=/trunk/mcs/; revision=112178
2008-09-03 12:48:57 +00:00
Sebastien Pouliot 8db83f99b4 2008-09-02 Sebastien Pouliot <[email protected]>
* GraphicsPathTest.cs: Add a bunch of unit tests to check when 
	points can be compressed (removed) when adding shapes to a path.


svn path=/trunk/mcs/; revision=112123
2008-09-02 21:30:56 +00:00
Gert Driesen d52616b0a7 * TestIcon.cs: Add test case for bug #415581.
* Makefile: Add 415581.ico.
* Icon.cs (InitFromStreamWithSize): Use temp ArrayList for IconDirEntry
to avoid empty slots in array. Use actual index of IconDirEntry in
array when entries have been skipped. Fixes bug #415581.

svn path=/trunk/mcs/; revision=110007
2008-08-08 18:21:51 +00:00
Gert Driesen 1e0e40dce7 * TestIcon.cs: Modified test for bug #410608 to work around bug
#415809.

svn path=/trunk/mcs/; revision=109985
2008-08-08 16:58:46 +00:00