diff options
| author | ctrlaltca <> | 2012-07-12 11:21:01 +0000 | 
|---|---|---|
| committer | ctrlaltca <> | 2012-07-12 11:21:01 +0000 | 
| commit | 903ae8a581fac1e6917fc3e31d2ad8fb91df80c3 (patch) | |
| tree | e08bf04f0823650a231227ac3499121270172a23 /tests/FunctionalTests/quickstart/Controls/CheckBoxListTestCase.php | |
| parent | 3e4e6e66aeb3f8fea4e1eb4237498ef9d2358f63 (diff) | |
standardize the use of unix eol; use svn properties to enforce native eol
Diffstat (limited to 'tests/FunctionalTests/quickstart/Controls/CheckBoxListTestCase.php')
| -rw-r--r-- | tests/FunctionalTests/quickstart/Controls/CheckBoxListTestCase.php | 106 | 
1 files changed, 53 insertions, 53 deletions
| diff --git a/tests/FunctionalTests/quickstart/Controls/CheckBoxListTestCase.php b/tests/FunctionalTests/quickstart/Controls/CheckBoxListTestCase.php index a28efd75..01db9da7 100644 --- a/tests/FunctionalTests/quickstart/Controls/CheckBoxListTestCase.php +++ b/tests/FunctionalTests/quickstart/Controls/CheckBoxListTestCase.php @@ -1,54 +1,54 @@ -<?php
 -
 -//New Test
 -class CheckBoxListTestCase extends SeleniumTestCase
 -{
 -	function test ()
 -	{
 -		$this->open("../../demos/quickstart/index.php?page=Controls.Samples.TCheckBoxList.Home&notheme=true&lang=en", "");
 -
 -		// Check box list with default settings:
 -		$this->click("//input[@name='ctl0\$body\$ctl0\$c0' and @value='value 1']", "");
 -
 -		// Check box list with customized cellpadding, cellspacing, color and text alignment:
 -		$this->click("//input[@name='ctl0\$body\$ctl1\$c1' and @value='value 2']", "");
 -
 -		// *** Currently unable to test the following cases:
 -		// Check box list with vertical (default) repeat direction
 -		// Check box list with horizontal repeat direction
 -		// Check box list with flow layout and vertical (default) repeat direction
 -		// Check box list with flow layout and horizontal repeat direction:
 -
 -		// Check box list's behavior upon postback
 -		$this->click("//input[@name='ctl0\$body\$CheckBoxList\$c2' and @value='value 3']", "");
 -		$this->clickAndWait("//input[@type='submit' and @value='Submit']", "");
 -		$this->verifyTextPresent("Your selection is: (Index: 1, Value: value 2, Text: item 2)(Index: 2, Value: value 3, Text: item 3)(Index: 4, Value: value 5, Text: item 5)", "");
 -
 -		// Auto postback check box list
 -		$this->clickAndWait("//input[@name='ctl0\$body\$ctl7\$c1' and @value='value 2']", "");
 -		$this->verifyTextPresent("Your selection is: (Index: 4, Value: value 5, Text: item 5)", "");
 -
 -		// Databind to an integer-indexed array
 -		$this->clickAndWait("//input[@name='ctl0\$body\$DBCheckBoxList1\$c1' and @value='1']", "");
 -		$this->verifyTextPresent("Your selection is: (Index: 1, Value: 1, Text: item 2)", "");
 -
 -		// Databind to an associative array:
 -		$this->clickAndWait("//input[@name='ctl0\$body\$DBCheckBoxList2\$c1' and @value='key 2']", "");
 -		$this->verifyTextPresent("Your selection is: (Index: 1, Value: key 2, Text: item 2)", "");
 -
 -		// Databind with DataTextField and DataValueField specified
 -		$this->clickAndWait("//input[@name='ctl0\$body\$DBCheckBoxList3\$c2' and @value='003']", "");
 -		$this->verifyTextPresent("Your selection is: (Index: 2, Value: 003, Text: Cary)", "");
 -
 -		// CheckBox list causing validation
 -		$this->verifyNotVisible('ctl0_body_ctl8');
 -		$this->click("//input[@name='ctl0\$body\$ctl9\$c0' and @value='Agree']", "");
 -//		$this->pause(1000);
 -		$this->verifyVisible('ctl0_body_ctl8');
 -		$this->type("ctl0\$body\$TextBox", "test");
 -		$this->clickAndWait("//input[@name='ctl0\$body\$ctl9\$c0' and @value='Agree']", "");
 -		$this->verifyNotVisible('ctl0_body_ctl8');
 -	}
 -}
 -
 +<?php + +//New Test +class CheckBoxListTestCase extends SeleniumTestCase +{ +	function test () +	{ +		$this->open("../../demos/quickstart/index.php?page=Controls.Samples.TCheckBoxList.Home&notheme=true&lang=en", ""); + +		// Check box list with default settings: +		$this->click("//input[@name='ctl0\$body\$ctl0\$c0' and @value='value 1']", ""); + +		// Check box list with customized cellpadding, cellspacing, color and text alignment: +		$this->click("//input[@name='ctl0\$body\$ctl1\$c1' and @value='value 2']", ""); + +		// *** Currently unable to test the following cases: +		// Check box list with vertical (default) repeat direction +		// Check box list with horizontal repeat direction +		// Check box list with flow layout and vertical (default) repeat direction +		// Check box list with flow layout and horizontal repeat direction: + +		// Check box list's behavior upon postback +		$this->click("//input[@name='ctl0\$body\$CheckBoxList\$c2' and @value='value 3']", ""); +		$this->clickAndWait("//input[@type='submit' and @value='Submit']", ""); +		$this->verifyTextPresent("Your selection is: (Index: 1, Value: value 2, Text: item 2)(Index: 2, Value: value 3, Text: item 3)(Index: 4, Value: value 5, Text: item 5)", ""); + +		// Auto postback check box list +		$this->clickAndWait("//input[@name='ctl0\$body\$ctl7\$c1' and @value='value 2']", ""); +		$this->verifyTextPresent("Your selection is: (Index: 4, Value: value 5, Text: item 5)", ""); + +		// Databind to an integer-indexed array +		$this->clickAndWait("//input[@name='ctl0\$body\$DBCheckBoxList1\$c1' and @value='1']", ""); +		$this->verifyTextPresent("Your selection is: (Index: 1, Value: 1, Text: item 2)", ""); + +		// Databind to an associative array: +		$this->clickAndWait("//input[@name='ctl0\$body\$DBCheckBoxList2\$c1' and @value='key 2']", ""); +		$this->verifyTextPresent("Your selection is: (Index: 1, Value: key 2, Text: item 2)", ""); + +		// Databind with DataTextField and DataValueField specified +		$this->clickAndWait("//input[@name='ctl0\$body\$DBCheckBoxList3\$c2' and @value='003']", ""); +		$this->verifyTextPresent("Your selection is: (Index: 2, Value: 003, Text: Cary)", ""); + +		// CheckBox list causing validation +		$this->verifyNotVisible('ctl0_body_ctl8'); +		$this->click("//input[@name='ctl0\$body\$ctl9\$c0' and @value='Agree']", ""); +//		$this->pause(1000); +		$this->verifyVisible('ctl0_body_ctl8'); +		$this->type("ctl0\$body\$TextBox", "test"); +		$this->clickAndWait("//input[@name='ctl0\$body\$ctl9\$c0' and @value='Agree']", ""); +		$this->verifyNotVisible('ctl0_body_ctl8'); +	} +} +  ?>
\ No newline at end of file | 
