Commit Graph
546 Commits
Author SHA1 Message Date
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
Marek Safar fbe7c55a56 [system.web] Tests update 2015-02-19 20:12:52 +01:00
Alexander Köplinger d4d7374efc [bcl] Remove ONLY_1_1 defines from class libs
This is not used anymore.
2015-01-21 17:18:30 +01:00
Alexander Köplinger 746650d1b9 [bcl] Remove more NET_2_0 checks from class libs 2015-01-17 05:45:39 +01:00
Marek Safar b8d0752d82 [system.web] Update SqlDataSource test not to rely on idictionary order 2015-01-16 09:58:00 +01:00
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
Marek Safar 69daa56ade Fix exception test text 2013-03-06 11:18:04 +01:00
Miguel de Icaza ae0feab435 Removal of NET_1_1 defines and some NET_2_0; Both defines are true these days in Mono, no versions prior to 2.0 are supported 2012-06-01 18:04:24 -04: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 8cedb72187 [asp.net] Fix for bug #646505. BoundField must not assume the sender of the OnDataBindField is DataControlFieldCell. 2010-10-29 02:25:25 +02:00
Marek Habersack 94d7d01269 [asp.net] Fix for bug #649198. Implement MasterPage.InstantiateInContentPlaceHolder
Code based on patch from Rikard Johansson <[email protected]>, thanks!
2010-10-26 12:00:29 +02:00
Marek Habersack f1d69fd4bc [asp.net] Menu 4.0 List mode rendering 2010-09-10 15:36:08 +02:00
Marek Habersack 8d39b158e5 [asp.net] Fix for bug #626829. Nodes need to be re-populated on postback, with populate on demand active
When one clicks on the plus sign in the tree with populate on demand active and then clicks on the node's
text, the resulting post back is a plain one, not a callback. In this case all the nodes need to be repopulated
or they will vanish from the rendering. At the same time, the nodes have to be simply marked as populated when
a post back in callback mode is processed.

Disabled one test and a small chunk of code in TreeView.RenderNode - it needs more investigation (nothing critical
though)
2010-08-13 00:12:23 +02:00
Marek Habersack 6950d09c38 [asp.net, 4.0] Added support for RepeatLayout lists to the list controls. 2010-08-04 20:20:30 +02:00
Marek Habersack a131f24eae [asp.net, 4.0] Implemented OrderedList and UnorderedList layouts for RepeatInfo
Also added auto-generated tests for the new layouts and updated the test generator to account
for the new layouts in 4.0.
2010-08-04 18:54:53 +02:00
Marek Habersack 6b5f7a99e8 2010-07-22 Marek Habersack <[email protected]>
* MenuItemBinding.cs:
	Implemented ToString (4.0)

svn path=/trunk/mcs/; revision=160737
2010-07-22 12:46:46 +00:00
Marek Habersack f450da9e65 2010-07-22 Marek Habersack <[email protected]>
* MenuRenderingMode.cs: added (4.0)

	* Menu.cs: added the IncludeStyleBlock and RenderingMode 4.0
	properties (not used in the code yet).

svn path=/trunk/mcs/; revision=160723
2010-07-22 10:38:45 +00:00
Marek Habersack 84cf768d2d 2010-07-21 Marek Habersack <[email protected]>
* Wizard.cs: made rendering 100% compliant with .NET (button IDs,
	2.0+)
	Implemented LayoutTemplate (4.0+)

	* LinkButton.cs: render id first

	* CreateUserWizard.cs: CreateUserNavigationContainer.UpdateState
	doesn't add a previous button if we're on the first step.

svn path=/trunk/mcs/; revision=160657
2010-07-21 12:58:22 +00:00
Marek Habersack 3541a80273 2010-07-19 Marek Habersack <[email protected]>
* DataKey.cs: implemented IEquatable interface methods (4.0)

svn path=/trunk/mcs/; revision=160568
2010-07-19 13:05:21 +00:00
Marek Habersack aed4e7aea0 2010-07-19 Marek Habersack <[email protected]>
* XmlDataSource.cs: implemented CacheKeyContext property (4.0)

svn path=/trunk/mcs/; revision=160567
2010-07-19 13:05:12 +00:00
Marek Habersack cad200568e 2010-07-16 Marek Habersack <[email protected]>
* FormViewRow.cs: added internal property RenderJustCellContents
	which makes the control render only its children (4.0)

	* FormView.cs: implemented RenderOuterTable property and the
	ModifiedOuterTableStylePropertyName method (4.0)

svn path=/trunk/mcs/; revision=160496
2010-07-16 17:26:21 +00:00
Marek Habersack 1d1d22eab5 2010-07-15 Marek Habersack <[email protected]>
* WebControl.cs: implemented verifying that no inline style
	property is set for controls which support the RenderOuterTable
	property (4.0)

	* IRenderOuterTable.cs: internal helper interface for controls
	which support the RenderOuterTable property (for now only
	ChangePassword, 3 more to come)

	* ChangePassword.cs: implemented RenderOuterTable property and the
	corresponding behavior of not rendering surrounding table when the
	property is set to false (4.0).
	Modified BaseChangePasswordContainer to not inherit from Table
	anymore. Table is an instance variable (always used as the
	template container in 2.0) which is optionally (and by default)
	used to contain the templates.

svn path=/trunk/mcs/; revision=160459
2010-07-15 19:30:33 +00:00
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