Commit Graph
37 Commits
Author SHA1 Message Date
Marek Habersack f078cd6349 2008-11-07 Marek Habersack <[email protected]>
* HtmlFormTest.cs: added a test for the undocumented Action
	property.

svn path=/trunk/mcs/; revision=118211
2008-11-07 20:05:36 +00:00
Christian Hergert 3eb3075f11 2008-10-07 Christian Hergert <[email protected]>
* System.Web.UI.HtmlControls/HtmlImage.cs: Do not render the src
	attribute if it is null or empty.  An empty src attribute makes
	browsers download the current page url as the url of the image.

	* Test/System.Web.UI.HtmlControls/HtmlImageTest.cs: Add test to
	make sure the src attribute is not rendered when it is empty.


svn path=/trunk/mcs/; revision=115158
2008-10-07 23:41:53 +00:00
Dean Brettle 382be2e62f ++ System.Web.UI.HtmlControls/ChangeLog (working copy)
* HtmlControl.cs (PreProcessRelativeReference), 
	HtmlForm.cs (RenderAttributes), HtmlInputButton (RenderAttributes),
	HtmlInputRadioButton (RenderAttributes), HtmlSelect (RenderChildren):
	Encode attributes that could contain HTML special chars.
	
	* HtmlSelect (RenderChildren): HTML-encode option text.

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

	* HtmlInputButtonTest.cs, HtmlImageTest.cs, HtmlFormTest.cs, 
	HtmlInputRadioButtonTest.cs, HtmlSelectTest.cs:	Added tests 
	for HTML-encoded of attributes. 


svn path=/trunk/mcs/; revision=109349
2008-07-31 14:34:51 +00:00
Gert Driesen 105bb93866 * HtmlAnchor.cs: Do not render empty name, target or title attribute.
Removed extra check for target attribute in RenderAttributes. Use
string.Empty instead of "", and check string's Length instead of
comparison with "" or string.Empty. Minor code formatting.
* HtmlAnchorTest.cs: Added RenderAttributes tests for empty or null 
HRef, Name, Target and Title.

svn path=/trunk/mcs/; revision=105270
2008-06-08 21:11:28 +00:00
Igor Zelmanovich 0d8e7654c7 2008-05-04 Igor Zelmanovich <[email protected]>
* HtmlInputButtonTest.cs: use HtmlDiff properly.

svn path=/trunk/mcs/; revision=102467
2008-05-04 14:53:55 +00:00
Marek Habersack 7876e9fdc1 2008-04-03 Marek Habersack <[email protected]>
* DataListTest.cs: added test for bug #376519
	(SelectedValue_SelectedIndex

2008-04-03  Marek Habersack  <[email protected]>

	* DataList.cs: use the value of SelectedIndex, not selectedIndex,
	to return the key value in the SelectedValue property. Fixes bug
	#376519. Patch from Sergey Kuleshov <[email protected]>, thanks

2008-04-03  Marek Habersack  <[email protected]>

	* HtmlFormTest.cs: indirect test for bug #376352 is 2.0+ only.

svn path=/trunk/mcs/; revision=99704
2008-04-02 22:53:23 +00:00
Marek Habersack 8314f68b84 2008-04-02 Marek Habersack <[email protected]>
* HtmlFormTest.cs: added an indirect test for bug #376352
	(HttpRequest.QueryStringRaw internal property) - Mono only.

2008-04-02  Marek Habersack  <[email protected]>

	* Page.cs: make SetContext internal (used from tests).

svn path=/trunk/mcs/; revision=99694
2008-04-02 21:29:36 +00:00
Igor Zelmanovich 4ccb9352bd 2008-01-31 Igor Zelmanovich <[email protected]>
* HtmlInputControlTest.cs:
	* HtmlTextAreaTest.cs: 
	fix tests - use valid xml with HtmlDiff.AssertAreEqual API.


svn path=/trunk/mcs/; revision=94451
2008-01-31 11:16:05 +00:00
Vladimir Krasnov 35ea43b3e4 * HtmlImageTest.cs: fixed RenderAttributes, switched to webtest since src attribute must be resolved
svn path=/trunk/mcs/; revision=83082
2007-07-31 14:21:58 +00:00
Adar Wesley 4f7562ef6f HtmlSelectTest.cs: updated tests to use HtmlDiff
svn path=/trunk/mcs/; revision=70472
2007-01-04 13:00:44 +00:00
Igor Zelmanovich 92574d4e3a 2006-11-13 Igor Zelmanovich <[email protected]>
* HtmlContainerControl.cs: fixed: InnerHtml property  


svn path=/trunk/mcs/; revision=67743
2006-11-13 08:35:05 +00:00
Igor Zelmanovich 03f6a0761b * HtmlAnchor.cs:
implemented CausesValidation and ValidationGroup properties	

svn path=/trunk/mcs/; revision=65523
2006-09-17 08:50:05 +00:00
Andrew Skiba 442d12fd20 additional asserts for a testcase
svn path=/trunk/mcs/; revision=62396
2006-07-10 14:01:32 +00:00
Gonzalo Paniagua Javier 656880e15b 2006-04-21 Gonzalo Paniagua Javier <[email protected]>
* HtmlInputRadioButtonTest.cs: added test for bug #78101.


svn path=/trunk/mcs/; revision=59769
2006-04-21 18:49:53 +00:00
Gonzalo Paniagua Javier 1bf800f4dd 2005-11-28 Gonzalo Paniagua Javier <[email protected]>
* HtmlTextAreaTest.cs: add new test for 'Name'.


svn path=/trunk/mcs/; revision=53595
2005-11-28 22:06:10 +00:00
Gonzalo Paniagua Javier 1457b748b9 2005-11-28 Gonzalo Paniagua Javier <[email protected]>
* HtmlTableTest.cs: remove white-space characters when comparing
	the output.


svn path=/trunk/mcs/; revision=53592
2005-11-28 21:47:25 +00:00
Gonzalo Paniagua Javier 920315e488 2005-11-21 Gonzalo Paniagua Javier <[email protected]>
* HtmlInputButtonTest.cs: more tests for 'onclick'.


svn path=/trunk/mcs/; revision=53315
2005-11-21 18:39:12 +00:00
Gonzalo Paniagua Javier 5afe3848c8 2005-09-29 Gonzalo Paniagua Javier <[email protected]>
* HtmlFormTest.cs: Trim() the rendered form when comparing (\n vs \r\n).


svn path=/trunk/mcs/; revision=50985
2005-09-29 05:49:06 +00:00
Gonzalo Paniagua Javier 4053dadeea 2005-09-19 Gonzalo Paniagua Javier <[email protected]>
* HtmlInputButtonTest.cs: make sure the onclick attribute is rendered
	when we have a ServerClick event registered.


svn path=/trunk/mcs/; revision=50257
2005-09-19 21:01:20 +00:00
Sebastien Pouliot b5493e7317 2005-09-19 Sebastien Pouliot <[email protected]>
* HtmlAnchorCas.cs: Added "normal" unit tests execution under Deny 
	Unrestricted.
	* HtmlAnchorTest.cs: RaisePostBackEvent now throws a NRE under 2.0 RC.
	* HtmlButtonCas.cs: Added "normal" unit tests execution under Deny 
	Unrestricted.
	* HtmlContainerControlCas.cs: New. CAS unit tests.
	* HtmlFormCas.cs: Added "normal" unit tests execution under Deny 
	Unrestricted.
	* HtmlFormTest.cs: Fixed rendering output under 2.0 RC.
	* HtmlImageCas.cs: Added "normal" unit tests execution under Deny 
	Unrestricted.
	* HtmlInputButtonCas.cs: Added "normal" unit tests execution under 
	Deny Unrestricted.
	* HtmlInputButtonTest.cs: Fixed attribute count for 2.0 RC.
	* HtmlInputControlCas.cs: New. CAS unit tests.
	* HtmlInputControlTest.cs: Fixed attribute count for 2.0 RC.
	* HtmlInputCheckBoxCas.cs: Added "normal" unit tests execution under
	Deny Unrestricted.
	* HtmlInputCheckBoxTest.cs: Fixed attribute count for 2.0 RC (which is
	now identical to 1.x results).
	* HtmlInputFileCas.cs: Added "normal" unit tests execution under Deny 
	Unrestricted.
	* HtmlInputFileTest.cs: Fixed attribute count for 2.0 RC.
	* HtmlInputHiddenCas.cs: Fixed attribute count for 2.0 RC.
	* HtmlInputPasswordCas.cs: Added "normal" unit tests execution under 
	Deny Unrestricted.
	* HtmlInputPasswordTest.cs: Adjusted tests as 2.0 RC removed the 
	ctor(string).
	* HtmlInputRadioButtonCas.cs: Fixed attribute count for 2.0 RC.
	* HtmlInputRadioButtonTest.cs: Added "normal" unit tests execution 
	under Deny Unrestricted.
	* HtmlInputResetCas.cs: Added "normal" unit tests execution under Deny
	Unrestricted.
	* HtmlInputResetTest.cs: Fixed attribute count for 2.0 RC.
	* HtmlInputSubmitCas.cs: Added "normal" unit tests execution under 
	Deny Unrestricted.
	* HtmlInputSubmitTest.cs: Fixed attribute count for 2.0 RC.
	* HtmlInputTextCas.cs: Added "normal" unit tests execution under Deny 
	Unrestricted.
	* HtmlInputTextTest.cs: Fixed attribute count for 2.0 RC.
	* HtmlLinkCas.cs: New. CAS unit tests.
	* HtmlMetaCas.cs: New. CAS unit tests.
	* HtmlMetaTest.cs: Fixed rendering for 2.0 RC (tag ending).
	* HtmlSelectCas.cs: Added "normal" unit tests execution under Deny 
	Unrestricted.
	* HtmlTableCas.cs: Added "normal" unit tests execution under Deny 
	Unrestricted.
	* HtmlTableCellCas.cs: Added "normal" unit tests execution under Deny 
	Unrestricted.
	* HtmlTableRowCas.cs: Added "normal" unit tests execution under Deny 
	Unrestricted.
	* HtmlTextAreaCas.cs: New. CAS unit tests.


svn path=/trunk/mcs/; revision=50250
2005-09-19 18:12:27 +00:00
Sebastien Pouliot 06a5f1498e 2005-09-13 Sebastien Pouliot <[email protected]>
* HtmlInputTextTest.cs: Fix expected value for LoadPostData (in the 
	cases where MS returns a NullReferenceException).


svn path=/trunk/mcs/; revision=50035
2005-09-14 12:25:43 +00:00
Chris Toshok 99fce0aea1 2005-09-11 Chris Toshok <[email protected]>
* HtmlInputFileTest.cs (Attribute_Count): fix for 2.0.


svn path=/trunk/mcs/; revision=49916
2005-09-11 17:36:59 +00:00
Chris Toshok f879477e6a 2005-09-11 Chris Toshok <[email protected]>
* HtmlInputFileTest.cs: new tests.


svn path=/trunk/mcs/; revision=49912
2005-09-11 17:07:18 +00:00
Chris Toshok 8ceb815cec 2005-09-09 Chris Toshok <[email protected]>
* HtmlFormTest.cs: Add test for RenderChildren.


svn path=/trunk/mcs/; revision=49827
2005-09-09 20:12:20 +00:00
Chris Toshok f9ca36cf35 2005-09-09 Chris Toshok <[email protected]>
* HtmlInputButtonTest.cs (RenderAttributes): add in
	CausesValidation and ValidationGroup here.


svn path=/trunk/mcs/; revision=49821
2005-09-09 19:21:08 +00:00
Sebastien Pouliot 11961c0c13 2005-09-09 Sebastien Pouliot <[email protected]>
* HtmlTableRowTest.cs: Added tests for InnerHtml and InnerText setters
	* HtmlTableTest.cs: Added tests for InnerHtml and InnerText setters


svn path=/trunk/mcs/; revision=49796
2005-09-09 12:46:27 +00:00
Chris Toshok 39a2dee980 2005-09-07 Chris Toshok <[email protected]>
* HtmlFormTest.cs: more tests to get at the root of the confusion
	that is the Name property.  Also, copy over Gonzalo's
	Name_InsideNaming from HtmlInputControlTest.cs here.


svn path=/trunk/mcs/; revision=49667
2005-09-07 22:01:26 +00:00
Gonzalo Paniagua Javier 72476c333d 2005-09-07 Gonzalo Paniagua Javier <[email protected]>
* HtmlInputControlTest.cs: new tests for the case when the control is
	inside a different naming container.


svn path=/trunk/mcs/; revision=49655
2005-09-07 18:51:14 +00:00
Chris Toshok 480716a7ab 2005-09-06 Chris Toshok <[email protected]>
* HtmlLinkTest.cs: add empty render test.

	* HtmlMetaTest.cs: same.


svn path=/trunk/mcs/; revision=49582
2005-09-06 21:40:54 +00:00
Chris Toshok 76e822061b 2005-09-06 Chris Toshok <[email protected]>
* HtmlLinkTest.cs: new tests.

	* HtmlMetaTest.cs: new tests.


svn path=/trunk/mcs/; revision=49578
2005-09-06 21:23:56 +00:00
Chris Toshok b980355ee7 2005-09-05 Chris Toshok <[email protected]>
* HtmlFormTest.cs: add some more tests to make figure out the
	property spot to be storing some of these attributes.


svn path=/trunk/mcs/; revision=49509
2005-09-05 20:26:34 +00:00
Sebastien Pouliot 7e157b09ef 2005-09-01 Sebastien Pouliot <[email protected]>
* HtmlAnchorCas.cs, HtmlButtonCas.cs, HtmlEmptyTagControlBuilderCas.cs,
	HtmlFormCas.cs, HtmlGenericControlCas.cs, HtmlHeadBuilderCas.cs,
	HtmlHeadCas.cs, HtmlImageCas.cs, HtmlInputButtonCas.cs, 
	HtmlInputCheckBoxCas.cs, HtmlInputFileCas.cs, HtmlInputHiddenCas.cs,
	HtmlInputImageCas.cs, HtmlInputPasswordCas.cs, 
	HtmlInputRadioButtonCas.cs, HtmlInputResetCas.cs, 
	HtmlInputSubmitCas.cs, HtmlInputTextCas.cs, HtmlSelectBuilderCas.cs,
	HtmlSelectCas.cs, HtmlTableCas.cs, HtmlTableCellCas.cs. 
	HtmlTableRowCas.cs, HtmlTitleCas.cs: New. CAS unit tests to check for
	AspNetHostingPermission Level.


svn path=/trunk/mcs/; revision=49298
2005-09-01 21:23:27 +00:00
Chris Toshok 83ff30ba3a 2005-08-29 Chris Toshok <[email protected]>
* HtmlInputSubmitTest.cs: new, base-level tests.

	* HtmlInputButtonTest.cs: add CausesValidation/ValidationGroup
	view state tests.


svn path=/trunk/mcs/; revision=49076
2005-08-29 18:05:53 +00:00
Gonzalo Paniagua Javier 804095756d 2005-08-28 Gonzalo Paniagua Javier <[email protected]>
* HtmlAnchorTest.cs: add test for HRef with an absolute URI.


svn path=/trunk/mcs/; revision=49043
2005-08-28 23:38:27 +00:00
Chris Toshok 2d5a995850 2005-08-28 Chris Toshok <[email protected]>
* HtmlInputResetTest.cs: new tests for HtmlInputReset.  Missing
	event tests.


svn path=/trunk/mcs/; revision=49004
2005-08-28 05:52:22 +00:00
Chris Toshok 4f5290f8f7 2005-08-28 Chris Toshok <[email protected]>
* HtmlInputPasswordTest.cs: new tests for HtmlInputPassword.



svn path=/trunk/mcs/; revision=49000
2005-08-28 05:06:15 +00:00
Sebastien Pouliot bdd827418c Tests
svn path=/trunk/mcs/; revision=48935
2005-08-26 22:52:45 +00:00