Commit Graph
1867 Commits
Author SHA1 Message Date
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
Geoff Norton cf717d5b88 2008-11-24 Geoff Norton <[email protected]>
* gdipFunctions.cs: Ensure that System.Drawing works on the mac as
	well as unix.

svn path=/trunk/mcs/; revision=119827
2008-11-24 18:43:20 +00:00
Andreia Gaita 0605c47f81 * System.Drawing/Image.cs: On win32, when cloning images initialized from
resources, also clone the underlying stream, since it needs to stay
  around for the life of the image (gdi doesn't clone the underlying
  stream when cloning images, so when the gc disposes the original, it
  will also dispose the stream, which invalidates the clone).

* System.Drawing/Bitmap.cs: Save the underlying stream when creating bitmaps from a
  clone under win32

* System.Drawing.Imaging/Metafile.cs: Save the underlying stream when creating from a
  clone under win32

  [fixes #438886]

2008-11-21  Andreia Gaita  <[email protected]>

svn path=/trunk/mcs/; revision=119580
2008-11-21 05:39:11 +00:00
Sebastien Pouliot 56a34361e0 Font.cs: Add comment on .ctor(Font,FontStyle) about the lack of null check (compatibility). Add proper (yet compatible ;-) null check to GetHeight(Graphics)
svn path=/trunk/mcs/; revision=117630
2008-11-02 00:52:45 +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 07be13d622 2008-11-01 Sebastien Pouliot <[email protected]>
* GraphicsPathIterator.cs: Add proper null check that match the same
	behavior that MS has.
	* LinearGradientBrush.cs: Add comments to setter that dont do any null
	check in order to be compatible with MS. Fix InterpolationColors to 
	throw a ArgumentNullException.
	* PathGradientBrush.cs: Add comments to setter that dont do any null
	check in order to be compatible with MS.
	[Found using Gendarme CheckParametersNullityInVisibleMethodsRule]


svn path=/trunk/mcs/; revision=117627
2008-11-02 00:46:24 +00:00
Sebastien Pouliot 62a5a3ef51 normalize line endings
svn path=/trunk/mcs/; revision=117618
2008-11-01 19:23:59 +00:00
Sebastien Pouliot b24dc833fc 2008-11-01 Sebastien Pouliot <[email protected]>
* PrintingServicesUnix.cs: Fix potential crash on 64bit OS. Gendarme
	rule for checking IntPtr has been updated to cover this case as well


svn path=/trunk/mcs/; revision=117611
2008-11-01 16:34:27 +00:00
Jonathan Pryor 2505f3eeca Migrating from monodoc/class/System.Drawing to mcs/class/System.Drawing/Documentation...
svn path=/trunk/mcs/; revision=116211
2008-10-17 14:11:56 +00:00
Sebastien Pouliot 144ccc1623 2008-10-12 Sebastien Pouliot <[email protected]>
* ColorPalette.cs, ImageFormat.cs: Remove unneeded field 
	initialization to their default values.
	[Found using Gendarme AvoidUnneededFieldInitializationRule]


svn path=/trunk/mcs/; revision=115566
2008-10-12 14:52:16 +00:00
Sebastien Pouliot 6f720f0e3f 2008-10-12 Sebastien Pouliot <[email protected]>
* PaperSize.cs, PreviewPrintController.cs, PrinterSettings.cs,
	PrintingPermissionAttribute.cs, PrintingPermission.cs: Remove unneeded
	field initialization to their default values.
	[Found using Gendarme AvoidUnneededFieldInitializationRule]


svn path=/trunk/mcs/; revision=115565
2008-10-12 14:48:17 +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 6dfeaed97e 2008-10-06 Sebastien Pouliot <[email protected]>
* Color.cs: Fix Color serialization by changing 'value' visibility
	to private and make everyone access it thru an internal property. 
	This also simplify the A, R, G and B properties and probably covers 
	a few other cases where a similar hack would have been required.
	[Fix bug #410693]
	* KnownColors.cs: Assign Color.Value property and not the value field.

svn path=/trunk/mcs/; revision=114971
2008-10-06 17:13:56 +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 4414e5801c RectangleF.cs: Fix edge intersection. Path by Brian Browning. [Fix bug #431587]
svn path=/trunk/mcs/; revision=114953
2008-10-06 15:05:57 +00:00
Jonathan Pobst 3136ee364b 2008-09-27 Jonathan Pobst <[email protected]>
* Tango-fy SystemIcons.

svn path=/trunk/mcs/; revision=114287
2008-09-27 15:01:55 +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
Marek Safar b2d5552461 Warnings cleanup
svn path=/trunk/mcs/; revision=111848
2008-08-28 17:45:48 +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
Gert Driesen bf1c5fb516 * TestIcon.cs: Ignore test for bug #410608 on Unix, since it depends
on bug #323511.

svn path=/trunk/mcs/; revision=109880
2008-08-07 17:21:30 +00:00
Gert Driesen 4b3d40e748 * Icon.cs (InitFromStreamWithSize): Move init of iconDir.idCount
and imageData until after the number of entries was determined to
cope with skipping of 256x256 icons. Fixes bug #410608.
* Makefile: Add 323511.ico.
* TestIcon.cs: Add test case for bug #410608.

svn path=/trunk/mcs/; revision=109879
2008-08-07 16:58:15 +00:00
Sebastien Pouliot c57fa9b620 2008-08-06 Sebastien Pouliot <[email protected]>
* ToolboxItem.cs: (Initialize) Avoid casting image to Bitmap 2 times.
	[Found using Gendarme]


svn path=/trunk/mcs/; revision=109814
2008-08-07 00:26:28 +00:00
Sebastien Pouliot f8c66eec5c System.Drawing_test.dll.sources: Add System.Drawing.Imaging.FrameDimension unit tests to the build
svn path=/trunk/mcs/; revision=109813
2008-08-07 00:20:17 +00:00
Sebastien Pouliot ecb99b894a 2008-08-06 Sebastien Pouliot <[email protected]>
* FrameDimensionTest.cs: New. Unit tests for FrameDimension


svn path=/trunk/mcs/; revision=109812
2008-08-07 00:19:00 +00:00
Sebastien Pouliot 2e9111b618 2008-08-06 Sebastien Pouliot <[email protected]>
* FrameDimension.cs: Fix double-cast in Equals (found using Gendarme).
	Then fixed a lot of other things while creating unit tests for it.


svn path=/trunk/mcs/; revision=109811
2008-08-07 00:18:04 +00:00
Sebastien Pouliot 6f7a5af5d5 2008-08-04 Sebastien Pouliot <[email protected]>
* GraphicsPathTest.cs: Add test case for "half" closed paths.
	[Bug #413461]


svn path=/trunk/mcs/; revision=109573
2008-08-04 14:28:41 +00:00
Sebastien Pouliot ab3fe05892 2008-07-14 Sebastien Pouliot <[email protected]>
* ImageAttributes.cs: Fix GetAdjustedPalette using new (and correct)
	signature.


svn path=/trunk/mcs/; revision=107877
2008-07-14 12:36:11 +00:00
Sebastien Pouliot 889fc8de6f gdipFunctions.cs: Fix signature for GdipGetImageAttributesAdjustedPalette
svn path=/trunk/mcs/; revision=107876
2008-07-14 12:35:46 +00:00
Sebastien Pouliot e6b41d017e 2008-07-07 Sebastien Pouliot <[email protected]>
* TestBitmap.cs: Add test case for #406763 and similar cases.


svn path=/trunk/mcs/; revision=107384
2008-07-07 14:01:18 +00:00
Sebastien Pouliot 2655974f0f 2008-07-07 Sebastien Pouliot <[email protected]>
* Bitmap.cs: Fix exceptions for some ctors.
	* Image.cs: Throw ArgumentNullException for null streams.
	[Fix bug #406763]


svn path=/trunk/mcs/; revision=107383
2008-07-07 14:00:14 +00:00
Sebastien Pouliot 83c90e2332 Image.cs: throw NotImplementedException in SetPropertyItem instead of executing broken code. See #406307 for test case.
svn path=/trunk/mcs/; revision=107188
2008-07-03 20:50:26 +00:00
Sebastien Pouliot 1da5af68db 2008-06-27 Sebastien Pouliot <[email protected]>
* TestRegion.cs: Add test case for #402613 to verify Exclude.
	Based on Jan Krajicek's code supplied inside the bug report.


svn path=/trunk/mcs/; revision=106769
2008-06-27 19:56:07 +00:00
Ivan Zlatev 2ff5d37631 2008-06-27 Ivan N. Zlatev <[email protected]>
* SizeConverter.cs: Fallback to CultureInfo.CurrentCulture 
	if supplied culture is null.
	* PointConverter.cs: Fallback to CultureInfo.CurrentCulture 
	if supplied culture is null.
	* Add tests accordingly


svn path=/trunk/mcs/; revision=106717
2008-06-27 01:26:33 +00:00
Sasha Kogan 7414dac1bd Bug 10597 fix.
svn path=/trunk/mcs/; revision=106504
2008-06-24 15:04:18 +00:00
Sebastien Pouliot 25a0ffc9f0 2008-06-23 Sebastien Pouliot <[email protected]>
* ImageAttributes.cs: Call CheckStatus in GetAdjustedPalette before
	trying to set the palette (since the values could be bad).
	[Partial fix for #402172]


svn path=/trunk/mcs/; revision=106499
2008-06-24 13:17:05 +00:00
Roei Erez 4487b858ce TARGET_JVM bug 10598
svn path=/trunk/mcs/; revision=106016
2008-06-17 15:44:34 +00:00
Roei Erez 160817d09b TARGET_JVM bug 10598
svn path=/trunk/mcs/; revision=106010
2008-06-17 15:29:36 +00:00
Roei Erez 63efa45540 TARGET_JVM bugs
10576 - Problem with GDI fonts.
10599 - Problem with Graphics.DrawString() with StringFormat
10600 - Problem with Graphics.DrawPath()

svn path=/trunk/mcs/; revision=105890
2008-06-16 11:25:22 +00:00
Noam Lampert 5a43e30bfa Remove all vmwcproj files from old Grasshopper version
svn path=/trunk/mcs/; revision=104227
2008-05-28 09:28:24 +00:00
Gert Driesen 80a65a2120 * Bitmap.cs: Changed argument names to match MS.
* CharacterRange.cs: Changed argument names to match MS.
* Color.cs: Changed argument names to match MS.
* Font.cs: Changed argument names to match MS.
* FontFamily.cs: Changed argument names to match MS.
* Graphics.cs: Changed argument names to match MS.
* Image.cs: Changed argument names to match MS.
* Icon.cs: Changed argument names to match MS.
* IconConverter.cs: Changed argument names to match MS.
* ImageAnimator.cs: Changed argument names to match MS.
* ImageConverter.cs: Changed argument names to match MS.
* ImageFormatConverter.cs: Changed argument names to match MS.
* Point.cs: Changed argument names to match MS.
* PointF.cs: Changed argument names to match MS.
* Rectangle.cs: Changed argument names to match MS.
* RectangleF.cs: Changed argument names to match MS.
* Region.cs: Changed argument names to match MS.
* Size.cs: Changed argument names to match MS.
* SizeF.cs: Changed argument names to match MS.
* StringFormat.cs: Changed argument names to match MS.
* SystemFonts.cs: Changed argument names to match MS.
* TextureBrush.cs: Changed argument names to match MS.

svn path=/trunk/mcs/; revision=104103
2008-05-26 20:53:21 +00:00
Sebastien Pouliot 233f3615b3 revert big, unreviewed, broken changes from r104029/30/31
svn path=/trunk/mcs/; revision=104043
2008-05-25 23:11:32 +00:00