diff options
Diffstat (limited to 'tests/FunctionalTests/quickstart/Controls/BulletedListTestCase.php')
-rwxr-xr-x | tests/FunctionalTests/quickstart/Controls/BulletedListTestCase.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/FunctionalTests/quickstart/Controls/BulletedListTestCase.php b/tests/FunctionalTests/quickstart/Controls/BulletedListTestCase.php index a23f1d1d..75c0383a 100755 --- a/tests/FunctionalTests/quickstart/Controls/BulletedListTestCase.php +++ b/tests/FunctionalTests/quickstart/Controls/BulletedListTestCase.php @@ -7,13 +7,13 @@ class QuickstartBulletedListTestCase extends PradoGenericSelenium2Test $this->url("../../demos/quickstart/index.php?page=Controls.Samples.TBulletedList.Home&notheme=true&lang=en"); // verify if all required texts are present - $this->assertContains('item 1', $this->source()); - $this->assertContains('item 2', $this->source()); - $this->assertContains('item 3', $this->source()); - $this->assertContains('item 4', $this->source()); - $this->assertContains('google', $this->source()); - $this->assertContains('yahoo', $this->source()); - $this->assertContains('amazon', $this->source()); + $this->assertSourceContains('item 1'); + $this->assertSourceContains('item 2'); + $this->assertSourceContains('item 3'); + $this->assertSourceContains('item 4'); + $this->assertSourceContains('google'); + $this->assertSourceContains('yahoo'); + $this->assertSourceContains('amazon'); // verify order list starting from 5 $this->assertElementPresent("//ol[@start='5']"); @@ -27,10 +27,10 @@ class QuickstartBulletedListTestCase extends PradoGenericSelenium2Test // verify linkbutton list $this->byId("ctl0_body_ctl40")->click(); - $this->assertContains("You clicked google : http://www.google.com/.", $this->source()); + $this->assertSourceContains("You clicked google : http://www.google.com/."); $this->byId("ctl0_body_ctl41")->click(); - $this->assertContains("You clicked yahoo : http://www.yahoo.com/.", $this->source()); + $this->assertSourceContains("You clicked yahoo : http://www.yahoo.com/."); $this->byId("ctl0_body_ctl42")->click(); - $this->assertContains("You clicked amazon : http://www.amazon.com/.", $this->source()); + $this->assertSourceContains("You clicked amazon : http://www.amazon.com/."); } } |