Commit Graph
55 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
Marek Habersack 7804364216 2010-01-14 Marek Habersack <[email protected]>
* Helpers.cs, ITestCase.cs, ITestRunner.cs, StandaloneTest.cs,
	TestCallback.cs, TestCaseAttribute.cs,
	TestCaseFailureException.cs, TestRunItem.cs, TestRunner.cs,
	TestWorkerRequest.cs: added

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

	* System.Web_standalone_test.dll.sources,
	standalone-runner-support.dll.sources: added

	* Makefile: Added targets to build and run standalone tests.
	Added standalone tests and test tools to EXTRA_DISTFILES

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

	* Consts.cs.in, Locations.cs: added

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

	* standalone-runner.cs: added

	* Makefile: added build targets for standalone-runner.exe

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

	* NunitWebTest.cs: added new overload of GetControlFromPageHtml
	which takes begin and end markers as parameters.

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

	* ApplicationManager.cs: implemented a missing CreateObject
	overload

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

	* executable.make, library.make, rules.make: quote file name
	wherever referenced in dist* targets, so that files with spaces in
	name work fine.

svn path=/trunk/mcs/; revision=149522
2010-01-14 01:15:01 +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
Noam Lampert 5a43e30bfa Remove all vmwcproj files from old Grasshopper version
svn path=/trunk/mcs/; revision=104227
2008-05-28 09:28:24 +00:00
Noam Lampert bda176d70d Visual studio upgrade did not work well.
Fix references in project files.

svn path=/trunk/mcs/; revision=100541
2008-04-13 08:16:49 +00:00
Noam Lampert 80dd505236 Fixes for Java compilations:
1. Upgrade project/solution files to visual studio 2008
2. In Grasshopper, the InternalVisible attribute in System.Web doesn't work, so need to compile without using the internals of System.Web.

svn path=/trunk/mcs/; revision=100539
2008-04-13 07:44:03 +00:00
Dean Brettle 23000b3144 ++ Test/mainsoft/ChangeLog (working copy)
* add new resources: 
		PageWithAdapter.aspx for PageTest and PageAdapterTest.
		TestCapability.browser for AppBrowsersTest.

	* NunitWebResources/adapters.browser, 
	NunitWebResources/AppBrowsersTest.browser: modified to support
	testing reference nodes with captures, and adapters.

	* NunitWeb/NunitWeb/WebTest.cs: ensure that, during AppDomain
	unload, no new requests are sent to the app host and any
	pending requests are completed before the the unload occurs.
	Also added WebTest.AppUnloaded event that tests can use to wait
	for the app to unload (e.g. after touching Global.asax), and 
	WebTest.CleanApp() which can be called to restart the app with
	the a skeleton directory structure.  Tests which add files that
	could effect other tests (e.g. App_Browsers/*.browser files) should
	call WebTest.CleanApp() during TearDown to return the app to a 
	pristine environment.
	
++ Test/mainsoft/MainsoftWebTest/ChangeLog	(working copy)

	* HtmlAgilityPack/AssemblyInfo.cs: made assembly delay signed so that 
	tests can access System.Web internals now that System.Web is
	InternalsVisibleTo this assembly.

++ Test/System.Web/ChangeLog	(working copy)

	* AppBrowsersTest.cs: added.  Includes tests for Control.Adapter,
	Control.ResolveAdapter,	Control.TagWriter, and
	Control.CreateHtmlTextWriter, when using App_Browsers/*.browser files.
	AppBrowsersTest is currently tagged [Ignore], pending a fix for 
	bug #351878.
	
	* HttpRuntimeTest.cs: added. Includes test for 
	HttpRuntime.UnloadAppDomain().  Marked [Ignore], pending a fix for
	bug #351878.
	
++ Test/System.Web.UI.Adapters/ChangeLog	(revision 0)

	* PageAdapterTest.cs: added tests for PageAdapter.


	* ControlAdapterTest.cs (ConfigCapabilitiesNotCalled): added test to
	ensure that HttpCapabilitiesBase.ConfigCapabilities() is not called
	during normal page processing if no files are in App_Browsers.
	


	* ControlAdapterTest.cs: added tests for ControlAdapter.
++ Test/System.Web.UI/ChangeLog	(working copy)

	* PageTest.cs: add tests for using a PageAdapter.
	
	* ControlTest.cs: moved commented out ResolveAdapter_1 test to 
	../System.Web/AppBrowsersTest.cs.  Fixed typo in test name.  
	Added Customcontroladapter.Adapter property for use by AppBrowsersTest.

++ Test/System.Web.UI.WebControls.Adapters/ChangeLog	(revision 0)

	* MenuAdapterTest.cs: added


	* WebControlAdapterTest.cs, HierarchicalDataBoundControlAdapterTest.cs,
	DataBoundControlAdapterTest.cs, HideDisabledControlAdapterTest.cs: added
++ Test/System.Web.UI.WebControls/ChangeLog	(working copy)

	* MenuTest.cs (Menu_RenderStaticItems): added tests to check that
	result was the same when using the base MenuAdapter as when using
	no adapter.
	
	* MenuTest.cs (Menu_RenderStaticItemsWithAdapter): added test
	to ensure that MenuAdapter.RenderItem() is called.

	* HierarchicalDataBoundControlTest.cs, WebControlTest.cs, 
	DataBoundControlTest.cs: added test for use of ControlAdapters
	when present.
	
	* WebControl.cs: added test for IsEnabled.

++ System.Web/ChangeLog	(working copy)

	* HttpApplicationFactory.cs: Added support for detecting 
	App_Browsers/*.browser files and using them to determine capabilities.
	Also restart the app if the App_Browsers, App_Code, or App_GlobalResources
	directories are created.

	* BrowserCapabilities.cs (TagWriter): get value via internal virtual
	GetTagWriter() method, which is overridden in nBrowser.Result.

	* HttpRequest.cs (BrowserMightHaveSpecialWriter, BrowserMightHaveAdapters):
	internal properties added to allow Page and Control methods to avoid
	accessing Request.Browser to get browser-specific HtmlTextWriters or 
	ControlAdapters.  Those things only exist when there are App_Browsers
	files.

++ System.Web.UI.Adapters/ChangeLog	(working copy)

	* ControlAdapter.cs: made control field internal so
	derived internal classes can access it without using base.Control
	which can involved several typecasts.


	* PageAdapter.cs: implemented all members.
	

	* ControlAdapter.cs: implemented all members.
	
	* PageAdapter.cs, ControlAdapter.cs: add MonoTODO's.
++ System.Web.UI/ChangeLog	(working copy)

	* Page.cs (SavePageControlState, LoadPageControlState): save/load 
	adapter state in 2.0 profile.
	
	* Page.cs (CreateHtmlTextWriter): call Browser.CreateHtmlTextWriter()
	in 2.0 profile.
	
	* Page.cs (RenderPage): call CreateHtmlTextWriter() to get the writer
	in 2.0 profile.
	
	* Page.cs (DeterminePostBackMode, InitOutputCache, 
	RenderClientScriptFormDeclaration,	InternalProcessRequest,
	PageStatePersister): added support for PageAdapters.

	* Control.cs (Adapter, ResolveAdapter): implemented.  Adapter calls
	ResolveAdapter and remembers result.  ResolveAdapter checks for adapters
	of the Type hierarchy until it finds one.
	
	* Control.cs (SaveViewStateRecursive, LoadViewStateRecursive): save/load
	adapter state in 2.0 profile.
	
	* HtmlTextWriter.cs (BeginRender, EndRender): added empty virtual methods
	required by 2.0 profile.  These are called by corresponding methods of
	System.Web.UI.Adapters.ControlAdapter.
	
	* Page.cs, Control.cs: don't access Request.Browser if it couldn't have
	any adapters/writers because there are no files in App_Browsers/.

++ Assembly/ChangeLog	(working copy)

	* AssemblyInfo.cs: made InternalsVisibleTo System.Web.test_net_2_0.dll
	to support ControlAdapterTest.ConfigCapabilitiesNotCalled().

++ ChangeLog	(working copy)

	* System.Web_test.dll.sources: added
		System.Web.UI.WebControls.Adapters/MenuAdapterTest.cs
		System.Web.UI.WebControls.Adapters/WebControlAdapterTest.cs
		System.Web.UI.WebControls.Adapters/HierarchicalDataBoundControlAdapterTest.cs
		System.Web.UI.WebControls.Adapters/DataBoundControlAdapterTest.cs
		System.Web.UI.WebControls.Adapters/HideDisabledControlAdapterTest.cs
		System.Web.UI.Adapters/PageAdapterTest.cs
		System.Web.UI.Adapters/ControlAdapterTest.cs
		
	* Makefile (RESOURCE_FILES_2): added
		System.Web.Configuration_2.0/RandomRoboBotKeywords.txt

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

	* System.Web.dll.sources: added
		System.Web.Configuration_2.0/CapabilitiesBuild.cs
		System.Web.Configuration_2.0/CapabilitiesChecksum.cs
		System.Web.Configuration_2.0/CapabilitiesResult.cs
		System.Web.Configuration_2.0/ICapabilitiesProcess.cs
		System.Web.Configuration_2.0/nBrowser/Result.cs
		System.Web.Configuration_2.0/nBrowser/NodeTypes.cs
		System.Web.Configuration_2.0/nBrowser/Identification.cs
		System.Web.Configuration_2.0/nBrowser/File.cs
		System.Web.Configuration_2.0/nBrowser/Build.cs
		System.Web.Configuration_2.0/nBrowser/Node.cs
		System.Web.Configuration_2.0/nBrowser/Exception.cs
		
++ System.Web.UI.WebControls.Adapters/ChangeLog	(working copy)

	* WebControlAdapter.cs, HierarchicalDataBoundControlAdapter.cs,
	DataBoundControlAdapter.cs: changed to use ControlAdapter.control
	instead of using base.Control or using a new control field.
	
	* MenuAdapter.cs: added	internal constructor that takes a Menu
	parameter.  The constructor is used when writing unit tests.
	
	* MenuAdapter.cs (OnInit, OnPreRender, RenderBeginTag, 
	RenderContents, RenderEndTag): delegate to base instead of
	Control.
	
	* MenuAdapter.cs (LoadAdapterControlState, SaveAdapterControlState,
	RaisePostBackEvent, RenderItem): implemented.
	

	* WebControlAdapter.cs (RenderContents): changed to call 
	control.RenderContents() instead of control.Render().
	
	* WebControlAdapter.cs, HierarchicalDataBoundControlAdapter.cs,
	DataBoundControlAdapter.cs, HideDisabledControlAdapter.cs: added
	internal constructor that takes a parameter of the corresponding
	Control type.  The construct is used when writing unit tests.

++ System.Web.Configuration_2.0/ChangeLog	(working copy)

	* nBrowser/Result.cs, nBrowser/NodeTypes.cs, nBrowser/Identification.cs,
	nBrowser/File.cs, nBrowser/Build.cs, nBrowser/Node.cs, 
	nBrowser/Exception.cs: added.  The code under nBrowser handles *.browser
	files.  It is based on Owen "Ocean" Brady's code, with the following 
	changes and improvements.  Replaced Result.Adapter 
	property with AdapterTypeMap property which maps control Type to adapter
	Type.  Added Result.MarkupTextWriter property.  Added overrides for
	Result.GetAdapters and Result.GetTagWriter to return MarkupTextWriter
	and AdapterTypeMap, resp.  Changed tree building algorithm to not
	depend on nodes with id="Default" and to inject defaultBrowser nodes
	as parents of regular nodes with the same ids.  Changed Node.cs to use
	Item instead of Add when adding a capability or sample header, so that
	values get replaced instead of appended.  Added support for reference 
	nodes (ie. nodes with refID="someID").
		
	* CapabilitiesResult.cs: load RandomRoboBotKeywords.txt resource
	using the correct name.
	
	* RandomRoboBotKeywords.txt: added 

	* HttpCapabilitiesBase.cs (CreateHtmlWriter, Adapters): Added
	support for *.browsers.  Adapters property calls internal virtual
	GetAdapters() method which is overrided in nBrowser.Result 
	returned by nBrowser code.  CreateHtmlWriter uses type specified
	by TagWriter property.
	
++ System.Web.UI.WebControls/ChangeLog	(working copy)

	* DetailsView.cs, ListControl.cs, DataBoundControl.cs, 
	FormView.cs, HierarchicalDataBoundControl.cs, WebControl.cs: 
	added support for using ControlAdapters when present.
	
	* WebControl.cs: fixed implementation of IsEnabled to match 
	documentation.

	* Menu.cs (RenderMenuBody): call Adapter.RenderItem() instead of 
	RenderMenuItem() if an adapter is present.  MenuAdapter.RenderItem() 
	calls back to new Menu.RenderItem() internal method which calls
	RenderMenuItem() with the appropriate parameters.

++ System.Web.Configuration/ChangeLog	(working copy)

	* HttpCapabilitiesBase.cs: changed to use nBrowser for *.browser 
	support.  Also added internal GetConfigCapabilities_called
	flag used by ControlAdapterTest.ConfigCapabilitiesNotCalled() to 
	test that GetConfigCapabilities() is not called during normal page
	processing when there are no files in App_Browsers/.


svn path=/trunk/mcs/; revision=97824
2008-03-09 22:55:22 +00:00
Noam Lampert 04092f6e15 Update project files for latest changes in Grasshopper.
svn path=/trunk/mcs/; revision=92192
2008-01-03 17:20:42 +00:00
Noam Lampert cd68a6ad3c Convert jgac to java_refs, and jre6 to jre
svn path=/trunk/mcs/; revision=74774
2007-03-21 21:45:00 +00:00
Noam Lampert 6f5c8ddbb6 rename jgac/vmw4j2ee_110 to jcag/framework
svn path=/trunk/mcs/; revision=74284
2007-03-14 17:36:26 +00:00
Vladimir Krasnov 9a6815eba4 * fixed validation errors
svn path=/trunk/mcs/; revision=73933
2007-03-08 09:54:23 +00:00
Vladimir Krasnov c5d69ccbe4 * System_Web/PageDirectories: net test case added
* reference20: added reference test for PageDirectories tests

svn path=/trunk/mcs/; revision=73811
2007-03-06 14:03:26 +00:00
Vladimir Krasnov d9680a0c8b * reference20: added reference tests for PageDirectories tests
svn path=/trunk/mcs/; revision=73741
2007-03-05 17:42:23 +00:00
Vladimir Krasnov 4b939de5f5 * almost_config.xml: fixed almost filters for asp 2.0
* fixed reference render for asp 2.0

svn path=/trunk/mcs/; revision=73594
2007-03-01 15:20:30 +00:00
Vladimir Krasnov f4a15c8bc9 * almost_config.xml, test_catalog.xml, WebTest.cs: fixed not working tests for asp 2.0
svn path=/trunk/mcs/; revision=73486
2007-02-27 16:56:14 +00:00
Igor Zelmanovich 12010e298e fixed tests
svn path=/trunk/mcs/; revision=72898
2007-02-15 10:27:04 +00:00
Noam Lampert e218b2b98f Grasshopper project system now uses csproj extension
svn path=/trunk/mcs/; revision=72709
2007-02-12 21:54:20 +00:00
Vladimir Krasnov 695671822a Adapted for gh 2.0
svn path=/trunk/mcs/; revision=71802
2007-01-28 09:34:09 +00:00
Konstantin Triger 1ded0dc5f3 remove jarserver property
svn path=/trunk/mcs/; revision=69272
2006-12-10 12:45:11 +00:00
Igor Zelmanovich 852dc07a15 2006-12-07 Igor Zelmanovich <[email protected]>
* XmlComparer.cs:
	* NunitWebTest.cs:	fixed HtmlComparer		


svn path=/trunk/mcs/; revision=69180
2006-12-07 14:43:19 +00:00
Vladislav Spivak c38f7a785b svn path=/trunk/mcs/; revision=68913 2006-12-03 17:24:37 +00:00
Konstantin Triger 054482ec6a change GHROOT to VMW_HOME
svn path=/trunk/mcs/; revision=67989
2006-11-16 12:29:57 +00:00
Andrew Skiba 5cd9b69f6b fallback to text diff when HtmltoXml fails
svn path=/trunk/mcs/; revision=67144
2006-10-30 16:46:01 +00:00
Vladimir Krasnov c496bb4125 * added GH project files for VS2005:
MainsoftWebApp20.Tomcat.vmwcsproj for Tomcat
SystemWebTest20.vmwcsproj
SystemWebTest20.csproj

svn path=/trunk/mcs/; revision=66069
2006-09-28 16:03:35 +00:00
Vladimir Krasnov 8059918071 adapted to run tests on net2.0 wersion of system.web
svn path=/trunk/mcs/; revision=65275
2006-09-12 08:19:52 +00:00
Igor Zelmanovich dd22316ce9 fixed tests, removed NotWorking attributes
svn path=/trunk/mcs/; revision=65235
2006-09-11 15:08:32 +00:00
Boris Kirzner 90e9d0c91c Fixes for NET_2_0 tests run for TARGET_JVM
svn path=/trunk/mcs/; revision=64854
2006-09-04 11:45:52 +00:00
Igor Zelmanovich faf0338a03 corrected rendering of static and dynamic items
svn path=/trunk/mcs/; revision=64251
2006-08-23 15:32:14 +00:00
Andrew Skiba ebd68f4948 run NunitWeb on GH 2.0
svn path=/trunk/mcs/; revision=64149
2006-08-21 15:35:33 +00:00
Andrew Skiba 485289b578 add projects and batch files for GH 2.0 tests
svn path=/trunk/mcs/; revision=64132
2006-08-21 09:27:16 +00:00
Vladimir Krasnov 1e7fe96f7c * NunitWebTest.cs: fixed HtmltoXml, removes spaces and crlf before converting
svn path=/trunk/mcs/; revision=63002
2006-07-26 16:34:58 +00:00
Andrew Skiba 1e61cce878 refactor arguments
svn path=/trunk/mcs/; revision=62996
2006-07-26 14:39:11 +00:00
Vladimir Krasnov 4def6ae32e * NunitWebTest.cs: fixed AssertAreEqual, order of actual and expected
svn path=/trunk/mcs/; revision=62658
2006-07-16 14:13:03 +00:00
Andrew Skiba f7c42201d8 reorder actual and expected to match NUnit convention
svn path=/trunk/mcs/; revision=62494
2006-07-12 12:33:22 +00:00
Andrew Skiba a861f3b841 Add projects for generating the documentation with NDoc
svn path=/trunk/mcs/; revision=62492
2006-07-12 11:38:01 +00:00
Andrew Skiba ccb0c91e4f copy resources before creating domain so web.config is seen by the runtime; serialize WebTest between domains instead of copying field in MyData; add UserData property for custom data transfer in tests
svn path=/trunk/mcs/; revision=62115
2006-06-28 15:38:12 +00:00
Vladimir Krasnov baa1a689dc * System.Web_test.dll.sources: added WizardTest.cs
* WizardStepCollection.cs: Fixed Add methods to initialize WizardStep.Wizard property
* Wizard.cs: Fixed ActiveStepIndex, it should be -1 if there no steps 
Fixed GetStepType, if only one step present, it should be FinishStep
Fixed styles of tables for more accurate rendering, fixed Wizard buttons order
* nunitweb_config.xml: filtered onclick for input tags
* Added WizardTest.cs: Wizard control basic tests

svn path=/trunk/mcs/; revision=62114
2006-06-28 15:27:08 +00:00
Andrew Skiba ae8b2c575d replace Dispose with Close for net 1.1
svn path=/trunk/mcs/; revision=62110
2006-06-28 12:18:48 +00:00
Yoni Klain 3786bda8c6 svn path=/trunk/mcs/; revision=62071 2006-06-27 11:34:20 +00:00
Andrew Skiba 21441ddd3f support for POST method in test framework and forms
svn path=/trunk/mcs/; revision=61939
2006-06-22 16:37:08 +00:00
Andrew Skiba 0cb8be47c9 Add HtmlCompare project; add PostBack skeleton
svn path=/trunk/mcs/; revision=61931
2006-06-22 08:35:08 +00:00
Andrew Skiba 5160ba326b NunitWeb test framework major API refactoring; downport to net 1.1
svn path=/trunk/mcs/; revision=61910
2006-06-21 15:57:20 +00:00
Andrew Skiba 940db06cba nunitweb framework works on mono
svn path=/trunk/mcs/; revision=61206
2006-05-28 12:46:08 +00:00
Andrew Skiba 8df433eb15 Throw an exception if injected tags were not found
svn path=/trunk/mcs/; revision=61103
2006-05-25 11:07:39 +00:00
Yoni Klain 45547a2bbf svn path=/trunk/mcs/; revision=60910 2006-05-21 07:39:49 +00:00
Yoni Klain 0cebaf403c svn path=/trunk/mcs/; revision=60908 2006-05-21 07:09:57 +00:00
Andrew Skiba d3ee8d29eb * nunitweb_config.xml: similar to almost_config.xml but ignores more stuff
* NunitWebTest.cs: use nunit_config.xml and fallback on XmlException

svn path=/trunk/mcs/; revision=60781
2006-05-17 14:56:26 +00:00
Andrew Skiba 30ac82a64d use TARGET_JVM for java specific code
svn path=/trunk/mcs/; revision=60780
2006-05-17 14:52:15 +00:00
Andrew Skiba aa1ee42085 WebTest.cs redesigned to work with NunitWeb.
svn path=/trunk/mcs/; revision=60690
2006-05-14 15:13:04 +00:00
Vladimir Krasnov 8010aefa68 * test_catalog.xml: fixed not working tests
* almost_config.xml: fixed almost for not a bug
* reference/HyperLinkColumn_DataTextField.aspx.xml, reference/HyperLinkColumn_DataNavigateUrlField.aspx.xml: removed reference results of removed tests
* reference/WebControl_CopyBaseAttributes_W.aspx.xml: same
* WebControl_CopyBaseAttributes_W.aspx.cs: removed tests that causes differences but decided to be not a bug
* HyperLinkColumn_DataNavigateUrlField.aspx: removed tests that causes differences but decided to be not a bug
* HyperLinkColumn_DataNavigateUrlField.aspx.cs: same
* HyperLinkColumn_DataTextField.aspx: same
* HyperLinkColumn_DataTextField.aspx.cs: same

svn path=/trunk/mcs/; revision=58586
2006-03-27 15:46:45 +00:00