Atsushi Eno [Fri, 10 Jul 2009 03:30:17 +0000 (03:30 -0000)]
2009-07-10 Atsushi Enomoto <atsushi@ximian.com>
* TcpChannelListener.cs, TcpDuplexSessionChannel.cs : do not pass
timeout to channel constructor. it does not make sense.
svn path=/trunk/mcs/; revision=137670
Atsushi Eno [Fri, 10 Jul 2009 03:27:56 +0000 (03:27 -0000)]
2009-07-10 Atsushi Enomoto <atsushi@ximian.com>
* PeerChannelFactory.cs, PeerChannelListener.cs : add MessageEncoder
as common interface member, and use binary encoder (not text).
svn path=/trunk/mcs/; revision=137669
Gonzalo Paniagua Javier [Fri, 10 Jul 2009 03:21:35 +0000 (03:21 -0000)]
2009-07-09 Gonzalo Paniagua Javier <gonzalo@novell.com>
* HttpWebRequestTest.cs: use different ports for different tests since
the shutdown might take a little bit and tests might conflict.
svn path=/trunk/mcs/; revision=137667
Gonzalo Paniagua Javier [Thu, 9 Jul 2009 23:07:14 +0000 (23:07 -0000)]
ignore test that fails on windows
svn path=/trunk/mcs/; revision=137665
Zoltan Varga [Thu, 9 Jul 2009 23:05:36 +0000 (23:05 -0000)]
2009-07-10 Zoltan Varga <vargaz@gmail.com>
* TypeTest.cs: Add a test for #520690. Disable a test which fails on
MS.NET.
svn path=/trunk/mcs/; revision=137664
Zoltan Varga [Thu, 9 Jul 2009 23:05:27 +0000 (23:05 -0000)]
2009-07-10 Zoltan Varga <vargaz@gmail.com>
* Binder.cs (check_arguments): Allow a type to match its byref version.
Fixes #520690.
svn path=/trunk/mcs/; revision=137663
Jb Evain [Thu, 9 Jul 2009 19:22:40 +0000 (19:22 -0000)]
oops
svn path=/trunk/mcs/; revision=137655
Jb Evain [Thu, 9 Jul 2009 19:12:13 +0000 (19:12 -0000)]
2009-07-09 Jb Evain <jbevain@novell.com>
* HashSet.cs (ICollection<T>.Add): fix for bug #520760. Do not throw
when adding duplicates.
svn path=/trunk/mcs/; revision=137653
Jb Evain [Thu, 9 Jul 2009 19:11:23 +0000 (19:11 -0000)]
2009-07-09 Jb Evain <jbevain@novell.com>
* HashSetTest.cs: add test for #520760, ICollection<T>.Add
should not throw on duplicates.
svn path=/trunk/mcs/; revision=137652
Gonzalo Paniagua Javier [Thu, 9 Jul 2009 18:37:26 +0000 (18:37 -0000)]
fix the build
svn path=/trunk/mcs/; revision=137650
Mark Probst [Thu, 9 Jul 2009 17:21:57 +0000 (17:21 -0000)]
2009-07-09 Mark Probst <mark.probst@gmail.com>
* class-internals.h, generic-sharing.c: New RGCTX info type for
getting a remoting invoke with check wrapper.
2009-07-09 Mark Probst <mark.probst@gmail.com>
* method-to-ir.c: When doing a call which might be remote from
shared generic code to other shared code with open type arguments,
get the remoting invoke wrapper from the RGCTX and do an indirect
call to it.
2009-07-09 Mark Probst <mark.probst@gmail.com>
* generic-xdomain.2.cs: Test case for generic marshal-by-ref
objects.
* Makefile.am: Test added.
svn path=/trunk/mono/; revision=137640
Gonzalo Paniagua Javier [Thu, 9 Jul 2009 17:18:34 +0000 (17:18 -0000)]
2009-07-09 Gonzalo Paniagua Javier <gonzalo@novell.com>
* HttpApplication.cs: use GetSection instead of
OpenWebConfiguration+GetSection.
svn path=/trunk/mcs/; revision=137638
Gonzalo Paniagua Javier [Thu, 9 Jul 2009 17:13:34 +0000 (17:13 -0000)]
2009-07-09 Gonzalo Paniagua Javier <gonzalo@novell.com>
* SqliteMembershipProvider.cs:
* UrlAuthorizationModule.cs: use GetSection instead of
OpenWebConfiguration+GetSection.
svn path=/trunk/mcs/; revision=137636
Gonzalo Paniagua Javier [Thu, 9 Jul 2009 17:11:30 +0000 (17:11 -0000)]
2009-07-09 Gonzalo Paniagua Javier <gonzalo@novell.com>
* SimpleWorkerRequest.cs: store the root web configuration path in a
static variable.
svn path=/trunk/mcs/; revision=137634
Gonzalo Paniagua Javier [Thu, 9 Jul 2009 17:10:07 +0000 (17:10 -0000)]
2009-07-09 Gonzalo Paniagua Javier <gonzalo@novell.com>
* WebConfigurationHost.cs: null means MachineToApplication.
* WebConfigurationManager.cs: when caching configuration and sections,
use the configuration file directory instead of the incoming request
path.
svn path=/trunk/mcs/; revision=137632
Marek Habersack [Thu, 9 Jul 2009 13:01:10 +0000 (13:01 -0000)]
2009-07-09 Marek Habersack <mhabersack@novell.com>
* DefaultResourceProvider.cs, DefaultResourceProviderFactory.cs:
added
2009-07-09 Marek Habersack <mhabersack@novell.com>
* HttpContext.cs: fall back to default resource provider factory
if the factory provided by user doesn't have the required object
in Get{Global,Local}ResourceObject. Fixes bug #520397
Refactored the GetResourceObject method and the
ResourceManagerCacheKey class to DefaultResourceProvider.
svn path=/trunk/mcs/; revision=137624
Atsushi Eno [Thu, 9 Jul 2009 11:05:39 +0000 (11:05 -0000)]
2009-07-09 Atsushi Enomoto <atsushi@ximian.com>
* PeerNode.cs : some implementation cleanup before significant
refactoring. Mesh state is not maintained here. Use optionally
fixed listener address and port. Set offline status when closed.
* PeerDuplexChannel.cs : PeerNode constructor argument changes.
svn path=/trunk/mcs/; revision=137621
Atsushi Eno [Thu, 9 Jul 2009 11:02:31 +0000 (11:02 -0000)]
2009-07-09 Atsushi Enomoto <atsushi@ximian.com>
* LocalPeerResolverService.cs : fix RegistrationLifetime to return.
svn path=/trunk/mcs/; revision=137620
Marek Safar [Thu, 9 Jul 2009 08:52:12 +0000 (08:52 -0000)]
Updated.
svn path=/trunk/mcs/; revision=137615
Gert Driesen [Thu, 9 Jul 2009 04:46:00 +0000 (04:46 -0000)]
* XmlSchemaTests.cs: Fixed tests for bug #502115.
svn path=/trunk/mcs/; revision=137595
Atsushi Eno [Thu, 9 Jul 2009 04:06:41 +0000 (04:06 -0000)]
2009-07-09 Atsushi Enomoto <atsushi@ximian.com>
* XmlSchemaTests.cs : disabled wrong tests. I will revert them
unless it gets better shape.
svn path=/trunk/mcs/; revision=137594
Gonzalo Paniagua Javier [Thu, 9 Jul 2009 02:37:09 +0000 (02:37 -0000)]
prefer MonoIOMAP directive over MONO_IOMAP, update version, fix long line
svn path=/trunk/mono/; revision=137592
Carlos Alberto Cortez [Wed, 8 Jul 2009 23:40:55 +0000 (23:40 -0000)]
2009-07-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* 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
Marek Habersack [Wed, 8 Jul 2009 22:22:03 +0000 (22:22 -0000)]
Fix 1.1 build
svn path=/trunk/mcs/; revision=137587
Rodrigo Kumpera [Wed, 8 Jul 2009 21:46:10 +0000 (21:46 -0000)]
2009-07-08 Rodrigo Kumpera <rkumpera@novell.com>
* DerivedTypes.cs: Implemented PointerType.
* TypeBuilder.cs (MakePointerType): Return an
instance of PointerType.
2009-07-08 Rodrigo Kumpera <rkumpera@novell.com>
* DerivedTypesTest.cs: New tests for PointerType.
svn path=/trunk/mcs/; revision=137586
Rodrigo Kumpera [Wed, 8 Jul 2009 21:46:01 +0000 (21:46 -0000)]
2009-07-07 Rodrigo Kumpera <rkumpera@novell.com>
* object-internals.h: Add MonoReflectionDerivedType.
* reflection.c: Implement support for PointerType.
Fixed tons of warnings.
svn path=/trunk/mono/; revision=137585
Rodrigo Kumpera [Wed, 8 Jul 2009 21:45:54 +0000 (21:45 -0000)]
2009-07-08 Rodrigo Kumpera <rkumpera@novell.com>
* DerivedTypes.cs: Implemented ByRefType.
* TypeBuilder.cs (MakeByRefType): Return an
instance of ByRefType.
2009-07-08 Rodrigo Kumpera <rkumpera@novell.com>
* DerivedTypesTest.cs: New tests for ByRefType.
svn path=/trunk/mcs/; revision=137584
Rodrigo Kumpera [Wed, 8 Jul 2009 21:45:36 +0000 (21:45 -0000)]
2009-07-08 Rodrigo Kumpera <rkumpera@novell.com>
* DerivedTypes.cs: Refactor the types here to move
a lot of code to the base DerivedType in preparation
for upcomming ByRefType and PointerType puppies.
svn path=/trunk/mcs/; revision=137583
Rodrigo Kumpera [Wed, 8 Jul 2009 21:45:35 +0000 (21:45 -0000)]
2009-07-07 Rodrigo Kumpera <rkumpera@novell.com>
* object-internals.h: Add MonoReflectionByRefType.
* reflection.c: Implement support for ByRefType.
svn path=/trunk/mono/; revision=137582
Geoff Norton [Wed, 8 Jul 2009 21:02:51 +0000 (21:02 -0000)]
2009-07-07 Geoff Norton <gnorton@novell.com>
* icall-def.h: Fix the enable-minimal build.
svn path=/trunk/mono/; revision=137581
Gonzalo Paniagua Javier [Wed, 8 Jul 2009 17:36:00 +0000 (17:36 -0000)]
2009-07-08 Gonzalo Paniagua Javier <gonzalo@novell.com>
* AssemblyResourceLoader.cs: send minimal headers set and don't call
response.End. When possible, write the resource using the unsafe
methods in HttpResponseStream.a
svn path=/trunk/mcs/; revision=137576
Carlos Alberto Cortez [Wed, 8 Jul 2009 16:26:12 +0000 (16:26 -0000)]
2009-07-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* System.Drawing_test.dll.sources: Add PageSourceTest.cs and
PaperSizeTest.cs.
svn path=/trunk/mcs/; revision=137573
Marek Habersack [Wed, 8 Jul 2009 13:48:59 +0000 (13:48 -0000)]
2009-07-08 Marek Habersack <mhabersack@novell.com>
* DynamicControlTest.cs: added tests for ApplyFormatInEditMode,
Column, ConvertEmptyStringToNull, CssClass, DataField,
DataFormatString, FieldTemplate, Table, UIHint
2009-07-08 Marek Habersack <mhabersack@novell.com>
* WebTest.cs: added new public property - TestBaseDir, to be used
by code which needs to access the files in the work dir.
2009-07-08 Marek Habersack <mhabersack@novell.com>
* TestsSetup.cs: added the BuildPath helper method which converts
unix-style filesystem paths to the os-specific format.
svn path=/trunk/mcs/; revision=137568
Carlos Alberto Cortez [Wed, 8 Jul 2009 13:13:58 +0000 (13:13 -0000)]
2009-07-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* PaperSource.cs: Implement RawKind.
Fixes the remaining bits of #507739.
svn path=/trunk/mcs/; revision=137565
Carlos Alberto Cortez [Wed, 8 Jul 2009 12:56:29 +0000 (12:56 -0000)]
2009-07-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* PageSourceTest.cs: New file, by Andy Hume <andyhume32@yahoo.co.uk>
svn path=/trunk/mcs/; revision=137564
Carlos Alberto Cortez [Wed, 8 Jul 2009 12:01:07 +0000 (12:01 -0000)]
2009-07-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* PaperSizeTest.cs: New file, by Andy Hume <andyhume32@yahoo.co.uk>
svn path=/trunk/mcs/; revision=137560
Carlos Alberto Cortez [Wed, 8 Jul 2009 11:58:10 +0000 (11:58 -0000)]
2009-07-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* PaperSize.cs: Implement support for RawKind.
Patch by Andy Hume (andyhume32@yahoo.co.uk).
Fixes part of #507739.
svn path=/trunk/mcs/; revision=137559
Marek Habersack [Wed, 8 Jul 2009 11:54:37 +0000 (11:54 -0000)]
2009-07-08 Marek Habersack <mhabersack@novell.com>
* TemplateControlCompilerTest.cs: added test for bug #520024
2009-07-08 Marek Habersack <mhabersack@novell.com>
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/PreprocessorDirectivesInMarkup.aspx
2009-07-08 Marek Habersack <mhabersack@novell.com>
* AspParser.cs: GetServerTag mustn't treat <% # ... %> as
data-binding directives. Fixes bug #520024
* AssemblyBuilder.cs: if debugging information is on, append
/d:DEBUG to the compiler's command line.
svn path=/trunk/mcs/; revision=137558
Marek Safar [Wed, 8 Jul 2009 09:34:22 +0000 (09:34 -0000)]
New tests.
svn path=/trunk/mcs/; revision=137556
Marek Safar [Wed, 8 Jul 2009 09:34:09 +0000 (09:34 -0000)]
2009-07-08 Marek Safar <marek.safar@gmail.com>
* ecore.cs, cs-parser.jay: Better error reporting for implicitly
typed local variable.
svn path=/trunk/mcs/; revision=137555
Atsushi Eno [Wed, 8 Jul 2009 08:21:03 +0000 (08:21 -0000)]
2009-07-08 Atsushi Enomoto <atsushi@ximian.com>
* PeerDuplexChannel.cs, PeerChannelListener.cs, PeerOutputChannel.cs,
PeerInputChannel.cs, PeerChannelFactory.cs : those channels are
going to be unified to PeerDuplexChannel. And it is likely that
input and output functionalities are to be unified too.
svn path=/trunk/mcs/; revision=137535
Atsushi Eno [Wed, 8 Jul 2009 05:13:21 +0000 (05:13 -0000)]
2009-07-08 Atsushi Enomoto <atsushi@ximian.com>
* TcpChannelFactory.cs : (TcpChannelInfo) ease type restriction. I
may have to reuse it for peer transport.
* PeerChannelListener.cs : add binding member.
* PeerDuplexChannel.cs : remove NIE overrides. Fill fields a bit.
svn path=/trunk/mcs/; revision=137531
Atsushi Eno [Wed, 8 Jul 2009 05:11:13 +0000 (05:11 -0000)]
2009-07-08 Atsushi Enomoto <atsushi@ximian.com>
* NetTcpBindingTest.cs : added simple connection test. It somehow
stops for a while (without failing) though...
svn path=/trunk/mcs/; revision=137530
Atsushi Eno [Wed, 8 Jul 2009 05:04:11 +0000 (05:04 -0000)]
2009-07-08 Atsushi Enomoto <atsushi@ximian.com>
* NetPeerTcpBinding.cs : Fix interface implementations.
* NetPeerTcpBindingTest.cs : a bit of interface implementation test.
svn path=/trunk/mcs/; revision=137529
Atsushi Eno [Wed, 8 Jul 2009 01:00:32 +0000 (01:00 -0000)]
2009-07-08 Atsushi Enomoto <atsushi@ximian.com>
* ChannelFactoryBase.cs, HttpChannelFactory.cs,
PeerChannelFactory.cs : close opened channels at OnClose() as
documented. Implement async methods.
* PeerChannelListener.cs : removed some NIE overrides.
svn path=/trunk/mcs/; revision=137528
Rodrigo Kumpera [Tue, 7 Jul 2009 23:21:08 +0000 (23:21 -0000)]
2009-07-07 Rodrigo Kumpera <rkumpera@novell.com>
* DerivedTypesTest.cs: New tests for types derived from
TypeBuilder.
svn path=/trunk/mcs/; revision=137523
Rodrigo Kumpera [Tue, 7 Jul 2009 23:20:48 +0000 (23:20 -0000)]
2009-07-07 Rodrigo Kumpera <rkumpera@novell.com>
* icall-def.h: Add System.Reflection.Emit.DerivedType::create_unmanaged_type.
* object-internals.h: Add MonoReflectionArrayType and
mono_reflection_create_unmanaged_type.
* reflection.c: Implement support for ArrayType.
svn path=/trunk/mono/; revision=137522
Rodrigo Kumpera [Tue, 7 Jul 2009 23:20:45 +0000 (23:20 -0000)]
2009-07-07 Rodrigo Kumpera <rkumpera@novell.com>
* Type.cs (IsUserType): Only TypeDelegator and types
outside of corlib are unhandled usertypes.
2009-07-07 Rodrigo Kumpera <rkumpera@novell.com>
* TypeBuilder.cs (IsArrayImpl): Return false always as a
typebuilder will never represent an array.
* TypeBuilder.cs (MakeArrayType): Return a new instance of
ArrayType instead of calling into MonoType machinery.
* DerivedTypes.cs: New file with all the internal types
used by SRE to represent derived types from TypeBuilder:
arrays, pointers and byrefs'.
svn path=/trunk/mcs/; revision=137521
Rodrigo Kumpera [Tue, 7 Jul 2009 16:32:35 +0000 (16:32 -0000)]
2009-07-07 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c (is_valid_method_header): Parse EH block
flags correctly.
svn path=/trunk/mono/; revision=137510
Atsushi Eno [Tue, 7 Jul 2009 15:16:55 +0000 (15:16 -0000)]
2009-07-07 Atsushi Enomoto <atsushi@ximian.com>
* CustomPeerResolverService.cs, LocalPeerResolverService.cs,
ICustomPeerResolverContract.cs : add local machine peer resolver
implementation that can work across appdomains (based on
dispatching peer resolver that communicates with a ServiceHost
which is either locally started or running as a different process).
* System.ServiceModel.dll.sources:
Added new custom peer resolver files.
svn path=/trunk/mcs/; revision=137504
Gonzalo Paniagua Javier [Tue, 7 Jul 2009 15:09:46 +0000 (15:09 -0000)]
2009-07-07 Gonzalo Paniagua Javier <gonzalo@novell.com>
* WebClientTest.cs: if we write the 100 response, reset the output
stream writer.
svn path=/trunk/mcs/; revision=137500
Gonzalo Paniagua Javier [Tue, 7 Jul 2009 14:57:51 +0000 (14:57 -0000)]
2009-07-07 Gonzalo Paniagua Javier <gonzalo@novell.com>
* WebClient.cs: set the content length when uploading values. This
allows reusing the connection.
* WebConnectionStream.cs: SetHeaders() takes ownership of the buffer
and does not need to copy it any more. WriteRequest() wasn't always
setting 'requestWritten' to true.
* HttpWebRequest.cs: change in SetHeaders call.
svn path=/trunk/mcs/; revision=137497
Gonzalo Paniagua Javier [Tue, 7 Jul 2009 13:20:01 +0000 (13:20 -0000)]
2009-07-07 Gonzalo Paniagua Javier <gonzalo@novell.com>
* ParserError.cs: add 3 missing setters. Patch from Daniel Gagne.
svn path=/trunk/mcs/; revision=137494
Atsushi Eno [Tue, 7 Jul 2009 12:51:01 +0000 (12:51 -0000)]
2009-07-07 Atsushi Enomoto <atsushi@ximian.com>
* EndpointAddress10Test.cs : added a few more serialization tests.
svn path=/trunk/mcs/; revision=137493
Atsushi Eno [Tue, 7 Jul 2009 12:48:38 +0000 (12:48 -0000)]
2009-07-07 Atsushi Enomoto <atsushi@ximian.com>
* PeerNodeAddressTest.cs : new test.
* System.ServiceModel_test.dll.sources:
add PeerNodeAddressTest.cs.
svn path=/trunk/mcs/; revision=137492
Atsushi Eno [Tue, 7 Jul 2009 12:36:30 +0000 (12:36 -0000)]
2009-07-07 Atsushi Enomoto <atsushi@ximian.com>
* XmlFormatterDeserializer.cs, SerializationMap.cs : IXmlSerializable
were not deserialized correctly as it has mismatch on wrapper
element. This fixes PeerNodeAddress.EndpointAddress deserialization.
svn path=/trunk/mcs/; revision=137491
Atsushi Eno [Tue, 7 Jul 2009 10:27:58 +0000 (10:27 -0000)]
2009-07-07 Atsushi Enomoto <atsushi@ximian.com>
* XmlSimpleDictionaryWriter.cs : fix bogus import of
XmlWriter.WriteNode() to handle more than two elements.
* XmlSimpleDictionaryWriterTest.cs : test WriteNode() to not skip more
than two nodes in an element.
svn path=/trunk/mcs/; revision=137485
Carlos Alberto Cortez [Tue, 7 Jul 2009 07:08:10 +0000 (07:08 -0000)]
2009-07-07 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* PaperSize.cs: Actually implement RawKind by retrieving and setting
the kind field.
svn path=/trunk/mcs/; revision=137481
Carlos Alberto Cortez [Tue, 7 Jul 2009 06:01:37 +0000 (06:01 -0000)]
2009-07-06 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* PrintPreviewDialog.cs: Record when left was pressed, so we can
simulate Tab+Alt when moving the focus throughout our buttons and
controls.
Fixes the remaining bits of #509142.
svn path=/trunk/mcs/; revision=137479
Gert Driesen [Mon, 6 Jul 2009 19:58:00 +0000 (19:58 -0000)]
* WebConnectionStream.cs: Move and improve argument checks to match MS.
Modified CanRead and CanWrite to return false when instance is disposed.
* HttpWebRequestTest.cs: Enabled tests, and removed test that is now
covered by two separate CanTimeout tests for request and response
stream.
* HttpWebResponseStreamTest.cs: Enabled tests.
svn path=/trunk/mcs/; revision=137450
Gert Driesen [Mon, 6 Jul 2009 19:34:33 +0000 (19:34 -0000)]
* HttpWebRequestTest.cs: Marked test notworking on 1.0 profile.
svn path=/trunk/mcs/; revision=137448
Gert Driesen [Mon, 6 Jul 2009 19:30:33 +0000 (19:30 -0000)]
* HttpWebRequestTest.cs: Added tests for bug #511851. Added tests
for request stream. Fixed compiler warnings, and fixed code style.
* HttpWebResponseTest.cs: Added tests for response stream. Fixed
compiler warnings.
svn path=/trunk/mcs/; revision=137447
Raja R Harinath [Mon, 6 Jul 2009 19:21:33 +0000 (19:21 -0000)]
Handle absense of ExecutionScope
* ExpressionTest.cs (ExpressionDelegateTarget) [NET_4_0]: Disable
check for ExecutionScope.
(GlobalsInSpace) [NET_4_0]: Disable.
svn path=/trunk/mcs/; revision=137444
Raja R Harinath [Mon, 6 Jul 2009 19:15:09 +0000 (19:15 -0000)]
* AssemblyInfo.cs: Don't make internals visible to System.Web_test.
svn path=/trunk/mcs/; revision=137443
Raja R Harinath [Mon, 6 Jul 2009 19:14:48 +0000 (19:14 -0000)]
* UrlUtilsTest.cs: Use SystemWebTestShim.UriUtils.
svn path=/trunk/mcs/; revision=137442
Raja R Harinath [Mon, 6 Jul 2009 18:54:18 +0000 (18:54 -0000)]
Expose internal constructors of various Adapter types.
In class/System.Web/Test/System.Web.UI.Adapters:
* PageAdapterTest.cs (MyPage): Derive from SystemWebTestShim.Page.
(MyPageAdapter): Derive from SystemWebTestShim.PageAdapter.
(MyPageAdapter.GetPostBAckFormReference): New forwarding method.
In class/System.Web/Test/System.Web.UI.WebControls.Adapters:
* DataBoundControlAdapterTest.cs: Derive from
SystemWebTestShim.DataBoundControlAdapter.
* HideDisabledControlAdapterTest.cs (Render): Use
SystemWebTestShim.HideDisabledControlAdapter.
* HierarchicalDataBoundControlAdapterTest.cs: Derive from
SystemWebTestShim.HierarchicalDataBoundControlAdapter.
* MenuAdapterTest.cs: Derive from SystemWebTestShim.MenuAdapter.
* WebControlAdapterTest.cs: Derive from
SystemWebTestShim.WebControlAdapter.cs.
In class/SystemWebTestShim:
* SystemWebTestShim.dll.sources: Add Adapters.cs
svn path=/trunk/mcs/; revision=137441
Raja R Harinath [Mon, 6 Jul 2009 18:32:33 +0000 (18:32 -0000)]
More forwarding methods
* PageAdapterTest.cs (MyPage.MyDeterminePostBackMode): New
forwarding method to expose protected method.
(MyPageAdapter): Change constructor argument to type 'MyPage'.
svn path=/trunk/mcs/; revision=137439
Raja R Harinath [Mon, 6 Jul 2009 18:32:05 +0000 (18:32 -0000)]
* MenuAdapterTest.cs (MyMenuAdapter): Add new forwarding methods
to expose protected base methods.
svn path=/trunk/mcs/; revision=137438
Raja R Harinath [Mon, 6 Jul 2009 18:02:16 +0000 (18:02 -0000)]
* HtmlFormTest.cs: Derive from SystemWebTestShim.Page to make
explicit the dependence on the internals of the Page class.
svn path=/trunk/mcs/; revision=137436
Gonzalo Paniagua Javier [Mon, 6 Jul 2009 17:40:28 +0000 (17:40 -0000)]
2009-07-06 Gonzalo Paniagua Javier <gonzalo@novell.com>
* HttpWebRequestTest.cs: add tests for POST + redirect and 401.
svn path=/trunk/mcs/; revision=137429
Raja R Harinath [Mon, 6 Jul 2009 16:59:32 +0000 (16:59 -0000)]
Kill some un-necessary 'protected internal override'
* DataBoundControlAdapterTest.cs (PerformDataBinding): Don't use
'protected internal' when overriding a method from a different assembly.
* HideDisabledControlAdapterTest.cs (RenderContents): Likewise.
* HierarchicalDataBoundControlAdapterTest.cs (PerformDataBinding): Likewise.
* MenuAdapterTest.cs (OnInit, OnPreRender, RaisePostBackEvent)
(RenderContents): Likewise.
* WebControlAdapterTest.cs (RenderContents): Likewise.
svn path=/trunk/mcs/; revision=137423
Raja R Harinath [Mon, 6 Jul 2009 16:02:42 +0000 (16:02 -0000)]
* ControlAdapterTest.cs: Use SystemWebTestShim to set
HttpCapabilitiesBase internal flag.
svn path=/trunk/mcs/; revision=137421
Raja R Harinath [Mon, 6 Jul 2009 16:02:16 +0000 (16:02 -0000)]
Use ExpectedException(string) when referring to internal exception types
In class/System.Web/Test/System.Web.Compilation:
* TemplateControlCompilerTest.cs (InvalidPropertyBindTest1):
Don't use 'typeof' on a System.Web internal exception type.
(InvalidPropertyBindTest3): Likewise.
In class/System.Web/Test/System.Web.UI:
* PageParserTest.cs (MissingMasterFile): Don't use 'typeof' on a
System.Web internal exception type.
svn path=/trunk/mcs/; revision=137420
Marek Safar [Mon, 6 Jul 2009 15:01:02 +0000 (15:01 -0000)]
New test.
svn path=/trunk/mcs/; revision=137415
Marek Safar [Mon, 6 Jul 2009 14:58:42 +0000 (14:58 -0000)]
2009-07-06 Marek Safar <marek.safar@gmail.com>
A fix for bug #519005
* anonymous.cs: Use null_type as no return type placeholder.
svn path=/trunk/mcs/; revision=137414
Raja R Harinath [Mon, 6 Jul 2009 14:53:43 +0000 (14:53 -0000)]
* AssemblyInfo.cs: Don't make internals visible to
System.Web.Extensions_test and System.Web.DynamicData_test.
svn path=/trunk/mcs/; revision=137413
Raja R Harinath [Mon, 6 Jul 2009 14:53:19 +0000 (14:53 -0000)]
* WebTest.cs (Run): Use SystemWebTestShim.BuildManager.
svn path=/trunk/mcs/; revision=137412
Raja R Harinath [Mon, 6 Jul 2009 14:52:54 +0000 (14:52 -0000)]
Add SystemWebTestShim so that we can avoid InternalsVisibleTo(testsuite)
class/Makefile (common_dirs): Add SystemWebTestShim.
class/System.Web/Makefile (TEST_MCS_FLAGS): Reference SystemWebTestShim.
class/System.Web.DynamicData/Makefile: Likewise.
class/System.Web.Extensions/Makefile: Likewise.
svn path=/trunk/mcs/; revision=137411
Raja R Harinath [Mon, 6 Jul 2009 14:52:31 +0000 (14:52 -0000)]
fix build: comment out non-checked-in files
svn path=/trunk/mcs/; revision=137410
Raja R Harinath [Mon, 6 Jul 2009 14:52:09 +0000 (14:52 -0000)]
fix build
svn path=/trunk/mcs/; revision=137409
Raja R Harinath [Mon, 6 Jul 2009 14:51:46 +0000 (14:51 -0000)]
fix build break
svn path=/trunk/mcs/; revision=137408
Raja R Harinath [Mon, 6 Jul 2009 13:04:54 +0000 (13:04 -0000)]
* Makefile (net_1_1_dirs): Move Mono.Cecil ...
(common_dirs): ... here.
svn path=/trunk/mcs/; revision=137404
Carlos Alberto Cortez [Sun, 5 Jul 2009 10:26:21 +0000 (10:26 -0000)]
2009-07-05 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TabControl.cs: When computing the width of each tab page, use the
page's Font instead of the tab control one.
Fixes #514368.
svn path=/trunk/mcs/; revision=137388
jonas [Sat, 4 Jul 2009 15:02:34 +0000 (15:02 -0000)]
Fix distcheck building on OS X
svn path=/trunk/mono/; revision=137384
Marek Habersack [Fri, 3 Jul 2009 15:07:04 +0000 (15:07 -0000)]
2009-07-03 Marek Habersack <mhabersack@novell.com>
* Added some resources to WebPages - a test web page for
DynamicControlTest and the required DynamicData scaffolding.
2009-07-03 Marek Habersack <mhabersack@novell.com>
* Makefile: added more resources to the test assembly
2009-07-03 Marek Habersack <mhabersack@novell.com>
* DynamicControlTest.cs: added
2009-07-03 Marek Habersack <mhabersack@novell.com>
* DynamicDataContainerModelProvider.cs,
DynamicDataContainerTableProvider.cs: are generic classes now.
2009-07-03 Marek Habersack <mhabersack@novell.com>
* IDynamicDataContainer.cs: became a generic interface.
* DynamicDataSource.cs; some reformatting.
DynamicDataSourceView is a generic class now.
* DynamicDataContainer.cs: IDynamicDataContainer is a generic
interface now.
2009-07-03 Marek Habersack <mhabersack@novell.com>
* TestsSetup.cs: custom WebTest setup for DynamicData
* TestsBasePage.cs: a base class for all the web pages used by the
tests.
* MiscExtensions.cs: added some helper extensions for fishing out
controls from control trees.
* ITestDataContext.cs: GetTableData gets full set of query
arguments.
2009-07-03 Marek Habersack <mhabersack@novell.com>
* AssemblyInfo.cs: added. Necessary, because we need to set up
WebTest environment and it is done via an assembly-level custom
attribute.
svn path=/trunk/mcs/; revision=137369
Mark Probst [Fri, 3 Jul 2009 13:57:36 +0000 (13:57 -0000)]
2009-07-03 Mark Probst <mark.probst@gmail.com>
* sgen-gc.c (finish_gray_stack): Set the to_space pointer after
processing the disappearing links, and process disappearing links
in a loop until no new objects are copied.
svn path=/trunk/mono/; revision=137366
Zoltan Varga [Fri, 3 Jul 2009 13:42:48 +0000 (13:42 -0000)]
2009-07-03 Zoltan Varga <vargaz@gmail.com>
* mini-trampolines.c (get_unbox_trampoline): Add an rgctx trampoline
after the unbox trampoline in the full-aot case.
svn path=/trunk/mono/; revision=137364
Carlos Alberto Cortez [Fri, 3 Jul 2009 13:17:29 +0000 (13:17 -0000)]
2009-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* MenuAPI.cs: When handling the Keys.Left key, don't close the menu if
the current menu is specifically a ContextMenu (this is what .net does
as well). This way we also avoid a crash caused by MenuTracker trying
to use the menu when it was already hidden.
svn path=/trunk/mcs/; revision=137363
Carlos Alberto Cortez [Fri, 3 Jul 2009 05:12:05 +0000 (05:12 -0000)]
2009-07-03 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* PrintPreviewDialog.cs: Remove the code used to handle the
DropDown menu, since we are now doing it by default in ToolBar, and
just call the base impl as needed.Also, deactivate the dropdown menu
before moving the focus to a different button in our toolbar, as .net
does.
* ContextMenu.cs:
* MenuAPI.cs: Make as internal the needed bits to deactivate a
ContextMenu, and also to keep some beauty in our api.
svn path=/trunk/mcs/; revision=137342
Marek Habersack [Thu, 2 Jul 2009 23:40:29 +0000 (23:40 -0000)]
Another fixlet
svn path=/trunk/mcs/; revision=137336
Marek Habersack [Thu, 2 Jul 2009 23:22:38 +0000 (23:22 -0000)]
typo fix
svn path=/trunk/mcs/; revision=137335
Marek Habersack [Thu, 2 Jul 2009 23:05:02 +0000 (23:05 -0000)]
2009-07-03 Marek Habersack <mhabersack@novell.com>
* WebTestResourcesSetupAttribute.cs: added. Can be used to specify
resources setup method alternative to the default
WebTest.CopyResources (). Useful in cases when WebTest is used
outside System.Web tests and different initial resources are
required.
* WebTest.cs: check whether the assembly WebTest is found in is
decorated with the WebTestResourcesSetup attribute and, if yes,
use handler specified by the attribute to perform initial
resources copying in EnsureHosting ().
svn path=/trunk/mcs/; revision=137334
Gonzalo Paniagua Javier [Thu, 2 Jul 2009 23:03:11 +0000 (23:03 -0000)]
2009-07-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
* WebConnection.cs: provide better error message when there's an error
writing.
* WebConnectionStream.cs: don't nullify the buffer until
CheckFinalStatus() decides that there are no more authentication
retries or redirects.
svn path=/trunk/mcs/; revision=137332
Mark Probst [Thu, 2 Jul 2009 22:41:39 +0000 (22:41 -0000)]
2009-07-03 Mark Probst <mark.probst@gmail.com>
* object.c (handle_enum): Invoke the write barrier when copying
value type instances.
* sgen-gc.c: Register remsets for unmanaged write barriers only
when the address written to is actually on the heap. This makes
set_value() in object.c work without requiring that the result be
on the heap.
svn path=/trunk/mono/; revision=137331
Gonzalo Paniagua Javier [Thu, 2 Jul 2009 22:39:54 +0000 (22:39 -0000)]
2009-07-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
* HttpsClientStream.cs: if there's only an ICertificatePolicy and no
ServerCertificateValicationCallback, don't fail.
svn path=/trunk/mcs/; revision=137329
Rodrigo Kumpera [Thu, 2 Jul 2009 20:18:56 +0000 (20:18 -0000)]
2009-07-02 Rodrigo Kumpera <rkumpera@novell.com>
The runtime wrappers are all bound to a given type that must
exist in the same image. For regular images we use the <Module>
type, which is required to exist for all images.
The <Module> type can't be used for dynamic images because it
might not exist at the time the wrapper is required, so we create
a synthetic type to use instead.
The current code works because of the 2 stage setup of MonoClass,
but once this is gone it will no longer work.
* icall-def.h: Add ModuleBuilder::set_wrappers_type.
* metadata-internals.h (MonoDynamicImage): Add wrappers_type.
* object-internals.h: Export mono_image_set_wrappers_type icall
as part of the internal API.
* marshal.c (get_wrapper_target_class): If the image is dynamic,
use MonoDynamicImage::wrappers_type instead of the <Module> type.
reflection.c: Add mono_image_set_wrappers_type qhixh sets the dynamic
image wrappers_type to the provided value.
svn path=/trunk/mono/; revision=137325
Rodrigo Kumpera [Thu, 2 Jul 2009 20:18:39 +0000 (20:18 -0000)]
2009-07-01 Rodrigo Kumpera <rkumpera@novell.com>
* appdomain.c (deregister_reflection_info_roots): No need
to use the image lock here.
svn path=/trunk/mono/; revision=137324
Rodrigo Kumpera [Thu, 2 Jul 2009 20:09:39 +0000 (20:09 -0000)]
2009-07-02 Rodrigo Kumpera <rkumpera@novell.com>
* AssemblyBuilder.cs: Add IsRun property that returns true if
any execute mode is enabled.
* ModuleBuilder.cs: Add set_wrappers_type icall to define which type
is to be bound to wrappers. Create a new abstract type and call it
when the assembly is build this way.
Replace explicit checks for global_type with calls to CreateGlobalType.
* TypeBuilder.cs: Internal ctor now takes an extra table_idx argument.
svn path=/trunk/mcs/; revision=137322
Mark Probst [Thu, 2 Jul 2009 18:49:19 +0000 (18:49 -0000)]
2009-07-02 Mark Probst <mark.probst@gmail.com>
* sgen-gc.c (collect_nursery): Also scan from write-barrier roots.
svn path=/trunk/mono/; revision=137319
Atsushi Eno [Thu, 2 Jul 2009 18:32:20 +0000 (18:32 -0000)]
2009-07-02 Atsushi Enomoto <atsushi@ximian.com>
* ServiceBehaviorAttribute.cs : fill SingletonInstanceContext on
opening the host.
* ChannelDispatcherTest.cs : add singleton instance context test
(but disabled, for some weird conflict).
svn path=/trunk/mcs/; revision=137315