Commit Graph
523 Commits
Author SHA1 Message Date
Marek Habersack f2f50f05da 2010-07-15 Marek Habersack <[email protected]>
* PlaceHolder.cs, View.cs, WizardStepBase: added EnableTheming
	property

	* MultiViewControlBuilder.cs: added

More 2.0/4.0 metadata updates

svn path=/trunk/mcs/; revision=160448
2010-07-15 16:51:09 +00:00
Marek Habersack f9aca58e82 4.0/2.0 metadata updates + some test updates
svn path=/trunk/mcs/; revision=160378
2010-07-14 19:46:01 +00:00
Marek Habersack 23d67b3f07 2010-07-14 Marek Habersack <[email protected]>
* Menu.cs: fixed skip link rendering (no child controls are added
	in the process, writing directly to HtmlTextWriter). Fixes tests
	for 4.0
	If StaticSubMenuIndent equals Unit.Empty on 4.0, default to using
	16px as the value of the margin-left CSS attribute.

Fixed all failing tests (both 2.0 and 4.0)

svn path=/trunk/mcs/; revision=160369
2010-07-14 15:55:09 +00:00
Marek Habersack b58d43fc4c 2010-07-13 Marek Habersack <[email protected]>
* BoundField.cs: implemented HtmlEncodeFormatString property
	(3.5+) and modified the way FormatDataValue works accordingly.

svn path=/trunk/mcs/; revision=160312
2010-07-13 19:54:34 +00:00
Marek Habersack 9b6ca247de 2010-07-13 Marek Habersack <[email protected]>
* ListBox.cs, CheckBoxList.cs, ListControl.cs: VerifyMultiSelect
	is not part of the official API. MultiSelect capability validation
	is performed using an internal virtual method MultiSelectOk ().

	* BaseDataList.cs: OnPagePreLoad is not part of the official API

	* BaseDataBoundControl.cs, BaseDataList.cs, DataListItem.cs,
	ValidationSummary.cs: implemented 4.0 SupportsDisabledAttribute
	property.

svn path=/trunk/mcs/; revision=160305
2010-07-13 17:45:17 +00:00
Marek Habersack 3e86dae309 2010-07-13 Marek Habersack <[email protected]>
* Control.cs: moved 4.0 ClientID code to a separate method, so
	that the ID_SET flag isn't set when necessary.

2010-07-13  Marek Habersack  <[email protected]>

	* Wizard.cs: wizard table doesn't contain any instances of
	HtmlAnchor or Image controls. Moved rendering of the skip link
	anchor to the TableCellNamingContainer class, which does that in
	RenderChildren by directly writing to the passed writer. Fixes 4.0
	rendering and all the failing Wizard tests.

svn path=/trunk/mcs/; revision=160304
2010-07-13 16:34:23 +00:00
Marek Habersack f2783a3286 Another 4.0 test update
svn path=/trunk/mcs/; revision=160188
2010-07-10 00:25:23 +00:00
Marek Habersack 77aff7f68b Removed debugging code
svn path=/trunk/mcs/; revision=160186
2010-07-10 00:25:07 +00:00
Marek Habersack e4aea66ffa More 4.0 test fixes
svn path=/trunk/mcs/; revision=160057
2010-07-08 13:10:45 +00:00
Marek Habersack 9bd54de080 2010-07-08 Marek Habersack <[email protected]>
* ImageMap.cs: implemented missing Enabled property (2.0+)
	RaisePostBackEvent must be protected and virtual (2.0+)
	NavigateUrl is ignored if the control is disabled (4.0)

svn path=/trunk/mcs/; revision=160053
2010-07-08 13:10:06 +00:00
Marek Habersack aa965a9bf3 Another 4.0 test update
svn path=/trunk/mcs/; revision=160052
2010-07-08 13:09:56 +00:00
Marek Habersack cb9a9f28e2 4.0 test update
svn path=/trunk/mcs/; revision=160051
2010-07-08 13:09:46 +00:00
Marek Habersack 6d0b03285c 2010-07-07 Marek Habersack <[email protected]>
* TreeView.cs:
	When using registered CSS classes, the node style must use them in
	reverse order.

More 4.0 test updates (disabled some Menu tests until its rendering is updated)

svn path=/trunk/mcs/; revision=160003
2010-07-07 13:04:50 +00:00
Marek Habersack a670985119 2010-07-07 Marek Habersack <[email protected]>
* TreeView.cs: 4.0 rendering changes.

Another batch of 4.0 test updates

svn path=/trunk/mcs/; revision=159996
2010-07-07 11:29:23 +00:00
Marek Habersack 0967be60db 2010-07-06 Marek Habersack <[email protected]>
* HyperLink.cs: the associated image is not rendered using the
	Image control.

4.0 updates for several tests (HTML rendering changes)

svn path=/trunk/mcs/; revision=159995
2010-07-07 11:29:09 +00:00
Marek Habersack d8838a6414 This commit introduces a few 4.0 rendering changes which break some tests. The broken tests
fail to work on .NET 4.0 as well, for the most part. I will fix them next week.

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

    	* TemplateControlParser.cs: added support for ClientIDMode
    	property

    	* Control.cs: implemented 4.0 features - ClientIDMode and
    	RenderingCompatibility.

    	* ClientIDMode.cs, IDataKeysControl.cs: added

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

    	* Menu.cs: 4.0 API updates.

    	* GridView.cs: implemented 4.0 properties -
    	SortedAscendingCellStyle, SortedAscendingHeaderStyle,
    	SortedDescendingCellStyle, SortedDescendingHeaderStyle,
    	ClientIDRowSuffix, ClientIDRowSuffixDataKeys, ShowHeaderWhenEmpty
    	along with associated rendering changes.

    	* DetailsView.cs, FormView.cs, GridView.cs: 4.0 API changes -
    	renamed ShowPage to SetPageIndex and made it public.
    	Added 4.0 interfaces to inheritance list and implemented them.

    	* DataKeyArray.cs: added internal constructor which accepts IList
    	instead of ArrayList. Changed the 'keys' field type to IList.

    	* ContainedTable.cs: the 'id' attribute must be rendered last.

    	* CheckBox.cs, CheckBoxList.cs, SiteMapPath.cs, Table.cs,
    	TableStyle.cs, TextBox.cs, WebControl.cs: 4.0 rendering changes.

    	* Calendar.cs, CompositeControl.cs, DropDownList.cs, HyperLink.cs,
    	Image.cs, ImageButton.cs, Label.cs, LinkButton.cs, LoginName.cs,
    	Panel.cs, Table.cs, TableCell.cs, TableRow.cs:
    	added new 4.0 property, SupportsDisabledAttribute.

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

    	* VersionConverter.cs: added support for checking whether the
    	passed version is equal or more than a specified minimal version.

    	* PagesSection.cs: added two 4.0 properties - ClientIDMode and
    	ControlRenderingCompatibilityVersion

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

    	* TemplateControlCompiler.cs: added support for ClientIDMode 4.0
    	property

    	* PageCompiler.cs, UserControlCompiler.cs: AddStatementsToInitTop
    	must call the base implementation.

svn path=/trunk/mcs/; revision=159826
2010-07-02 19:12:31 +00:00
Marek Habersack 7e02dfbdc9 Fixes to a bunch of unit tests which would fail when running on .NET and few updates to
our system.web controls.

svn path=/trunk/mcs/; revision=159495
2010-06-24 12:55:00 +00:00
Marek Habersack c8e70f1fc5 2010-06-03 Marek Habersack <[email protected]>
* Parameter.cs, ControlParameter.cs, SessionParameter.cs,
	CookieParameter.cs, FormParameter.cs, ProfileParameter.cs,
	QueryStringParameter.cs: Evaluate is 'protected internal virtual'
	in 4.0.

	* RouteParameter.cs: implemented.

svn path=/trunk/mcs/; revision=158371
2010-06-02 23:12:20 +00:00
Marek Habersack 9d5a298da2 2010-04-28 Marek Habersack <[email protected]>
* CheckBoxListTest.cs: added test for bug #600415

2010-04-28  Marek Habersack  <[email protected]>

	* CheckBoxList.cs: do not modify list item status in LoadPostData
	when the list control is disabled.
	If an item is selected and it was unchecked by the user, deselect
	it. Fixes bug #600415

svn path=/trunk/mcs/; revision=156312
2010-04-28 13:08:39 +00:00
Marek Habersack 3f3fd1c424 2010-04-13 Marek Habersack <[email protected]>
* GridView.cs: make sure Header and Footer visibility are set when
	binding the data. Fixes bug #595567

svn path=/trunk/mcs/; revision=155331
2010-04-13 21:31:23 +00:00
Marek Habersack 934829dadd 2010-04-13 Marek Habersack <[email protected]>
* ImageField.cs, CheckBoxField.cs: OnDataBindField must expect
    	sender to be something else than DataControlFieldCell. Fixes bug
    	#595568

    2010-04-13  Marek Habersack  <[email protected]>

    	* CheckBoxFieldTest.cs: added test for bug #595568

svn path=/trunk/mcs/; revision=155270
2010-04-12 22:40:55 +00:00
Marek Habersack 05c45cf998 2010-04-01 Marek Habersack <[email protected]>
* FormView.cs: do not show the pager if PagerSettings.Visible is
	false. Fixes bug #578863

2010-04-01  Marek Habersack  <[email protected]>

	* FormViewTest.cs: added test for bug #578863

svn path=/trunk/mcs/; revision=154631
2010-04-01 11:20:09 +00:00
Marek Habersack e4848932af 2010-02-19 Marek Habersack <[email protected]>
* SqlDataSourceTest.cs: added test for bug #572781

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

	* SqlDataSource.cs: call base.OnInit in OnInit. Fixes bug #572781

svn path=/trunk/mcs/; revision=152060
2010-02-19 11:17:06 +00:00
Marek Habersack 869552f0d0 2010-02-19 Marek Habersack <[email protected]>
* ButtonTest.cs: added test for bug #325489

svn path=/trunk/mcs/; revision=152045
2010-02-19 03:02:58 +00:00
Marek Habersack 2cf5d1a507 2010-02-19 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: GetConverterForMember now completely
	relies on TypeDescriptor and description providers to retrieve
	converter for a property. Fixes bug #578586
	If UrlPropertyAttribute is found for a member,
	GetExpressionFromString uses the preconverted value, if any, as
	parameter to HandleUrlProperty.

svn path=/trunk/mcs/; revision=152040
2010-02-19 01:51:06 +00:00
Marek Habersack d63508e6c0 2010-02-18 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/CheckBoxList_Bug377703_1.aspx,
	Test/mainsoft/NunitWebResources/CheckBoxList_Bug377703_2.aspx and
	Test/mainsoft/NunitWebResources/CheckBoxList_Bug578770.aspx

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

	* CheckBoxListTest.cs: added tests for bugs #377703 and #578770

	* TreeViewTest.cs: added test for bug #580692

svn path=/trunk/mcs/; revision=152025
2010-02-18 21:48:35 +00:00
Marek Habersack 140576e9f4 2010-02-18 Marek Habersack <[email protected]>
* TreeViewTest.cs: added test for bug #580692

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

	* TreeView.cs: RegisterStyle must copy CssClass in addition to
	other style properties. Fixes bug #580692

svn path=/trunk/mcs/; revision=151964
2010-02-18 10:50:31 +00:00
Jonathan Pobst 7d4f76fb9c 2010-01-21 Jonathan Pobst <[email protected]>
* ThemeTest.cs: Mark UrlProperty test as NotWorking to clean
	up buildbot.  Filed as 572707.

svn path=/trunk/mcs/; revision=149990
2010-01-21 16:34:30 +00:00
Marek Habersack 287b184544 2010-01-18 Marek Habersack <[email protected]>
* Parameter.cs: added missing 3.5 APIs - constructors taking
	DbType as one of the parameters, ConvertDbTypeToTypeCode,
	ConvertTypeCodeToDbType and GetDatabaseType. Fixes bug #567850

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

	* ParameterTest.cs: added tests for ConvertDbTypeToTypeCode,
	ConvertTypeCodeToDbType and constructors taking DbType as one of
	the parameters.

svn path=/trunk/mcs/; revision=149778
2010-01-18 22:34:03 +00:00
Marek Habersack 079990272c 2010-01-15 Marek Habersack <[email protected]>
* ChangePassword.cs: BaseChangePasswordContainer forwards
	EnsureChildControls call to its owner, so that finding controls in
	the container works correctly.

2010-01-15  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/ChangePasswordContainer_FindControl.aspx

2010-01-15  Marek Habersack  <[email protected]>

	* ChangePasswordTest.cs: added test for looking for controls in
	ChangePassword template containers.

svn path=/trunk/mcs/; revision=149631
2010-01-15 13:23:54 +00:00
Marek Habersack b58f5b27ba 2009-11-16 Marek Habersack <[email protected]>
* TreeNodeTest.cs: added test for a situation when a
	node already contains children when the PopulateOnDemand property
	is set.

2009-11-16  Marek Habersack  <[email protected]>

	* TreeNodeCollection.cs: whenever a node is added, let the owner
	know about it.

	* TreeNode.cs: added internal property HadChildrenBeforePopulating
	which is used to let TreeView know about an error condition where
	a populate-on-demand node contains children added outside the
	OnTreeNodePopulate event

	* TreeView.cs: if a node has any child nodes and PopulatOnDemand
	is set, throw an exception from RenderNode. This is the behavior
	of .NET

svn path=/trunk/mcs/; revision=146275
2009-11-16 17:09:06 +00:00
Marek Habersack a8288d7c7b Fix a test
svn path=/trunk/mcs/; revision=146191
2009-11-13 23:43:49 +00:00
Marek Habersack e384ddcd0d 2009-11-13 Marek Habersack <[email protected]>
* TableRowCollection.cs: added .NET compatibility NREX throws to
	several methods.
	Whenever a row is added/removed, its Container property is
	set. Fixes bug #551666

	* TableRow.cs: introduced an internal property, Container, which
	is set by TableRowCollection whenever this row is added/removed
	to/from the collection. This allows the row to notify the
	collectio and, in consequence, collection owner that TableSection
	has been set and thead/tbody/tfoot elements need to be
	generated. Fixes bug #551666

2009-11-13  Marek Habersack  <[email protected]>

	* GridViewTest.cs: added test for bug #551666

2009-11-13  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/TableSections_Bug551666.aspx
	Test/mainsoft/NunitWebResources/TableSections_Bug551666.aspx.cs

svn path=/trunk/mcs/; revision=146126
2009-11-13 12:56:34 +00:00
Marek Safar 23c516071c 2009-10-13 Marek Safar <[email protected]>
* WebColorConverterTest.cs: Fixed .NET compatibility.


svn path=/trunk/mcs/; revision=144018
2009-10-13 15:35:40 +00:00
Marek Habersack 8483da2ba2 2009-10-13 Marek Habersack <[email protected]>
* WebColorConverter.cs: don't use a dictionary to check for valid
	color names, use Color.IsKnownColor instead. Update for bug
	#546173 fix.
	Added more CSS2 color name mappings.

svn path=/trunk/mcs/; revision=143990
2009-10-12 22:51:21 +00:00
Marek Habersack 104d165458 - Added VS2008 projects to compile test assemblies
- All resources are named the same on .NET and Mono for test assemblies
- Prepared SystemWebTestShim to work on .NET (to the extent it is possible)
- System.Web.Util made public when compiling tests in VS2008

svn path=/trunk/mcs/; revision=143511
2009-10-06 14:12:28 +00:00
Marek Habersack b8aa255901 Unbreak some tests
svn path=/trunk/mcs/; revision=141746
2009-09-11 12:03:15 +00:00
Marek Habersack 5a63ec5da9 2009-03-17 Marek Habersack <[email protected]>
* Unit.cs: introduced a field to tell the difference between empty
	(as in Unit.Empty) and 0px units.

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

	* UnitTest.cs: added a test for equality with Unit.Empty

svn path=/trunk/mcs/; revision=129620
2009-03-17 19:01:30 +00:00
Marek Habersack 29116a074f 2009-03-12 Marek Habersack <[email protected]>
* EditCommandColumnTest.cs: ignore two tests, most likely broken.

svn path=/trunk/mcs/; revision=129198
2009-03-12 20:23:23 +00:00
Marek Habersack 4d4dfda2d6 2009-02-10 Marek Habersack <[email protected]>
* ImageButton.cs: AddAttributesToRender renders the onclick
	attribute only if any of the following is true:
	  - OnClientClick is not empty
	  - Validation is enabled for the control
	  - PostBackUrl is used
	PostBackOptions now indicate that control requires the javascript
	protocol for the handler.
	RaisePostBackEvent passes String.Empty as the argument.
	Fixes bug #463939

2009-02-10  Marek Habersack  <[email protected]>

	* ImageButtonTest.cs: added test for bug #46393

svn path=/trunk/mcs/; revision=126482
2009-02-10 18:12:15 +00:00
Marek Habersack cb88a46267 2009-02-09 Marek Habersack <[email protected]>
* ObjectDataSourceViewTest.cs: added test for bug #471767

2009-02-09  Marek Habersack  <[email protected]>

	* ObjectDataSourceView.cs: ExecuteSelect returns a single-item
	array of objects containing the result, if the result isn't one of
	DataSet, DataTable or IEnumerable. Fixes bug #471767

svn path=/trunk/mcs/; revision=126371
2009-02-09 21:08:40 +00:00
Marek Habersack 883b592eb0 2009-02-06 Marek Habersack <[email protected]>
* Style.cs: if CssClass is null, return String.Empty. Fixes bug
	#473303
	Added a range check to the BorderStyle property.

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

	* StyleTest.cs: added tests for CssClass and BorderStyle.
	Renamed the Style_CssClass method to Style_RegisteredCssClass.

svn path=/trunk/mcs/; revision=126051
2009-02-06 15:06:18 +00:00
Marek Habersack f3e28b8c5d Merge branch 'bug468359'
* bug468359:
  2009-02-05  Marek Habersack  <[email protected]>

Conflicts:

	class/System.Web/ChangeLog
	class/System.Web/Makefile

svn path=/trunk/mcs/; revision=125885
2009-02-05 17:01:27 +00:00
Marek Habersack bc0513683f set svn:eol-style to native and converted several files to unix line ending
svn path=/trunk/mcs/; revision=124209
2009-01-22 14:52:09 +00:00
Marek Habersack 756c864128 Changelogs for test changes
svn path=/trunk/mcs/; revision=124122
2009-01-21 22:48:43 +00:00
Marek Habersack 0caa6e73fd Disabled tests failing because of nunit 2.4 issue
svn path=/trunk/mcs/; revision=124121
2009-01-21 22:48:32 +00:00
Marek Habersack 7bbd8d5027 2008-10-08 Marek Habersack <[email protected]>
* ControlParameter.cs: Evaluate calls DataBinder.Eval to do the
	evaluation now. This makes it support complex expressions.

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

	* DataBinder.cs: in Eval expression needs to be trimmed before
	checking whether it's an empty string.
	GetIndexedPropertyValue must explicitly look for the "Item"
	property, the lack of the DefaultMember attribute on type must not
	throw exceptions.

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

	* ControlParameterTest.cs: added a test for ControlParameter
	evaluating a complex property expression.

svn path=/trunk/mcs/; revision=115193
2008-10-08 10:31:17 +00:00
Sebastien Pouliot 93d496c914 2008-09-30 Sebastien Pouliot <[email protected]>
* RoleGroupCollectionTest.cs: Add test case this[int].


svn path=/trunk/mcs/; revision=114476
2008-09-30 13:12:54 +00:00
Marek Habersack d7e17ed3ce Forgotten changelog
svn path=/trunk/mcs/; revision=108979
2008-07-28 09:54:39 +00:00
Marek Habersack 8b2ed681ef 2008-07-28 Marek Habersack <[email protected]>
* MasterPage.cs: decouple processing of content templates in
	CreateMasterPage from checking whether all the content place
	holder ids are defined. Fixes bug #325114

2008-07-28  Marek Habersack  <[email protected]>

	* StandardUrl.cs: added a new standard url -
	PAGE_WITH_MASTER_INVALID_PLACE_HOLDER.

2008-07-28  Marek Habersack  <[email protected]>

	* MyPageWithMasterInvalidPlaceHolder.aspx: added

2008-07-28  Marek Habersack  <[email protected]>

	* MasterPageTest.cs: added a test for situations when a page tries
	to use a content place holder not defined in the associated master
	page (bug #325114)

2008-07-28  Marek Habersack  <[email protected]>

	* NunitWeb/Makefile (NunitWeb.dll): added dependency on
	NunitWeb/Resources/MyPageWithMasterInvalidPlaceHolder.aspx, it is
	also included in the resources.



svn path=/trunk/mcs/; revision=108975
2008-07-28 08:20:59 +00:00