summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/quickstart/Controls/LabelTestCase.php
diff options
context:
space:
mode:
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&notheme=true&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");
}