Commit Graph
14 Commits
Author SHA1 Message Date
Marek Habersack 3f52584691 2009-12-18 Marek Habersack <[email protected]>
* Makefile (EXTRA_DISTFILES): include test resources in
	dist. Fixes bug #564987

svn path=/trunk/mcs/; revision=148741
2009-12-18 09:45:35 +00:00
Marek Habersack 4a7be3c007 2009-09-18 Marek Habersack <[email protected]>
* MetaTable.cs: implemented Init - calls Init on all the columns
	present in this instance.

	* MetaModel.cs: constructor initializes FieldTemplateFactory after
	it is instantiated.
	RegisterContextCore first registers the context type, then creates
	tables and finally calls Init on all the tables.

	* MetaColumn.cs: added internal Init method - called by MetaModel
	after context is registered and all tables are created and
	registered.

	* MetaChildrenColumn.cs: implemented ChildTable,
	ColumnInOtherTable, GetChildrenListPath, GetChildrenPath and added
	an internal Init method override. MonoTODO attributes stay until I
	write tests for the class.

	* FieldTemplateUserControl.cs: implemented ChildrenColumn,
	ChildrenPath, Column, ForeignKeyColumn, ForeignKeyPath,
	MetadataAttributes, Mode, Row, Table, SetHost

	* FieldTemplateFactory.cs: GetFieldTemplateVirtualPath fixes

	* DynamicControl.cs: implemented ApplyFormatInEditMode,
	ConvertEmptyStringToNull, DataField, DataFormatString, HtmlEncode,
	FormattingOptions, NullDisplayText, UIHint, OnInit, Render.

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

	* TestsBasePage.cs: added an event ItemDataBinding, invoked
	whenever an item is data bound.

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

	* Makefile (TEST_RESOURCE_FILES): added
	Test/WebPages/ListView_DynamicControl_10.aspx,
	Test/WebPages/ListView_DynamicControl_10.aspx.cs

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

	* DynamicControlTest.cs: FieldTemplate_1 - fixed fake edit
	postback for Mono.

svn path=/trunk/mcs/; revision=142161
2009-09-18 00:24:11 +00:00
Marek Habersack 47a0d24870 2009-09-15 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
	Test/WebPages/ListView_DynamicControl_09.aspx and
	Test/WebPages/ListView_DynamicControl_09.aspx.cs

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

	* FieldTemplateFactoryTest.cs: implemented tests for
	BuildVirtualPath, GetFieldTemplateVirtualPath and PreprocessMode.

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

	* MetaColumn.cs: DataTypeAttribtue created automatically for
	string columns, must be of type MultilineText for long strings.

	* FieldTemplateFactory.cs: implemented BuildVirtualPath,
	CreateFieldTemplate, GetFieldTemplateVirtualPath, PreprocessMode
	and fixed implementation of TemplateFolderVirtualPath.

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

	* DataTypeAttribute.cs: implemented GetDataTypeName

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

	* ListView.cs: CreateChildControls calls EnsureDataBound only if
	we're not in post-back and if data binding is required.

svn path=/trunk/mcs/; revision=141922
2009-09-14 23:24:54 +00:00
Marek Habersack 7db9098b2e 2009-09-10 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
	Test/WebPages/ListView_DynamicControl_05.aspx
	Test/WebPages/ListView_DynamicControl_05.aspx.cs
	Test/WebPages/ListView_DynamicControl_06.aspx
	Test/WebPages/ListView_DynamicControl_06.aspx.cs
	Test/WebPages/ListView_DynamicControl_07.aspx
	Test/WebPages/ListView_DynamicControl_07.aspx.cs
	Test/WebPages/ListView_DynamicControl_08.aspx
	Test/WebPages/ListView_DynamicControl_08.aspx.cs

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

	* DynamicControl.cs: implemented several properties.
	Added code for ResolveColumn method, called from OnInit

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

	* DynamicControlTest.cs: added seveal tests for DataField and UIHint

svn path=/trunk/mcs/; revision=141651
2009-09-10 00:04:37 +00:00
Marek Habersack 4682ccf73b 2009-07-08 Marek Habersack <[email protected]>
* DynamicControlTest.cs: added tests for ApplyFormatInEditMode,
	Column, ConvertEmptyStringToNull, CssClass, DataField,
	DataFormatString, FieldTemplate, Table, UIHint

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

	* 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  <[email protected]>

	* TestsSetup.cs: added the BuildPath helper method which converts
	unix-style filesystem paths to the os-specific format.

svn path=/trunk/mcs/; revision=137568
2009-07-08 13:48:59 +00:00
Raja R Harinath def434b458 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
2009-07-06 14:52:54 +00:00
Marek Habersack 7d2a8fcc9c 2009-07-03 Marek Habersack <[email protected]>
* Added some resources to WebPages - a test web page for
	DynamicControlTest and the required DynamicData scaffolding.

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

	* Makefile: added more resources to the test assembly

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

	* DynamicControlTest.cs: added

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

	* DynamicDataContainerModelProvider.cs,
	DynamicDataContainerTableProvider.cs: are generic classes now.

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

	* 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  <[email protected]>

	* 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  <[email protected]>

	* 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
2009-07-03 15:07:04 +00:00
Marek Habersack 84040b65ab 2009-06-18 Marek Habersack <[email protected]>
* MetaColumnTest.cs: added test for SortExpression

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

	* DynamicDataContainerColumnProvider.cs: added setting of
	IsSortable

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

	* Test/DataSource/DynamicDataColumn.cs: added Sortable property.

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

	* TestDataColumn.cs: mark the column as sortable based on value of
	the DynamicDataSortable attribute.

	* Baz.cs: added a sortable column.

svn path=/trunk/mcs/; revision=136386
2009-06-18 09:21:04 +00:00
Marek Habersack efcfa151e4 2009-06-17 Marek Habersack <[email protected]>
* MetaColumnTest.cs: added another data context.
    	Added tests for EntityTypeProperty, HtmlEncode, IsBinaryData,
    	IsCustomProperty, IsFloatingPoint, IsForeignKeyComponent,
    	IsGenerated, IsInteger, IsLongString, IsPrimaryKey, IsReadOnly,
    	IsString, MaxLength, Model, Name, NullDisplayText, Provider,
    	RequiredErrorMessage, Scaffold, Table, TypeCode, UIHint.

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

    	* DynamicDataStringLengthAttribute.cs: added

    	* DynamicDataContainerColumnProvider.cs: implemented
    	EntityTypeProperty, IsCustomProperty, IsGenerated, MaxLength.

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

    	* MetaTable.cs: fixed Scaffold implementation.
    	Added internal ScaffoldAllTables property.

    	* MetaColumn.cs: fixed TypeCode, MaxLength, Scaffold, UIHint
    	implementations.
    	Implemented IsLongString, IsBinaryData, IsReadOnly,
    	NullDisplayText, RequiredErrorMessage

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

    	* System.Web.DynamicData_test.dll.sources: added
    	Common/FooNoScaffold.cs, Common/TestDataContext2.cs,
    	ModelProviders/DynamicDataStringLengthAttribute.cs

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

    	* MetaColumnTest.cs: added

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

    	* TestDataContext.cs: added new tables

    	* BazColumnAttributes.cs, BazDataTypeDefaultTypes.cs,
    	FooWithMetadataType.cs: added

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

    	* MetaColumn.cs: implemented ApplyFormatInEditMode, Attributes,
    	ConvertEmptyStringToNull, DataFormatString, DataTypeAttribute,
    	DefaultValue, Description, DisplayName

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

    	* MetaTable.cs: use MetaModel.GetTypeDescriptor to retrieve
    	associated entity type attributes.

    	* MetaModel.cs: implemented registration of type metadata
    	cache. Metadata is provided by a set of TypeDescriptionProvider
    	instances (if ContextConfig is present for given model provider)
    	or by default type description provider (note that this
    	functionality is not implemented in
    	System.ComponentModel.TypeDescriptor yet!).

svn path=/trunk/mcs/; revision=136272
2009-06-17 00:08:11 +00:00
Marek Habersack 5776009840 2009-06-12 Marek Habersack <[email protected]>
* MetaTableTest.cs: tests use single data model provider now.
	Implemented tests for IsReadOnly, ListActionPath, Model, Name,
	Provider, Scaffold, SortColumn, SortDescending, ToString.
	Fixed ForeignKeyColumnNames test.

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

	* TestDataContainer.cs: GetTables uses an object of the associated
	data type to create table collection.

	* TestDataColumn.cs: foreign key columns are determined using a
	custom attribute instead of a name now. This makes it possible to
	specify which table.column they are associated with.

	* FooDisplayColumnAttribute.cs: changed sortDescending to true in
	class attributes.

	* AssociatedBar.cs, AssociatedFoo.cs, FooEmptySortColumn.cs,
	FooMisnamedSortColumn.cs, FooNoScaffold.cs, FooReadOnly.cs,
	ITestDataContext.cs, TestDataContext.cs: added

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

	* MetaTable.cs: implemented correct detection of foreign key
	columns.
	Implemented IsReadOnly, SortColumn, SortDescending.

svn path=/trunk/mcs/; revision=135997
2009-06-12 13:14:49 +00:00
Marek Habersack c0aae4dbed 2009-06-10 Marek Habersack <[email protected]>
* TestDataColumn.cs: added detection of foreign key columns.

    	* FooWithDefaults.cs: added foreign key columns

    	* FooDisplayName.cs, FooDisplayNameEmptyName.cs,
    	FooSettableDefaults.cs: added

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

    	* MetaTable.cs: fixed DisplayName implementation.
    	Implemented GetPrimaryKeyString, GetQuery.

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

    	* System.Web.DynamicData_test.dll.sources: added
    	Common/FooDisplayName.cs
    	Common/FooDisplayNameEmptyName.cs
    	Common/FooSettableDefaults.cs

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

    	* MetaTableTest.cs: added more table contexts.
    	Added tests for: Attributes, Columns, DataContextPropertyName,
    	DataContextType, DisplayName, EntityType, ForeignKeyColumnNames
    	(doesn't work on .NET), GetPrimaryKeyString, GetQuery,
    	HasPrimaryKey,

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

    	* MetaTableTest.cs: added two more tables for various kinds of
    	tests (in fixture setup).
    	More tests for GetActionPath.
    	Tests for GetPrimaryKeyValues, DisplayColumn, Attributes,
    	GetDisplayString, GetColumn, TryGetColumn

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

    	* Baz.cs, BazNoStrings.cs, BazNoStringsNoPrimary.cs,
    	FooDisplayColumnAttribute.cs, FooEmpty.cs,
    	FooEmptyDisplayColumnAttribute.cs,
    	FooInvalidDisplayColumnAttribute.cs, FooWithToString.cs,
    	TestDataColumn.cs, TestDataContainer.cs, TestDataTable.cs: added

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

    	* MetaTable.cs: implemented more overloads of GetActionPath.
    	Implemented GetPrimaryKeyValues, GetActionPathFromRoutes,
    	Attributes, DisplayColumn, GetDisplayString.

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

    	* MetaTableTest.cs: added two more tables for various kinds of
    	tests (in fixture setup).
    	More tests for GetActionPath.
    	Tests for GetPrimaryKeyValues.

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

    	* MetaTable.cs: implemented more overloads of GetActionPath.
    	Implemented GetPrimaryKeyValues.
    	Implemented GetActionPathFromRoutes.

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

    	* Utils.cs: added two BuildActionName methods to make building
    	action paths for testing more compact.

    	* FooNoPrimaryColumns.cs, FooNoDefaultsWithPrimaryKey.cs: added

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

    	* System.Web.DynamicData_test.dll.sources: added
    	Common/FooNoDefaultsWithPrimaryKey.cs
    	Common/FooNoPrimaryColumns.cs

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

    	* Utils.cs: added.
    	  Moved GetModel here from MetaModelTest.cs
    	  Added RegisterContext methods.

    	* FooWithDefaultsContainer.cs,
    	FooWithDefaultsColumn.cs,FooWithDefaultsTable.cs,
    	FooWithDefaults.cs: added

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

    	* MetaTableTest.cs: added.

svn path=/trunk/mcs/; revision=135844
2009-06-10 13:42:36 +00:00
Marek Habersack 30140fbbfd 2009-04-29 Marek Habersack <[email protected]>
* MetaTable.cs: implemented the DataContextType,
    	DataContextPropertyName properties and the ToString method.

    	* MetaColumn.cs: implemented the Scaffold, DisplayName,
    	SortExpression, UIHint properties and the ToString method.

    	* DynamicField.cs: implemented

    	* DynamicDataManager.cs: partially implemented RegisterControl.
    	Added internal AutoFieldGenerator class, used by RegisterControl
    	when dealing with GridView.
    	Implemented some properties.

    	* DynamicDataExtensions.cs: implemented GetTable and FindMetaTable

    	* DynamicControl.cs: implemented parts of the class.

    2009-04-29  Marek Habersack  <[email protected]>

    	* DataBoundControl.cs: added InternalGetDataSource method, used by
    	DynamicData

    2009-04-29  Marek Habersack  <[email protected]>

    	* AssemblyInfo.cs: added InternalsVisibleTo for
    	System.Web.DynamicData

    2009-04-29  Marek Habersack  <[email protected]>

    	* Test/System.Web.DynamicData.ModelProviders/TableProviderTest.cs:
    	added

    	* System.Web.DynamicData_test.dll.sources: added
    	System.Web.DynamicData/DynamicDataManagerTest.cs,
    	System.Web.DynamicData/DynamicDataExtensionsTest.cs,
    	System.Web.DynamicData.ModelProviders/TableProviderTest.cs

    	* System.Web.DynamicData.dll.sources: added
    	System.Web.DynamicData.ModelProviders/DLinqAssociationProvider.cs
    	System.Web.DynamicData.ModelProviders/DLinqColumnProvider.cs
    	System.Web.DynamicData.ModelProviders/DLinqDataModelProvider.cs
    	System.Web.DynamicData.ModelProviders/DLinqTableProvider.cs and
    	removed
    	System.Web.DynamicData.ModelProviders/DLinqDataModelProviders.cs

    2009-04-29  Marek Habersack  <[email protected]>

    	* TableProvider.cs: implemented

    	* DLinqDataModelProvider.cs: renamed from
    	DLinqDataModelProviders.cs and moved some classes to separate
    	files.

    	* DLinqTableProvider.cs: moved to here from
    	DLinqDataModelProvider.cs

    	* DLinqColumnProvider.cs: moved to here from
    	DLinqDataModelProvider.cs

    	* DLinqAssociationProvider.cs: added

    2009-04-29  Marek Habersack  <[email protected]>

    	* DataBinder.cs: GetPropertyValue must throw also if propName is
    	empty.

    2009-04-23  Marek Habersack  <[email protected]>

    	* ContextConfiguration.cs: implemented all the methods and added a
    	parameterless constructor.

    2009-04-23  Marek Habersack  <[email protected]>

    	* System.Web.DynamicData_test.dll.sources: added
    	System.Web.DynamicData/ContextConfigurationTest.cs

    	* Makefile: tests need to be linked with
    	System.ComponentModel.DataAnnotations.dll

    2009-04-23  Marek Habersack  <[email protected]>

    	* AssociatedMetadataTypeTypeDescriptor.cs: added - doesn't add any
    	real functionality yet.

    	* AssociatedMetadataTypeTypeDescriptionProvider.cs: implemented
    	all the methods.

    2009-04-23  Marek Habersack  <[email protected]>

    	* System.ComponentModel.DataAnnotations_test.dll.sources: added

    	* System.ComponentModel.DataAnnotations.dll.sources: added
    	System.ComponentModel.DataAnnotations/AssociatedMetadataTypeTypeDescriptor.cs

    	* Makefile: enabled tests

    2009-04-23  Marek Habersack  <[email protected]>

    	* ContextConfigurationTest.cs: added

svn path=/trunk/mcs/; revision=133003
2009-04-29 13:17:39 +00:00
Atsushi Eno c6d276424f checking in ongoing implementation before DynamicDataRoute.
svn path=/trunk/mcs/; revision=116032
2008-10-16 19:29:07 +00:00
Atsushi Eno 95c594bef0 initial DynamicData checkin. They are almost all stubs.
svn path=/trunk/mcs/; revision=115804
2008-10-14 18:35:28 +00:00