Commit Graph
462 Commits
Author SHA1 Message Date
Sebastien Pouliot 41c5d0c907 2005-09-22 Sebastien Pouliot <[email protected]>
* PrintingPermissionAttributeTest.cs: Removed *Choice security actions


svn path=/trunk/mcs/; revision=50472
2005-09-22 13:25:07 +00:00
Vladimir Krasnov 7c69c680a8 svn path=/trunk/mcs/; revision=50383 2005-09-21 16:02:24 +00:00
Vladimir Krasnov 11862b9779 Graphics.cs: Added tests for DrawImage
Image.cs:  Added tests for clone, GetFrameCount

svn path=/trunk/mcs/; revision=50382
2005-09-21 16:01:34 +00:00
Jordi Mas i Hernandez 6d777d52a9 2005-09-21 Jordi Mas i Hernandez <[email protected]>
* Graphics.cs: Fixes exception type at FromImage method


svn path=/trunk/mcs/; revision=50363
2005-09-21 10:28:17 +00:00
Vladimir Krasnov cb6c64126a DrawingTest.cs: Added Pixel Distance comparer PDCompare()
Added PDComparer.cs
Graphics.cs: Added tests for DrawImage, fixed use pixel distance comparer

svn path=/trunk/mcs/; revision=50284
2005-09-20 09:35:49 +00:00
Miguel de Icaza e021474a87 2005-09-19 Miguel de Icaza <[email protected]>
* Graphics.cs: Removed restriction on the images that can be
	loaded.  Indexed images *can* be loaded

2005-09-19  Miguel de Icaza  <[email protected]>

	* Makefile (EXTRA_DISTFILES): Distribute indexed.png, add resource
	to build.

2005-09-19  Miguel de Icaza  <[email protected]>

	* TestGraphics.cs (LoadIndexed): Add test for the indexed bug.



svn path=/trunk/mcs/; revision=50273
2005-09-20 03:44:06 +00:00
Sebastien Pouliot f20e30ef52 2005-09-16 Sebastien Pouliot <[email protected]>
* PrintingPermissionTest.cs: Before 2.0 some test cases throws 
	ArgumentException.


svn path=/trunk/mcs/; revision=50147
2005-09-16 12:53:59 +00:00
Sebastien Pouliot b4bfb1b3ff 2005-09-16 Sebastien Pouliot <[email protected]>
* TestBmpCodec.cs, TestColorMatrix.cs, TestImageAttributes.cs, 
	TestImageCodecInfo.cs, TestJpegCodec.cs: Deny UnmanagedCode permission
	to all tests. This shows (when executed under MS runtime) that S.D API
	is safe and doesn't requires high privileges to run - even if we know
	that, deep down, this calls into GDI+.


svn path=/trunk/mcs/; revision=50146
2005-09-16 12:51:34 +00:00
Sebastien Pouliot d32ce12514 2005-09-16 Sebastien Pouliot <[email protected]>
* TestBlend.cs, TestColorBlend.cs, TestHatchBrush.cs, TestMatrix.cs:
	Deny UnmanagedCode permission to all tests. This shows (when executed 
	under MS runtime) that S.D API is safe and doesn't requires high 
	privileges to run - even if we know that, deep down, this calls into 
	GDI+.


svn path=/trunk/mcs/; revision=50144
2005-09-16 12:48:44 +00:00
Sebastien Pouliot 45f11b2022 2005-09-16 Sebastien Pouliot <[email protected]>
* CategoryNameCollectionCas.cs: New. CAS unit tests to check for 
	LinkDemand for SkipVerification.
	* PaintValueEventArgsCas.cs: New. CAS unit tests to check for 
	LinkDemand for SkipVerification.
	* PropertyValueUIItemCas.cs: New. CAS unit tests to check for 
	LinkDemand for SkipVerification.
	* ToolboxComponentsCreatedEventArgsCas.cs: New. CAS unit tests to 
	check for LinkDemand for SkipVerification.
	* ToolboxComponentsCreatingEventArgsCas.cs: New. CAS unit tests to 
	check for LinkDemand for SkipVerification.
	* ToolboxItemCas.cs: New. CAS unit tests to check for LinkDemand for
	SkipVerification.
	* ToolboxItemCollectionCas.cs: New. CAS unit tests to check for 
	LinkDemand for SkipVerification.
	* UITypeEditorCas.cs: New. CAS unit tests to check for LinkDemand for
	SkipVerification.

svn path=/trunk/mcs/; revision=50143
2005-09-16 12:46:20 +00:00
Sebastien Pouliot b684edb3a5 2005-09-16 Sebastien Pouliot <[email protected]>
* BitmapCas.cs: New. CAS unit tests for Bitmap.
	* GraphicsCas.cs: New. CAS unit tests for Graphics.
	* ColorConverter.cs, ColorTranslator.cs, TestBrushes.cs, TestBitmap.cs
	TestColor.cs, TestFont.cs, TestIcon.cs, TestIconConverter.cs,
	TestImage.cs, TestImageConverter.cs, TestImageFormatConverter.cs,
	TestPens.cs, TestPoint.cs, TestPointF.cs, TestPointConverter.cs,
	TestRectangle.cs, TestRectangleF.cs, TestRectangleConverter.cs,
	TestRegion.cs, TestSizeConverter.cs, TestSize.cs, TestSizeF.cs,
	TestStringFormat.cs, TestSystemBrushes.cs, TestSystemPens.cs: Deny 
	UnmanagedCode permission to all tests. This shows (when executed under
	MS runtime) that S.D API is safe and doesn't requires high privileges
	to run - even if we know that, deep down, this calls into GDI+.


svn path=/trunk/mcs/; revision=50142
2005-09-16 12:41:12 +00:00
Jordi Mas i Hernandez 8fc432c337 2005-09-14 Jordi Mas i Hernandez <[email protected]>
* TestGraphics.cs: Adds default properties, properties set/get and save
	and restore status test


svn path=/trunk/mcs/; revision=50046
2005-09-14 17:56:37 +00:00
Jordi Mas i Hernandez fd82722a36 2005-09-13 Jordi Mas i Hernandez <[email protected]>
* TestGraphics.cs: resets graphics object status before every SetClip test


svn path=/trunk/mcs/; revision=49963
2005-09-13 11:43:41 +00:00
Gert Driesen 91bb376c52 * TestImageConverter.cs: Re-enabled GetProperties test.
* TestPointConverter.cs: same.
* TestRectangleConverter.cs: same.
* TestSizeConverter.cs: same.

svn path=/trunk/mcs/; revision=49941
2005-09-12 11:52:59 +00:00
Konstantin Triger ede75af473 Added test for Clipping
svn path=/trunk/mcs/; revision=49830
2005-09-09 21:32:23 +00:00
Jordi Mas i Hernandez 0640953beb * TestImagge.cs: File not found exception, related to fix r49744
* TestBimap.cs: File not found exception, related to fix r49744

2005-09-06 Jordi Mas i Hernandez <[email protected]>


svn path=/trunk/mcs/; revision=49790
2005-09-09 10:15:08 +00:00
Boris Kirzner 32883aaf57 Improve GraphicsPath perfomance.
svn path=/trunk/mcs/; revision=49621
2005-09-07 09:47:27 +00:00
Boris Kirzner 3edc5bfc44 Fixed GraphicsPath implementation and tests for TARGET_JVM.
svn path=/trunk/mcs/; revision=49541
2005-09-06 13:58:28 +00:00
Boris Kirzner 695b271d49 Bug fix.
svn path=/trunk/mcs/; revision=49540
2005-09-06 13:53:13 +00:00
Jordi Mas i Hernandez 2ec91b420e 2005-09-06 Jordi Mas i Hernandez <[email protected]>
* TestGraphics.cs: New test case, only clipping for now


svn path=/trunk/mcs/; revision=49527
2005-09-06 09:17:58 +00:00
Vladimir Krasnov 8ed5fff79f Graphics.cs: Added tests for Graphics.Begin/EndContaioner,
Graphics.Save/Restore, Transforms

svn path=/trunk/mcs/; revision=49032
2005-08-28 16:02:25 +00:00
Vladimir Krasnov d89bd396fb DrawingTest.cs: Added special tolerance feature
fixed compare()
fixed constructor

svn path=/trunk/mcs/; revision=49031
2005-08-28 15:50:06 +00:00
Gert Driesen 3acf0fed35 * TestPointConverter.cs: Use Assert class instead of deriving from
deprecated Assertion class. Tests now pass on both Mono and MS.NET.
* TestRectangleConverter.cs: same.
* TestSizeConverter.cs: same.
* PointConverter.cs: Use Int32Converter instead of Int32.Parse. First
convert string to int before checking number of components.
* RectangleConverter.cs: same.
* SizeConverter.cs: same.

svn path=/trunk/mcs/; revision=48908
2005-08-26 20:35:56 +00:00
Atsushi Eno ef963e72df 2005-08-26 Atsushi Enomoto <[email protected]>
* PrintingPermissionTest.cs, PrintingPermissionAttributeTest.cs :
	  removed BOM. LF as eol.


svn path=/trunk/mcs/; revision=48899
2005-08-26 16:47:26 +00:00
Gert Driesen 2acbd81a17 * ColorConverter.cs: Add hex string tests. Fixed tests to pass on
MS.NET.

svn path=/trunk/mcs/; revision=48895
2005-08-26 15:39:53 +00:00
Jordi Mas i Hernandez cbdbaf5533 2005-08-25 Jordi Mas i Hernandez <[email protected]>
* TestMatrix.cs: New test cases
	

svn path=/trunk/mcs/; revision=48828
2005-08-25 12:00:02 +00:00
Vladimir Krasnov e3e16b74d4 Pen.cs: Refactoring
Image.cs: Refactoring
Bitmap.cs: Refactoring
Graphics.cs: Refactoring
Region.cs: Refactoring

svn path=/trunk/mcs/; revision=48821
2005-08-25 09:15:41 +00:00
Jordi Mas i Hernandez a4d739e450 2005-08-24 Jordi Mas i Hernandez <[email protected]>
* TestMatrix.cs: New Matrix unit case


svn path=/trunk/mcs/; revision=48781
2005-08-24 15:05:47 +00:00
Jordi Mas i Hernandez 54df48e03e 2005-08-23 Jordi Mas i Hernandez <[email protected]>
* TestPens.cs: Add test for Equals method
	* TestBrushes.cs: Add test for Equals method


svn path=/trunk/mcs/; revision=48716
2005-08-23 11:40:01 +00:00
Jordi Mas i Hernandez a9f21455b2 2005-08-19 Jordi Mas i Hernandez <[email protected]>
* TestPointConverter.cs: Fixes and changes to make the test locale unsensitive
	* TestRectangleConverter.cs: Fixes and changes to make the test locale unsensitive
	* TestSizeConverter.cs:  Fixes and changes to make the test locale unsensitive
	* ColorConverter.cs: Fixes and changes to make the test locale unsensitive


svn path=/trunk/mcs/; revision=48547
2005-08-19 10:51:09 +00:00
Jordi Mas i Hernandez 637ce07255 2005-08-19 Jordi Mas i Hernandez <[email protected]>
*  TestBmpCodec.cs: Enable PixelFormat tests                                                  


svn path=/trunk/mcs/; revision=48546
2005-08-19 08:55:06 +00:00
Jordi Mas i Hernandez 1f1e167fb2 remove invalid test and unused vars
svn path=/trunk/mcs/; revision=48517
2005-08-18 19:03:01 +00:00
Jordi Mas i Hernandez 4530d38482 2005-08-17 Jordi Mas i Hernandez <[email protected]>
* TestRegion.cs: Adds many new cases for the new region implementation


svn path=/trunk/mcs/; revision=48466
2005-08-17 16:13:29 +00:00
Andrew Skiba 81ca813b86 Temporarily mark not working test
svn path=/trunk/mcs/; revision=48442
2005-08-16 17:13:24 +00:00
Andrew Skiba ed4855c56b ./
* System.Drawing.vmwcsproj: use ImageFormat.cs instead of jvm.cs
System.Drawing/
	* Icon.jvm.cs: match Bitmap internal constructor change
	* Image.jvm.cs: use ImageCodecInfo.Clsid as primary format id, not ImageFormat
	* Bitmap.jvm.cs: started changes for supporting ImageCodecInfo System.Drawing.Imaging/
	* ImageCodecInfo.jvm.cs: implement via java imageio, add internal APIs for
	fast read-only requests
	* Methafile.jvm.cs: change in not implemented api to match image.jvm.cs
Test/DrawingTest/Test/
	* Test.dotnet.csproj, Test.vmwcsproj: make Bitmap1.png embedded resource, add Bitmap1.bmp
	* Bitmap1.bmp: added to make tests on java without jai
	* Bitmap.cs: open bitmap from resources, to get rid of dir dependency
	* Color.cs: remove unnecessary using DrawingTestHelper
	* Graphics.cs: naive StringAlignment tests, must be improved later
	* Image.cs: same as Bitmap.cs + use test.bmp instead of test.png (works immediately on java w/o jai)
Test/System.Drawing.Imaging/
	* TestImageCodecInfo.cs: use regular expressions for results that may vary	while still in correct format, so same tests can be used for jvm
Test/
	* Test.dotnet.csproj, Test.vmwcsproj: Embed Bitmap1.png, add Bitmap1.bmp


svn path=/trunk/mcs/; revision=48441
2005-08-16 17:10:59 +00:00
Vladimir Krasnov 413875a3ed svn path=/trunk/mcs/; revision=48433 2005-08-16 14:42:31 +00:00
Gert Driesen 94168a5727 * Color.cs: To match MS.NET, throw ArgumentException instead of
ArgumentOutOfRangeException when color is not between 0 and 255.
* RectangleConverter.cs: Take culture into account when converting
to/from string. Use culture's ListSeparator as separator character.
* ColorConverter.cs: Mono now also throws ArgumentException when
color value is not between 0 and 255.
* TestColor.cs: Added tests for invalid color values.
* TestRectangleConverter.cs: Fixed tests for conversion to/from
string. Added tests that verify results using specific cultures.

svn path=/trunk/mcs/; revision=48426
2005-08-16 11:49:02 +00:00
Gert Driesen fe61110a68 * TestBrushes.cs: Set eol-style to native.
* TestBitmap.cs: Set eol-style to native.
* System.Drawing/TestColor.cs: Fixed line endings. Set eol-style to native.
* TestStringFormat.cs: Set eol-style to native.
* TestSystemBrushes.cs: Set eol-style to native.
* System.Drawing/TestSizeF.cs: Fixed and improved ToString tests. Removed
usage of deprecated Assertion class. Set eol-style to native.
* TestIconConverter.cs: Set eol-style to native.
* TestPointConverter.cs": Fixed and improved string conversion tests.
Set eol-style to native.
* TestImageFormatConverter.cs: Set eol-style to native.
* TestRegion.cs: Set eol-style to native.
* ColorTranslator.cs: Set eol-style to native.
* TestIcon.cs: Set eol-style to native.
* TestPoint.cs: Set eol-style to native.
* TestRectangleConverter.cs: Set eol-style to native.
* TestPointF.cs: Fixed and improved ToString tests. Removed
usage of deprecated Assertion class. Set eol-style to native.
* TestSizeConverter.cs: Fixed and improved string conversion tests.
Set eol-style to native.
* TestRectangle.cs: Set eol-style to native.
* TestPens.cs: Set eol-style to native.
* TestFont.cs: Set eol-style to native.
* ColorConverter.cs: Set eol-style to native.
* TestImageConverter.cs: Set eol-style to native.
* TestSize.cs: Set eol-style to native.
* TestSystemPens.cs: Set eol-style to native.
* TestRectangleF.cs: Set eol-style to native.

svn path=/trunk/mcs/; revision=48418
2005-08-16 09:32:31 +00:00
Gert Driesen 7667343f6b * ColorConverter.cs: Merged tests from TestColorConverter.cs. Fixed
tests using current culture.
* TestColorConverter.cs: Merged tests with ColorConverter.cs and
removed.
* System.Drawing.dll.sources: Removed TestColorConverter again, as
there was already a test class for ColorConverter.
* ColorConverter.cs: Use TextInfo.ListSeparator as separator, as this
appears to be what MS.NET uses.

svn path=/trunk/mcs/; revision=48374
2005-08-14 21:42:29 +00:00
Gert Driesen 3022a5a009 * TestColor.cs: Added test for ToString() on uninitialized color.
* TestColorConverter.cs: Added tests for ColorConverter.
* System.Drawing.dll.sources: Added TestColorConverter.cs.
* Color.cs: Fixed ToString for uninitialized color.
* ColorConverter.cs: Support conversion from whitespace-only string to
Color.Empty. Fixed conversion from Color.Empty and known colors to
string.

svn path=/trunk/mcs/; revision=48371
2005-08-14 20:01:48 +00:00
Jordi Mas i Hernandez 428470ff53 2005-08-10 Jordi Mas i Hernandez <[email protected]>
* TestRegion.cs: new cases for Combine and Intersect


svn path=/trunk/mcs/; revision=48239
2005-08-10 16:50:46 +00:00
Boris Kirzner 7e73b65b2f Test cases and fixes for GraphicsPath.jvm.cs
svn path=/trunk/mcs/; revision=48235
2005-08-10 16:15:49 +00:00
Zoltan Varga 68f7e5da6f 2005-08-10 Zoltan Varga <[email protected]>
* TestRectangle.cs: Add new test.

svn path=/trunk/mcs/; revision=48231
2005-08-10 14:47:07 +00:00
Andrew Skiba 61c7010c45 * TestImageCodecInfo.cs: FormatID, CodecName, DllName, FilenameExtension, Flags, FormatDescription, MimeType properties checked
svn path=/trunk/mcs/; revision=48180
2005-08-09 17:14:54 +00:00
Andrew Skiba cc5ebf00f5 refactor testcase, to make possible to check other properties
svn path=/trunk/mcs/; revision=48170
2005-08-09 15:07:46 +00:00
Andrew Skiba 1243e16ddc add ColorConverter.cs and ColorTranslator.cs to test sources list
svn path=/trunk/mcs/; revision=48155
2005-08-09 09:44:28 +00:00
Andrew Skiba 1aa808bcb0 * ColorConverter.cs, ColorTranslator.cs: added
* TestPointConverter.cs, TestRectangleConverter.cs, TestSizeConverter.cs: new tests for convert to/from string

svn path=/trunk/mcs/; revision=48150
2005-08-09 07:49:04 +00:00
Vladimir Krasnov 6c21d7d20c Pen.cs: Added LineCaps and LineJoin tests
Image.cs: Added png interop test
Added test images bitmap_gh.png, bitmap_net.png

svn path=/trunk/mcs/; revision=48133
2005-08-08 15:50:26 +00:00
Vladimir Krasnov 94f6f647cd svn path=/trunk/mcs/; revision=48132 2005-08-08 15:42:08 +00:00
Andrew Skiba 18bc2bfdef added ChangeLog
svn path=/trunk/mcs/; revision=48131
2005-08-08 15:34:50 +00:00