Commit Graph
129 Commits
Author SHA1 Message Date
Alexander Köplinger 48e112d652 [Cleanup] Removed TARGET_JVM
It was once part of a special Java target profile, but this is no longer used today.
2014-08-08 03:28:34 +02:00
Alexander Köplinger 5f4b8c2cf4 [Cleanup] Removed JavaEE csproj and sln files
They were once part of a special Java target profile, but this is no longer used today.
2014-08-07 23:01:53 +02:00
Alexander Köplinger 0450000dc4 [Cleanup] Removed a bunch of superfluous .csproj and .sln files
Most of these files weren't updated in the last >5 years and serve no purpose today, so they only clutter the repository.
2014-08-06 18:02:30 +02:00
marcos henrich 5e76deaf72 Test JavaScriptSerializer.Deserialize with nullable enums. Covers #19287. 2014-06-04 11:17:35 +01:00
Atsushi Eno e10c36924b Fix JavaScriptSerializer.Deserialize() for dictionary of array of anonymously typed dictionary.
context: https://twitter.com/muo_jp/status/265373491224801280
2012-11-05 18:22:29 +09:00
Marek Safar a1452e6bde Set fixed test locale 2012-06-07 11:43:34 +01:00
Marek Habersack 57f37dc396 Fix tests in the 4.5 profile 2011-12-16 11:57:03 +01:00
Marek Habersack 8788b5ed8d [asp.net] Test for bug #655474 2011-03-17 16:36:50 +01:00
Marek Safar ddee741f56 Fixed more protected internal modifiers 2011-01-10 14:38:48 +00:00
Marek Safar d82dda826c Fixed more missing protected internal modifiers 2011-01-10 08:45:01 +00:00
Marek Habersack 3939f4ddf6 [asp.net] Failing tests fixes. 2011-01-04 10:03:11 +01:00
Marek Habersack 39fac8ab1c [asp.net] Added code to handle local resources copying in the test suite 2011-01-04 08:22:21 +01:00
Raja R Harinath cd51491631 Fix a few cases of mixed line-endings
This is a scripted conversion of mixed line-ending files to LF-only or CRLF-only
based on which patch is smaller.  I used a threshold of upto a quarter of the
lines to determine whether to keep the patch or not.
2010-07-26 02:20:13 +05:30
Raja R Harinath b293948fb7 EOL handling
This set of .gitattributes was automatically generated from the list of files
that GIT tried to normalize when I enabled automatic EOL conversion.

With this set of attributes, we prevent automated EOL conversion on files that
we know will cause trouble down the road.
2010-07-25 20:17:39 +05:30
Marek Habersack e179e50323 2010-06-19 Marek Habersack <[email protected]>
* DataPager.cs: when rendering the ID attribute, use ClientID

    2010-06-18  Marek Habersack  <[email protected]>

    	* NumericPagerField.cs: CreateDataPagers outputs correct page
    	number in query mode. Fixes bug #615315
    	Rendering changes to match .NET

    	* DataPagerField.cs: if query string has been handled and query
    	mode is in effect, return true. Fixes bug #615315

svn path=/trunk/mcs/; revision=159161
2010-06-18 23:01:39 +00:00
Marek Habersack 1e4a6be22d 2010-05-18 Marek Habersack <[email protected]>
* ListView.cs: if data source has pageable data, get total count
	from the source's DataSourceCount property. Fixes bug #604053

svn path=/trunk/mcs/; revision=157470
2010-05-17 23:35:55 +00:00
Marek Habersack 8fdec56cd2 Added tests for bug #535701
svn path=/trunk/mcs/; revision=157469
2010-05-17 23:35:43 +00:00
Marek Habersack 7bf126dbdf 2010-02-02 Marek Habersack <[email protected]>
* ScriptManager.cs: adjusted script rendering to match .NET
	formatting.

	* ScriptComponentDescriptor.cs: GetScript adds ID value (if
	present) to the set of properties.
	GetScript rewritten to use StringBuilder.

	* ScriptBehaviorDescriptor.cs: GetScript adds Name, if present and
	set by the user, to the descriptor's set of properties. The name
	must be rendered to the client.

2010-02-02  Marek Habersack  <[email protected]>

	* ScriptBehaviorDescriptorTest.cs,
	ScriptComponentDescriptorTest.cs: added tests for rendering of the
	Name and ID properties.

svn path=/trunk/mcs/; revision=150684
2010-02-01 23:47:21 +00:00
Marek Habersack 779b8668ea 2009-12-15 Marek Habersack <[email protected]>
* System.Web.Extensions_test.dll.sources: added
	System.Web.UI.WebControls/ListViewPagedDataSourceTest.cs

2009-12-15  Marek Habersack  <[email protected]>

	* NextPreviousPagerField.cs: HandleEvent doesn't call
	DataPager.SetPageProperties with negative start index. Also, if
	_totalRowCount is <= 0, new start index is not calculated using
	it. Fixes bug #545417

	* ListViewPagedDataSource.cs: when server paging is on, data items
	are counted from index 0 instead of from the value stored in
	StartRowIndex. Fixes bug #545417

	* ListView.cs: CreateChildControls doesn't create empty data item
	if called with fake data.
	When a view reports it can page data, ListViewPagedDataSource
	passed to item creation methods has AllowServerPaging set to
	true. Fixes bug #545417
	When CreateChildControls is called with fake data,
	ListViewPagedDataSource has its TotalRowCount property set to the
	actual total row count, not zero. Fixes bug #545417

svn path=/trunk/mcs/; revision=148498
2009-12-15 18:45:12 +00:00
Miguel de Icaza 589a61ade4 Make csproj target work again
svn path=/trunk/mcs/; revision=145998
2009-11-11 23:26:50 +00:00
Atsushi Eno dd409abf0e 2009-10-08 Atsushi Enomoto <[email protected]>
* Makefile : add -r:System.ServiceModel.
	* System.Web.Extensions_test.dll.sources : add ProxyGeneratorTest.cs.

	* LogicalTypeInfo.cs, RestHandler.cs : add support for WCF proxy
	  generator. Make LogicalTypeInfo and LogicalMethodInfo abstract
	  and create sets of derivation for asmx and WCF. Large part of the
	  code still lives in abstract class, being reduced dependency on
	  ScriptServiceAttribute.

	* ProxyGeneratorTest.cs : new test, for WCF AJAX interop.


svn path=/trunk/mcs/; revision=143755
2009-10-08 11:18:15 +00:00
Marek Habersack 83dfe82864 2009-08-17 Marek Habersack <[email protected]>
* ScriptingJsonSerializationSection.cs: MaxJsonLength default
	value is 2097152 for .NET 3.5+

2009-08-17  Marek Habersack  <[email protected]>

	* JsonSerializer.cs: serialize fields before properties.

	* JavaScriptSerializer.cs: MaxJsonLength default value for .NET
	3.5 is 2097152

2009-08-17  Marek Habersack  <[email protected]>

	* JavaScriptSerializerTest.cs: fixed broken tests

svn path=/trunk/mcs/; revision=140098
2009-08-17 20:43:45 +00:00
Marek Habersack 8553b393d0 2009-06-18 Marek Habersack <[email protected]>
* JavaScriptSerializerTest.cs: added comparison with the
	.NET-generated serialization result in TestDeserialize and
	TestDeserializeTypeResolver tests.

2009-06-18  Marek Habersack  <[email protected]>

	* ListViewTest.cs: hushed the output in ListView_Edit ()

svn path=/trunk/mcs/; revision=136383
2009-06-18 08:35:50 +00:00
Marek Habersack 6629ef8e78 2009-05-26 Marek Habersack <[email protected]>
* Test/System.Web.UI/ScriptReferenceBaseTest.cs: added tests for
	ReplaceExtension

	* System.Web.Extensions_test.dll.sources: added
	System.Web.UI/ScriptReferenceBaseTest.cs

svn path=/trunk/mcs/; revision=134757
2009-05-26 12:42:15 +00:00
Marek Habersack 9ccd39fb07 2009-03-17 Marek Habersack <[email protected]>
* JavaScriptSerializer.cs: if conversion of IDictionary or
	IDictionary <K,V> to an object is requested, make sure that a
	concrete type is used (in both cases Dictionary <string, object>).
	Make sure that if the target type is an IDictionary<K,V> that the
	key is either an object or a string.

2009-03-17  Marek Habersack  <[email protected]>

	* JavaScriptSerializerTest.cs: added tests for conversion to
	IDictionary and IDictionary <K,V> types.

svn path=/trunk/mcs/; revision=129580
2009-03-17 13:21:57 +00:00
Marek Habersack 1dfc535d36 2009-03-06 Marek Habersack <[email protected]>
* JsonDeserializer.cs: unquoted key values must ignore leading
	and trailing whitespace

2009-03-06  Marek Habersack  <[email protected]>

	* JavaScriptSerializerTest.cs: added a test for unquoted tests
	surrounded with spaces.

svn path=/trunk/mcs/; revision=128801
2009-03-06 22:16:37 +00:00
Marek Habersack b28c8ab425 2008-11-20 Marek Habersack <[email protected]>
* ListView.cs: implemented the EditItem property.
	Use ConvertEmptyStringToNull in ExtractItemValues.

2008-11-20  Marek Habersack  <[email protected]>

	* ListViewTest.cs: added tests for several properties.

svn path=/trunk/mcs/; revision=119405
2008-11-20 02:09:18 +00:00
Marek Habersack 66c1953e77 2008-11-19 Marek Habersack <[email protected]>
* ListView.cs: added paremeter checks to AddControlToContainer.
	CreateInsertItem must instantiate the template and call raise the
	ItemCreated event.
	Added parameter checks to FindPlaceholder

2008-11-19  Marek Habersack  <[email protected]>

	* AssemblyInfo.cs: made System.Web.Extensions_test_net_2_0 a
	friend assembly.

2008-11-19  Marek Habersack  <[email protected]>

	* EventRecorder.cs: class is now serializable.

	* ListViewTest.cs: use system.web Mainsoft test framework.
	ListViewPoker is now able to record events.
	Added wrappers for ListView protected methods to ListViewPoker,
	Added two simple test ITemplate classes.
	Added tests for initial values.
	Added tests for all the methods which can be tested in a simple
	way, without using a real asp.net page.
	Added test for the Edit functionality.

2008-11-19  Marek Habersack  <[email protected]>

	* CountryCollection.cs, Country.cs: added

2008-11-19  Marek Habersack  <[email protected]>

	* ListViewTest.aspx, ListViewSort.aspx, Web.mono.config: added

2008-11-19  Marek Habersack  <[email protected]>

	* Makefile (NUNIT_RESOURCE_FILES): added

	* System.Web.Extensions_test.dll.sources: added the system.web
	Mainsoft test suite files.
	Added new test files.

svn path=/trunk/mcs/; revision=119375
2008-11-19 21:13:22 +00:00
Marek Habersack d4b9426973 2008-10-30 Marek Habersack <[email protected]>
* System.Web.Extensions.dll.sources: added
	./System.Web.UI.WebControls/TemplatePagerField.cs

	* System.Web.Extensions_test.dll.sources: added
	System.Web.UI.WebControls/EventRecorder.cs,
	System.Web.UI.WebControls/ListViewTest.cs,
	System.Web.UI.WebControls/DataPagerFieldCollectionTest.cs

2008-10-30  Marek Habersack  <[email protected]>

	* DataPagerFieldCollectionTest.cs: created. Some basic tests for
	DataPagerFieldCollection

	* EventRecorder.cs: created. A helper class for tests.

	* ListViewTest.cs: created. Some basic test for ListView.

2008-10-30  Marek Habersack  <[email protected]>

	* DataPagerFieldCollection.cs: implemented most of the methods and
	properties, so that using the DataPager is possible now.

	* PagePropertiesChangingEventArgs.cs: implemented all the methods
	and properties.

	* ListView.cs: {Save,Load}ControlState now uses constants to index
	state arrays. Total row count is stored in the control state.
	CreateChildControls () now uses dummy data to initialize child
	controls if no items were found after postback.
	CreateChildControls (IEnumerable, bool) now properly calculates
	total row count, calls OnTotalRowCountAvailable after creating the
	child controls and returns the total row count instead of the
	number of created child controls. This makes pager work
	correctly.
	Implemented SetPageProperties () to support paging.

	* NextPreviousPagerField.cs: Correctly order the Next/Previous
	buttons.
	When creating buttons, cast the new control properly before
	assigning properties.

	* TemplatePagerField.cs: added (stub)

	* DataPager.cs: added missing class attributes (ParseChildren,
	PersistChildren and SupportsEventValidation).
	{Save,Load}ControlState now use constants to index the state
	arrays.
	Properly implemented FindPageableItemContainer - it now looks for
	the container up the parenthood chain, querying all the naming
	containers for the named control.
	SetUpForNewContainer now accepts an additional parameter, so that
	the SetPageProperties method is called on the container whenever
	necessary.

	* NumericPagerField.cs: implemented the CreateField method.

	* ListViewPagedDataSource.cs: implemented data source
	enumerators.

	* DataPagerFieldItem.cs: implemented all the methods and properties.

svn path=/trunk/mcs/; revision=117479
2008-10-30 14:46:35 +00:00
Marek Habersack 0b087aff65 2008-10-22 Marek Habersack <[email protected]>
* JsonDeserializer.cs: object can contain more than one unquoted
	keys.

2008-10-22  Marek Habersack  <[email protected]>

	* JavaScriptSerializerTest.cs: added tests for deserialization of
	objects with more than one unquoted key names.

svn path=/trunk/mcs/; revision=116713
2008-10-22 00:46:42 +00:00
Jonathan Pryor 799133707c Add doc-update target support.
The doc-update target updates the Documentation/en directory for libraries
(and is otherwise ignored).

svn path=/trunk/mcs/; revision=116287
2008-10-17 18:45:17 +00:00
Juraj Skripsky 0594b0199e 2008-09-23 Juraj Skripsky <[email protected]>
* JsonSerializer.cs: "SerializeGenericDictionary" is an instance method,
	fix retrieval of its MethodInfo.
	Initialize serializeGenericDictionaryMethods (lazily).
	Add and use GetClosedIDictionaryBase to also handle cases where a
	non-generic class implements a closed IDictionary<,> (e.g.
	SomeDictionary : IDictionary<string, object>). Fixes bug #424704.
	First check for IDictionary<,>, then for IDictionary.

2008-09-20  Juraj Skripsky  <[email protected]>

	* JavaScriptSerializerTest.cs: added test for bug #424704.


svn path=/trunk/mcs/; revision=113829
2008-09-23 14:33:54 +00:00
Marek Habersack b9c7ab7bc0 2008-09-20 Marek Habersack <[email protected]>
* JsonDeserializer.cs: added support for stand-alone NaN, Infinity
	and -Infinity values, as well as the same within an array.

2008-09-20  Marek Habersack  <[email protected]>

	* JavaScriptSerializerTest.cs: added some tests

svn path=/trunk/mcs/; revision=113596
2008-09-19 22:41:46 +00:00
Marek Habersack 93a1d2ad6c 2008-09-19 Marek Habersack <[email protected]>
* Json.cs: added new Serialize overload which takes a TextWriter
	for its output parameter.
	Added Deserialize methods.

	* JsonSerializer.cs: made InitialJavaScriptDateTicks internal.
	Added new Serialize overload which takes a TextWriter for its
	output parameter.
	Added WriteValue overloads for float and double - they must not be
	converted to strings as IConvertibles because their Max/MinValue
	end up converted incorrectly.

	* JavaScriptSerializer.cs: adjustments for the new JSON
	(de)serializer.

	* JsonDeserializer.cs: new JSON deserializer code, fully compliant
	with the .NET AJAX one.

2008-09-19  Marek Habersack  <[email protected]>

	* JavaScriptSerializerTest.cs: enabled some tests which were
	failing with the old (de)serializer, but work with the new one.

2008-09-19  Marek Habersack  <[email protected]>

	* System.Web.Extensions.dll.sources: removed most of the
	Newtonsoft JSON code, leaving only ReflectionUtils and
	JavaScriptUtils.


svn path=/trunk/mcs/; revision=113590
2008-09-19 21:13:55 +00:00
Marek Habersack 128130fb6c 2008-08-22 Marek Habersack <[email protected]>
* JsonSerializer.cs: do not perform deep object serialization - it
	results in all kinds of problems (including too big size of the
	resulting string, recursion errors when two or more objects in the
	hierarchy hold a reference to some object) and is not what .NET
	code does. 
	Property name is written only after it is determined if we're
	serializing the property or not.
	Entire object is serialized only if it's the object requested for
	serialization by calling code.

2008-08-22  Marek Habersack  <[email protected]>

	* Test/System.Web.Script.Serialization/JavaScriptSerializerTest.cs:
	marked several of the JavaScriptSerializer tests as not
	working. Experiments show that the tests are invalid as they relay
	on behavior which is different to .NET's.

	* System.Web.Script.Serialization/JavaScriptSerializer.cs:
	GetConverter now checks whether the requested type is descendant
	from the type supported by teh converter.

svn path=/trunk/mcs/; revision=111421
2008-08-22 20:51:45 +00:00
Marek Habersack 2c09b71a54 2008-06-11 Marek Habersack <[email protected]>
* Test/System.Web.UI/ScriptBehaviorDescriptorTest.cs,
	Test/System.Web.UI/ScriptComponentDescriptorTest.cs,
	Test/System.Web.UI/ScriptControlDescriptorTest.cs: disabled
	tests relying on the Dictionary keys order.

svn path=/trunk/mcs/; revision=105571
2008-06-11 12:11:33 +00:00
Igor Zelmanovich 5fdfd632f7 port test suite to TARGET_JVM
svn path=/branches/mainsoft/gh2.2/mcs/; revision=98600
2008-03-19 15:00:47 +00:00
Igor Zelmanovich bdf7a3e4a7 fix test suite
svn path=/trunk/mcs/; revision=93633
2008-01-23 09:41:40 +00:00
Igor Zelmanovich 664c1feacb fix test suite
svn path=/trunk/mcs/; revision=93519
2008-01-22 12:42:03 +00:00
Igor Zelmanovich d7075a22dc fix test
svn path=/trunk/mcs/; revision=93515
2008-01-22 12:16:48 +00:00
Igor Zelmanovich da111bbd4a fix test suite
svn path=/trunk/mcs/; revision=93396
2008-01-21 15:11:55 +00:00
Konstantin Triger a344135835 convert ArrayList to array only in case of DeserializeObject()
svn path=/trunk/mcs/; revision=92838
2008-01-14 10:27:15 +00:00
Igor Zelmanovich 789cb3b5d5 fixed test
svn path=/trunk/mcs/; revision=92051
2007-12-31 09:13:27 +00:00
Igor Zelmanovich eece48eb3e Upgrade test suite due to jsf integration
svn path=/trunk/mcs/; revision=91879
2007-12-25 14:56:58 +00:00
Adar Wesley 56dd3d066a Added support for TypeResolver to JavaScriptSerializer.
Added relevant tests.

svn path=/trunk/mcs/; revision=85395
2007-09-06 09:32:54 +00:00
Konstantin Triger 3a12a9c2e9 fix enum serialization
svn path=/trunk/mcs/; revision=83075
2007-07-31 13:58:58 +00:00
Igor Zelmanovich 6f7f0ce0b9 fixed test suite
svn path=/trunk/mcs/; revision=83073
2007-07-31 13:42:02 +00:00
Igor Zelmanovich a1de5be007 fixed test suite
svn path=/trunk/mcs/; revision=83070
2007-07-31 12:46:42 +00:00
Igor Zelmanovich c6cab7a222 fixed test suite
svn path=/trunk/mcs/; revision=83006
2007-07-30 16:12:10 +00:00
Igor Zelmanovich 91bf68187c fixed test suite
svn path=/trunk/mcs/; revision=83003
2007-07-30 15:43:29 +00:00