From 903ae8a581fac1e6917fc3e31d2ad8fb91df80c3 Mon Sep 17 00:00:00 2001 From: ctrlaltca <> Date: Thu, 12 Jul 2012 11:21:01 +0000 Subject: standardize the use of unix eol; use svn properties to enforce native eol --- .../ActiveControls/ActiveCheckBoxTestCase.php | 114 ++++++++++----------- 1 file changed, 57 insertions(+), 57 deletions(-) (limited to 'tests/FunctionalTests/quickstart/ActiveControls/ActiveCheckBoxTestCase.php') diff --git a/tests/FunctionalTests/quickstart/ActiveControls/ActiveCheckBoxTestCase.php b/tests/FunctionalTests/quickstart/ActiveControls/ActiveCheckBoxTestCase.php index 80784086..ca17a5dc 100644 --- a/tests/FunctionalTests/quickstart/ActiveControls/ActiveCheckBoxTestCase.php +++ b/tests/FunctionalTests/quickstart/ActiveControls/ActiveCheckBoxTestCase.php @@ -1,58 +1,58 @@ -open("../../demos/quickstart/index.php?page=ActiveControls.Samples.TActiveCheckBox.Home&notheme=true&lang=en", ""); - - $this->verifyTitle("PRADO QuickStart Sample", ""); - - $this->assertTextPresent('TActiveCheckBox Samples (AJAX)'); - - - // an auto postback checkbox - $this->verifyTextNotPresent("ctl0_body_ctl0 clicked using callback"); - $this->click("//input[@name='ctl0\$body\$ctl0']"); - $this->pause(800); - $this->assertChecked("//input[@name='ctl0\$body\$ctl0']"); - $this->verifyTextPresent("ctl0_body_ctl0 clicked using callback"); - $this->click("//input[@name='ctl0\$body\$ctl0']"); - $this->pause(800); - $this->verifyTextPresent("ctl0_body_ctl0 clicked using callback"); - $this->assertNotChecked("//input[@name='ctl0\$body\$ctl0']"); - - // a checkbox causing validation on a textbox - $this->verifyNotVisible('ctl0_body_ctl1'); - $this->click("//input[@name='ctl0\$body\$ctl2']"); - $this->verifyVisible('ctl0_body_ctl1'); - $this->click("//input[@name='ctl0\$body\$ctl2']", ""); - $this->verifyVisible('ctl0_body_ctl3'); - $this->type("ctl0\$body\$TextBox", "test"); - $this->click("//input[@name='ctl0\$body\$ctl2']", ""); - $this->pause(800); - $this->verifyNotVisible('ctl0_body_ctl1'); - $this->assertTextPresent("ctl0_body_ctl2 clicked using callback"); - - // a checkbox validated by a required field validator - $this->assertNotChecked("//input[@name='ctl0\$body\$CheckBox']"); - $this->verifyNotVisible('ctl0_body_ctl4'); - $this->click("//input[@type='submit' and @value='Submit']", ""); - $this->verifyVisible('ctl0_body_ctl4'); - $this->click("//input[@name='ctl0\$body\$CheckBox']", ""); - $this->assertChecked("//input[@name='ctl0\$body\$CheckBox']"); - $this->click("//input[@type='submit' and @value='Submit']", ""); - $this->verifyNotVisible('ctl0_body_ctl4'); - $this->assertTextPresent("ctl0_body_CheckBox clicked"); - - // a checkbox validated by a required field validator using AutoPostBack - $this->assertChecked("//input[@name='ctl0\$body\$CheckBox2']"); - $this->verifyNotVisible('ctl0_body_ctl5'); - $this->click("//input[@name='ctl0\$body\$CheckBox2']", ""); - $this->verifyVisible('ctl0_body_ctl5'); - $this->assertChecked("//input[@name='ctl0\$body\$CheckBox2']"); - } -} - +open("../../demos/quickstart/index.php?page=ActiveControls.Samples.TActiveCheckBox.Home&notheme=true&lang=en", ""); + + $this->verifyTitle("PRADO QuickStart Sample", ""); + + $this->assertTextPresent('TActiveCheckBox Samples (AJAX)'); + + + // an auto postback checkbox + $this->verifyTextNotPresent("ctl0_body_ctl0 clicked using callback"); + $this->click("//input[@name='ctl0\$body\$ctl0']"); + $this->pause(800); + $this->assertChecked("//input[@name='ctl0\$body\$ctl0']"); + $this->verifyTextPresent("ctl0_body_ctl0 clicked using callback"); + $this->click("//input[@name='ctl0\$body\$ctl0']"); + $this->pause(800); + $this->verifyTextPresent("ctl0_body_ctl0 clicked using callback"); + $this->assertNotChecked("//input[@name='ctl0\$body\$ctl0']"); + + // a checkbox causing validation on a textbox + $this->verifyNotVisible('ctl0_body_ctl1'); + $this->click("//input[@name='ctl0\$body\$ctl2']"); + $this->verifyVisible('ctl0_body_ctl1'); + $this->click("//input[@name='ctl0\$body\$ctl2']", ""); + $this->verifyVisible('ctl0_body_ctl3'); + $this->type("ctl0\$body\$TextBox", "test"); + $this->click("//input[@name='ctl0\$body\$ctl2']", ""); + $this->pause(800); + $this->verifyNotVisible('ctl0_body_ctl1'); + $this->assertTextPresent("ctl0_body_ctl2 clicked using callback"); + + // a checkbox validated by a required field validator + $this->assertNotChecked("//input[@name='ctl0\$body\$CheckBox']"); + $this->verifyNotVisible('ctl0_body_ctl4'); + $this->click("//input[@type='submit' and @value='Submit']", ""); + $this->verifyVisible('ctl0_body_ctl4'); + $this->click("//input[@name='ctl0\$body\$CheckBox']", ""); + $this->assertChecked("//input[@name='ctl0\$body\$CheckBox']"); + $this->click("//input[@type='submit' and @value='Submit']", ""); + $this->verifyNotVisible('ctl0_body_ctl4'); + $this->assertTextPresent("ctl0_body_CheckBox clicked"); + + // a checkbox validated by a required field validator using AutoPostBack + $this->assertChecked("//input[@name='ctl0\$body\$CheckBox2']"); + $this->verifyNotVisible('ctl0_body_ctl5'); + $this->click("//input[@name='ctl0\$body\$CheckBox2']", ""); + $this->verifyVisible('ctl0_body_ctl5'); + $this->assertChecked("//input[@name='ctl0\$body\$CheckBox2']"); + } +} + ?> \ No newline at end of file -- cgit v1.2.3