summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/quickstart/Controls/LabelTestCase.php
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2014-03-05 23:02:18 +0100
committerFabio Bas <ctrlaltca@gmail.com>2014-03-05 23:02:18 +0100
commit4ce02f6973aa40c313364b5ff7990f2244309790 (patch)
tree4e55faa0ff1ae31adcd3845cc94fe384fafa29ee /tests/FunctionalTests/quickstart/Controls/LabelTestCase.php
parent82774aa0a41562a325f31c901584ec01c8238573 (diff)
Started cleaning tests' selenium2 compatibility layer
Diffstat (limited to 'tests/FunctionalTests/quickstart/Controls/LabelTestCase.php')
-rwxr-xr-xtests/FunctionalTests/quickstart/Controls/LabelTestCase.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/FunctionalTests/quickstart/Controls/LabelTestCase.php b/tests/FunctionalTests/quickstart/Controls/LabelTestCase.php
index 96873c00..a9aa0bbe 100755
--- a/tests/FunctionalTests/quickstart/Controls/LabelTestCase.php
+++ b/tests/FunctionalTests/quickstart/Controls/LabelTestCase.php
@@ -6,15 +6,15 @@ class QuickstartLabelTestCase extends PradoGenericSelenium2Test
function test ()
{
$this->url("../../demos/quickstart/index.php?page=Controls.Samples.TLabel.Home&amp;notheme=true&amp;lang=en");
- $this->verifyTitle("PRADO QuickStart Sample", "");
- $this->assertTextPresent("This is a label with customized color and font.", "");
- $this->assertTextPresent("This is a form label associated with the TTextBox control below", "");
- $this->assertTextPresent("This is a label with empty Text property and <b>nonempty body</b>", "");
- $this->assertTextPresent("This is a disabled label", "");
+ $this->assertEquals("PRADO QuickStart Sample", $this->title());
+ $this->assertContains("This is a label with customized color and font.", $this->source());
+ $this->assertContains("This is a form label associated with the TTextBox control below", $this->source());
+ $this->assertContains("This is a label with empty Text property and <b>nonempty body</b>", $this->source());
+ $this->assertContains("This is a disabled label", $this->source());
- $this->verifyAttribute("ctl0_body_Label2@disabled","regexp:true|disabled");
+ $this->assertAttribute("ctl0_body_Label2@disabled","regexp:true|disabled");
- //$this->verifyAttribute("ctl0_body_Label1@for","ctl0_body_test");
+ //$this->assertAttribute("ctl0_body_Label1@for","ctl0_body_test");
$this->type("ctl0\$body\$test", "test");
}