14 Commits
Author SHA1 Message Date
Alexander Köplinger d61e7aca9a [bcl] Update tests that failed when .cs file contained CRLF
Most of them used multiline C# string literals which
means they contained the line ending character of the file.
Updated to make the tests resilient to having CRLF instead of LF.

Some of the mcs tests used a checksum to compare files,
ensured those are checked out using LF.
2017-01-28 02:25:55 +01:00
Alexander Köplinger b03e606287 Remove ChangeLog files from the repo
They weren't updated in the last 6 years and aren't helpful anymore (e.g. by causing unrelated matches during git grep searches).
2016-01-29 19:17:06 +01:00
Alexander Köplinger 98cf04084a [bcl] Remove NET_4_0 defines from class libs
NET_4_0 is always defined now, so the ifdefs are redundant.
I verified the libs are exactly the same after this change, so this is effectively a no-op.
2015-07-26 15:01:49 +02:00
Alexander Köplinger 2a978a42f1 [bcl] Remove NET_3_5 defines from class libs 2015-01-21 17:59:27 +01:00
Marek Habersack 3939f4ddf6 [asp.net] Failing tests fixes. 2011-01-04 10:03:11 +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 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 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
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 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