summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/quickstart/Controls
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2014-03-25 22:41:33 +0100
committerDavid <ottodavid@gmx.net>2014-08-21 17:32:09 +0200
commit94e34ad61868dc6a28de6f1a708d63ae0b6b4cf9 (patch)
tree79c298bb04c06c2d3673ceec9f8ae81968be5295 /tests/FunctionalTests/quickstart/Controls
parent2f2a18b9ccf154543ca02e9c189f23cc2862017d (diff)
More selenium2 tests porting
(cherry picked from commit 68bbb645ba5be61c2e3024ac3943c7346b30f1f2) Conflicts: tests/FunctionalTests/tickets/tests/Ticket587TestCase.php tests/FunctionalTests/tickets/tests/Ticket719TestCase.php
Diffstat (limited to 'tests/FunctionalTests/quickstart/Controls')
-rwxr-xr-xtests/FunctionalTests/quickstart/Controls/TextBoxTestCase.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/FunctionalTests/quickstart/Controls/TextBoxTestCase.php b/tests/FunctionalTests/quickstart/Controls/TextBoxTestCase.php
index 52095321..3865e33d 100755
--- a/tests/FunctionalTests/quickstart/Controls/TextBoxTestCase.php
+++ b/tests/FunctionalTests/quickstart/Controls/TextBoxTestCase.php
@@ -30,15 +30,15 @@ class QuickstartTextBoxTestCase extends PradoGenericSelenium2Test
// auto postback textbox, CausesValidation=false
$this->assertValue("ctl0\$body\$ctl6", "change me");
- $this->type("ctl0\$body\$ctl6", "change mes");
+ $this->typeSpecial("ctl0\$body\$ctl6", "change mes");
$this->assertValue("ctl0\$body\$ctl6", "text changed");
// auto postback textbox, CausesValidation=true
$this->assertNotVisible('ctl0_body_ctl7');
- $this->type("ctl0\$body\$TextBox3", "test");
+ $this->typeSpecial("ctl0\$body\$TextBox3", "test");
// $this->pause(1000);
$this->assertVisible('ctl0_body_ctl7');
- $this->type("ctl0\$body\$TextBox3", "non test");
+ $this->typeSpecial("ctl0\$body\$TextBox3", "non test");
$this->assertNotVisible('ctl0_body_ctl7');
// submitting textbox with a button
@@ -48,7 +48,7 @@ class QuickstartTextBoxTestCase extends PradoGenericSelenium2Test
// SafeText
$this->assertText("ctl0_body_Output","test");
- $this->type("ctl0\$body\$TextBox2","<a href=javascript:xxx>malicious code</a>");
+ $this->typeSpecial("ctl0\$body\$TextBox2","<a href=javascript:xxx>malicious code</a>");
$this->assertText("ctl0_body_Output","malicious code");
// password
@@ -72,7 +72,7 @@ End of message
// auto postback textbox
$this->assertValue("ctl0\$body\$ctl14", "change me");
- $this->type("ctl0\$body\$ctl14", "change mes");
+ $this->typeSpecial("ctl0\$body\$ctl14", "change mes");
$this->assertValue("ctl0\$body\$ctl14", "text changed");
$this->assertValue("ctl0\$body\$ctl10", "This is a\nmultiline\ntextbox.");
$this->assertValue("ctl0\$body\$ctl11", "This is a multiline text box.
@@ -82,10 +82,10 @@ End of message
// textbox associated with a validator
$this->assertNotVisible('ctl0_body_ctl15');
- $this->type("ctl0\$body\$MultiTextBox3", "demo");
+ $this->typeSpecial("ctl0\$body\$MultiTextBox3", "demo");
// $this->pause(1000);
$this->assertVisible('ctl0_body_ctl15');
- $this->type("ctl0\$body\$MultiTextBox3", "non demo");
+ $this->typeSpecial("ctl0\$body\$MultiTextBox3", "non demo");
$this->assertNotVisible('ctl0_body_ctl15');
}
}