Stephen Toub
e5ff70defe
Fix some license headers across the repo ( dotnet/corefx#27039 )
...
Commit migrated from https://github.com/dotnet/corefx/commit/7f19e761b7400521030707df2e6fac10daa36f26
2018-02-11 08:55:26 -05:00
Santiago Fernandez Madero
530cfa75cc
Fix some S.Drawing.Common licence headers ( dotnet/corefx#26863 )
...
Commit migrated from https://github.com/dotnet/corefx/commit/5102db65cef0b3b1ea46e30f699e834d8e923e82
2018-02-05 18:46:18 -05:00
Stephen Toub
2d4c0dd6c6
Remove several faulty System.Drawing.Common printer default tests ( dotnet/corefx#26639 )
...
Several printer-related tests in System.Drawing.Common are validating defaults that are actually based on system settings that are influenced by if and what printer(s) you have. On my machine, where I have a printer attached, this causes a handful of tests to fail. Since the tests assume defaults only in the context of no printer attached, the tests are invalid and I'm removing them. There are likely to be other tests as well that should be removed for a similar reason, but I've only removed enough so that the suite passes on my machine.
Commit migrated from https://github.com/dotnet/corefx/commit/450cad853b7c555286cec23564b47ec6853338f3
2018-01-29 14:17:31 -05:00
Jan Kotas
e6c28ba3b1
Cleanup CodeContracts annotations ( dotnet/corefx#26324 )
...
Commit migrated from https://github.com/dotnet/corefx/commit/a3e4e241c7b7c33750258082969287b9cf45d757
2018-01-14 14:19:41 -05:00
Wes Haggard
fc9b090ef0
Update references assemblies to include private fields for structs
...
Contributes to https://github.com/dotnet/corefx/issues/6185 .
Commit migrated from https://github.com/dotnet/corefx/commit/2e97d43060dfb589907a15dbfef0cc7db6e90546
2018-01-12 08:53:41 -08:00
Hugh Bellamy
68a9b18a2b
Share as much Bitmap code with Windows as possible ( dotnet/corefx#25922 )
...
Commit migrated from https://github.com/dotnet/corefx/commit/ec22edc155aa13289770c9f49630cc7ab588fca4
2017-12-21 17:30:57 -06:00
Santiago Fernandez Madero
c077e72880
Ensure build of netcoreapp vertical of CoreFx can be done without past packages ( dotnet/corefx#25921 )
...
* Add System.Drawing.Common to netcoreapp vertical
* Make System.Data.Odbc be able to build for netcoreapp vertical
* Add netcoreapp to System.Diagnostics.PerformanceCounter
* Add netcoreapp to System.Diagnostics.EventLog
* Run UpdateVSConfigurations
* Change Contains('netcoreapp') to StartsWith('netcoreapp')
* Include netcoreapp.depproj only when BuildAllConfigurations == true
* Change tests to netcoreapp from netcoreapp2.0 for vertical
Commit migrated from https://github.com/dotnet/corefx/commit/edacccb1cd6ecf7d36cd2379df8dd609ae0eb9a4
2017-12-18 17:20:36 -06:00
Marco Rossignoli
d2269ba0ad
"Don't directly throw Exception" System.Drawing ( dotnet/corefx#25791 )
...
* Don't directly throw Exception
* Don't directly throw Exception
* Don't directly throw Exception
* Don't directly throw Exception
* Don't directly throw Exception
* Don't directly throw Exception
* Don't directly throw Exception
* Don't directly throw Exception
* Don't directly throw Exception
Commit migrated from https://github.com/dotnet/corefx/commit/fc7e983f78c06d108d0007f9c13286ff6cf2c7a1
2017-12-12 16:13:33 -06:00
Jan Kotas
688b8a6e34
Delete unnecessary ComVisible annotations
...
Commit migrated from https://github.com/dotnet/corefx/commit/0eb5e7451028e9374b8bb03972aa945c128193e1
2017-11-19 10:37:38 -08:00
Jan Kotas
3df183ba68
Delete unnecessary CAS permission annotations
...
Commit migrated from https://github.com/dotnet/corefx/commit/80ba32d2c2ec22c80bea3b14d5ce966e0363f255
2017-11-19 10:37:38 -08:00
Jan Kotas
27d98c0776
Delete unnecessary SecurityCritical and SecuritySafeCritical annotations
...
Commit migrated from https://github.com/dotnet/corefx/commit/0bb106232745aedfc0d0c5a84ff2b244bf190317
2017-11-19 10:37:38 -08:00
Jan Kotas
90fa656634
Delete unnecessary SuppressUnmanagedCodeSecurity annotations
...
Commit migrated from https://github.com/dotnet/corefx/commit/80ca498aa650f863df8f974f28a3e4f1617f50fb
2017-11-19 10:37:38 -08:00
Frederik Carlier
a46d2669f6
Support loading libgdiplus from NuGet packages ( dotnet/corefx#25112 )
...
Commit migrated from https://github.com/dotnet/corefx/commit/35d0838c20965c526e05e119028dd7226084987c
2017-11-16 15:42:59 -08:00
Frederik Carlier
3a3ed6ab2b
Use RuntimeInformation.IsOSPlatform to detect macOS ( dotnet/corefx#25164 )
...
* Don't use uname to detect the OS
* Simplify all flags to UseX11Drawable only
* Remove unreachable code
* PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/227a8aeb1ef7633e98825b1ff150167252ac2cba
2017-11-12 22:33:13 -05:00
Jan Kotas
67c2132a23
Delete forced GC during System.Drawing.Common shutdown ( dotnet/corefx#25160 )
...
This is potential reliability and performance and problem. The forced GC is only going to collect unreachable objects, and so it is not providing any sort of guarantees that there are no outstanding GDI references. It should not be required.
Fixes dotnet/corefx#25159
Commit migrated from https://github.com/dotnet/corefx/commit/5d3eba34cf21b49d6918fd748322b3527146af56
2017-11-09 21:17:33 -05:00
Krzysztof Wicher
f3f741eade
Use distro detection from Microsoft.DotNet.PlatformAbstractions ( dotnet/corefx#24531 )
...
Commit migrated from https://github.com/dotnet/corefx/commit/4bf90198c5e7710ea67b7c1b467e859ec8bb78e5
2017-11-03 14:30:47 -07:00
Stephen Toub
54c1d578d8
Mark applicable structs as readonly
...
Commit migrated from https://github.com/dotnet/corefx/commit/54e889a7c71bf22f9f1ef244a9d040fee64c74d5
2017-11-03 09:48:47 -04:00
Santiago Fernandez Madero
46fce767b1
Fix System.Drawing.Configurations to be netstandard compatible ( dotnet/corefx#24758 )
...
* Fix System.Drawing.Configurations to be netstandard compatible
* PR Feedback and Add net461 to pkgproj supported frameworks
* Add xamarin frameworks as inbox
* Change InboxOnTargetFramework to include $(AllXamarinFrameworks)
Commit migrated from https://github.com/dotnet/corefx/commit/46ea605b5df6a3fe4ac635a426e31488c30c64b0
2017-10-27 13:27:51 -07:00
Viktor Hofer
fcc00e81f3
Make corefx exceptions serializable and add typeforwards ( dotnet/corefx#24427 )
...
* Add serializable attribute and typeforward and adding serialization impl
* Expose ZLibException in impl assembly
* Remove deserialization negative tests
* Adding tests for exceptions
* Adding SqlError data to base exception data table
* System Data Facade
* Add netfx471 blob diffs for Hashtable and ListDictionary
* Build Microsoft.NETCore.App.deps.json after manual shims
* Disable currently failing uap/uapaot tests because of shim assembly load errors
Commit migrated from https://github.com/dotnet/corefx/commit/e3f74deb999571d3f34a6b2b8011caebcf06dbfc
2017-10-27 18:00:52 +02:00
Dan Moseley
9d6c291060
Disable drawing test for Ubuntu1710 ( dotnet/corefx#24838 )
...
Commit migrated from https://github.com/dotnet/corefx/commit/af71933b0278df26fedac885811a2e93a62d9df6
2017-10-24 12:49:01 -07:00
Kostadin Vasilev
aaf814fe6c
Fix for GraphicsPathIterator.CopyData throws EntrypointNotFoundException when index is out of range. ( dotnet/corefx#24656 )
...
* Fix for GraphicsPathIterator.CopyData throws EntrypointNotFoundException when index is out of range.
* Reverting changes made in src/System.Drawing.Common/src/misc/GDI/SafeNativeMethods.cs and updating Gdiplus.cs - SafeNativeMethods.
* Removing ZeroMemory() out of kernel32. And related changes into GraphicsPathIterator.cs.
* PF feedback - Optimizing ZeroMemory().
Commit migrated from https://github.com/dotnet/corefx/commit/3b867880d9992f305757db85a9b32044f9773863
2017-10-17 17:32:49 -04:00
Santiago Fernandez Madero
6e98fd4faa
Disable System.Drawing.Common crashing test ( dotnet/corefx#24581 )
...
Commit migrated from https://github.com/dotnet/corefx/commit/02eba0a9870c2ab72f8f417a28662ff677e0514b
2017-10-11 13:30:03 -07:00
Stephen Toub
4976bf5578
Disable PngCodecTests on Unix ( dotnet/corefx#24545 )
...
Lots of ArgumentException failures are taking out CI runs.
Commit migrated from https://github.com/dotnet/corefx/commit/743973e8ed59268d6cd7935424a0d45b504b62eb
2017-10-10 09:56:03 -04:00
Eric Mellino
48400b9296
Remove unused resource string in System.Drawing.Common.
...
Commit migrated from https://github.com/dotnet/corefx/commit/25031c34e55cbce657a6c806ddd7a183d59b3c46
2017-10-06 10:02:17 -07:00
Eric Mellino
aeb99ac0fc
Give a meaningful exception message when FunctionWrapper targets are not successfully loaded.
...
Commit migrated from https://github.com/dotnet/corefx/commit/f519f45c4f8c5fbc069d1fd751b76c42c9525acc
2017-10-05 16:26:54 -07:00
Eric Mellino
a5c5c4557f
Merge pull request dotnet/corefx#24208 from qmfrederik/drawing/mono-codec-tests
...
Tests Drawing Codecs (based on Mono's test suite)
Commit migrated from https://github.com/dotnet/corefx/commit/25b0a9b6f784216de7f357ba680aa9a835ad3cba
2017-09-29 09:32:20 -07:00
Frederik Carlier
fe3ba5d910
PR feeback - code cleanup
...
Commit migrated from https://github.com/dotnet/corefx/commit/bde4f33dcf16fa56d078b0d29874ab10708cc04e
2017-09-28 23:04:17 +02:00
Frederik Carlier
9b6505e7c2
PR feedback - code cleanup
...
Commit migrated from https://github.com/dotnet/corefx/commit/e7f3c94cfa3ae11fc4916eb7e236c55cd2148745
2017-09-28 23:02:13 +02:00
Frederik Carlier
01de646170
Use PlatformSpecific instead of ActiveIssue
...
Commit migrated from https://github.com/dotnet/corefx/commit/29509cf8132796c46b06854c0242fd3c46e6e1b4
2017-09-28 21:18:37 +02:00
Frederik Carlier
c5a51dfb8e
IconCodec: Create dedicated tests for Palette.Entries.Length on Windows and Unix.
...
Commit migrated from https://github.com/dotnet/corefx/commit/0c04c212b18240405ee25336fe603e71c9e6d227
2017-09-28 16:52:51 +02:00
Eric Mellino
a3fba4553a
Re-enable InstalledFontCollection tests on Unix. ( dotnet/corefx#24263 )
...
* Re-enable InstalledFontCollection tests on Unix.
* Disable font tests on RHEL 7.3.
Commit migrated from https://github.com/dotnet/corefx/commit/dc15b81c6746ff324a4b93b0d83954b44da9bbac
2017-09-27 15:57:20 -07:00
Frederik Carlier
6ac204ea6a
System.Drawing - Add tests for Bitmap based on Mono's unit test suite ( dotnet/corefx#24152 )
...
* Add Bitmap tests based on Mono's unit test suite
* Remove duplicat tests.
* Don't validate BitmapData.Reserved on Unix.
* PR feedback
* Disable certain LockBits tests on Unix
* Disable additional tests on Unix
* PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/2d5ca4e8efb6a3013ddabc5898b579f554249eb1
2017-09-27 14:58:47 -07:00
Frederik Carlier
35f3c5f0eb
Disable failing tests on Windows 7
...
Commit migrated from https://github.com/dotnet/corefx/commit/f44f45ee59cdebe02b6c34db22c88ca8c4bc5ff5
2017-09-27 22:03:14 +02:00
Frederik Carlier
4d1f550e78
Disable assert which fails on Win7
...
Commit migrated from https://github.com/dotnet/corefx/commit/9ddaa3473e48dc1c5da3e21b34d3db97dc559cb9
2017-09-27 19:05:51 +02:00
Frederik Carlier
0e4ca0dddb
Update unit tests to work cross-platform
...
Commit migrated from https://github.com/dotnet/corefx/commit/20d03613106f5bcf33c2cded3992afbdf4b63ce9
2017-09-27 18:09:38 +02:00
Frederik Carlier
b36c3578fc
Fix unit test, account for Windows/Unix differences.
...
Commit migrated from https://github.com/dotnet/corefx/commit/02c9cec423d1e50877bcbc1a81b32a846111be7f
2017-09-27 16:39:35 +02:00
Frederik Carlier
8bb7a9e62f
Address PR feedback
...
Commit migrated from https://github.com/dotnet/corefx/commit/5e598a65ad5f57f0ab0382480f7e0d1ed14baadb
2017-09-27 14:27:20 +02:00
Frederik Carlier
2626ca1ea7
Include test files in project file
...
Commit migrated from https://github.com/dotnet/corefx/commit/6b26a40c57857067a9465e6f2d5671dd1b80216b
2017-09-27 14:22:28 +02:00
Eric Mellino
0da389cc0b
Enable ImageAttributes tests which pass on Unix System.Drawing.
...
Commit migrated from https://github.com/dotnet/corefx/commit/9c850843964fc13774e0c6c34ba5a05a166bf2a5
2017-09-26 14:29:54 -07:00
Hugh Bellamy
cda43f2f2e
Fix multiplying a matrix by the same matrix
...
Commit migrated from https://github.com/dotnet/corefx/commit/cd7559c1e00d60853b542ea6d1737f56ce733b74
2017-09-25 21:11:52 +01:00
Eric Mellino
f504c001ba
Merge pull request dotnet/corefx#24195 from qmfrederik/fixes/metafiletests-x11
...
Don't depend on X11 in the MetafileTests
Commit migrated from https://github.com/dotnet/corefx/commit/c2b14b597ad855c159431f12cecf61f5331c9174
2017-09-25 10:19:06 -07:00
Frederik Carlier
21b5eab441
Fix typo
...
Commit migrated from https://github.com/dotnet/corefx/commit/9bff663a650c6e6f47db5581913a77f6dad35cd6
2017-09-22 23:27:18 +02:00
Frederik Carlier
261b3b841d
Disable two tests on Unix
...
Commit migrated from https://github.com/dotnet/corefx/commit/f62de76bf7b2ce2495a7707d618d81b64faa08ac
2017-09-22 16:45:26 +02:00
Frederik Carlier
2cd92a7cd7
Nope - filename can be invalid.
...
Commit migrated from https://github.com/dotnet/corefx/commit/633b2b5d43377a10698939c5b1b452c552d331ad
2017-09-22 16:06:01 +02:00
Frederik Carlier
6ca09d43fe
Check for invalid filenames on Unix
...
Fix test
Commit migrated from https://github.com/dotnet/corefx/commit/6c7809ca6284ab51c74a88c8c6dc6ff1364a70f1
2017-09-22 15:35:02 +02:00
Frederik Carlier
45efb6ac70
Remove dead code
...
Commit migrated from https://github.com/dotnet/corefx/commit/df918c2e5ac723c03574bb9aa8f0a9b0aef23339
2017-09-22 09:32:33 +02:00
Frederik Carlier
cbc73a8283
Re-enable tests on CI servers with recent versions of libgdiplus.
...
Commit migrated from https://github.com/dotnet/corefx/commit/1297550de2a12e5f1cefa39c2fd5ce6bb334d7a2
2017-09-22 09:23:40 +02:00
Frederik Carlier
7015c0e4b5
Add unit tests for the Bitmap, Gif, Icon, Jpeg, PNG and TIFF codecs based on Mono's test suite.
...
Commit migrated from https://github.com/dotnet/corefx/commit/93525c239f9359b3a268f9e0f58190a64fefd8e0
2017-09-22 09:20:25 +02:00
Frederik Carlier
d791206af3
Don't test for exceptions on long filenames on Unix (it doesn't matter there)
...
Finetune Ctor_InvalidPathII_ThrowsArgumentException
Commit migrated from https://github.com/dotnet/corefx/commit/8e10bd0066854399eca0d8a53a281a7b0e7c8b94
2017-09-22 08:46:44 +02:00
Frederik Carlier
6f25887d5b
Throw an exception when the filename length > MAX_PATH
...
Commit migrated from https://github.com/dotnet/corefx/commit/926c12917fac0e7d6ec2ed1ff25dd5f03ad0665a
2017-09-22 08:46:12 +02:00