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
Frederik Carlier
d1a4f7e142
Streamline path validation
...
Commit migrated from https://github.com/dotnet/corefx/commit/0a39831efef20d7c2c71510b0b42a5ea3e7bfcdb
2017-09-22 00:05:40 +02:00
Frederik Carlier
0c7a00ab2c
Try to emulate NetFX exception behavior.
...
Commit migrated from https://github.com/dotnet/corefx/commit/4649003222ca46b3e16df3524b470f154775325b
2017-09-22 00:02:23 +02:00
Frederik Carlier
53475341bd
Workaround libgdiplus glitches
...
Don't test metafileHeader.Bounds when using libgdiplus.
Don't test metafile.GetBounds on Unix, force MetafileHeader.Bounds to return an empty rectangle when MetafileSize == 0
Don't validate graphicsUnit on Unix.
Commit migrated from https://github.com/dotnet/corefx/commit/825ef7c0d16798739f4cb69d3a4f1e924ef7ff18
2017-09-22 00:02:22 +02:00
Frederik Carlier
7d2ab2341b
Don't depend on X11 in the MetafileTests
...
Commit migrated from https://github.com/dotnet/corefx/commit/6f55b588730ce3d2f341c4ed6af1bc536a570a1d
2017-09-22 00:02:21 +02:00
Frederik Carlier
af56cb5739
Workaround libgdiplus glitches
...
Don't test metafileHeader.Bounds when using libgdiplus.
Don't test metafile.GetBounds on Unix, force MetafileHeader.Bounds to return an empty rectangle when MetafileSize == 0
Don't validate graphicsUnit on Unix.
Commit migrated from https://github.com/dotnet/corefx/commit/abfd51d0f2019b204a6d29836381d183f3390d2e
2017-09-21 23:33:34 +02:00
Frederik Carlier
3913bfa05b
Remove X11 dependency for tests which are enabled on Unix.
...
Commit migrated from https://github.com/dotnet/corefx/commit/8f3f06625346bbb0b39a75105024d64a4139cd26
2017-09-21 23:33:33 +02:00
Frederik Carlier
259b079320
Remove duplicate tests, fix typo
...
Commit migrated from https://github.com/dotnet/corefx/commit/d284084addaee43add43a0a31272352eb25aeb11
2017-09-21 23:33:33 +02:00
Frederik Carlier
f8b67102ec
PR feedback
...
Commit migrated from https://github.com/dotnet/corefx/commit/8e151ad37220a64e122d5406eee6935e14595e30
2017-09-21 23:33:33 +02:00
Frederik Carlier
e1bd607761
Assert.False(Object.ReferenceEquals => Assert.NotSame
...
Commit migrated from https://github.com/dotnet/corefx/commit/966a10e90ad495e0b0e57895005b0fe448bfe151
2017-09-21 23:33:33 +02:00