summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/quickstart/Advanced
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2014-03-05 23:02:18 +0100
committerDavid <ottodavid@gmx.net>2014-08-21 17:30:13 +0200
commit94e54d3023ed89281f89125f3ad0553afb9312cb (patch)
tree688470329e8b837252b523b6341fe5e10fe34b95 /tests/FunctionalTests/quickstart/Advanced
parent32dfd8233520261483bdf30f23425e3b50f05d17 (diff)
Started cleaning tests' selenium2 compatibility layer
(cherry picked from commit 4ce02f6973aa40c313364b5ff7990f2244309790) Conflicts: tests/FunctionalTests/tickets/tests/Ticket220TestCase.php tests/FunctionalTests/tickets/tests/Ticket719TestCase.php tests/FunctionalTests/tickets/tests/Ticket769TestCase.php tests/FunctionalTests/validators/tests/CompareValidatorTestCase.php tests/FunctionalTests/validators/tests/DataTypeValidatorTestCase.php tests/FunctionalTests/validators/tests/DatePickerTestCase.php
Diffstat (limited to 'tests/FunctionalTests/quickstart/Advanced')
-rwxr-xr-xtests/FunctionalTests/quickstart/Advanced/I18N.php70
1 files changed, 35 insertions, 35 deletions
diff --git a/tests/FunctionalTests/quickstart/Advanced/I18N.php b/tests/FunctionalTests/quickstart/Advanced/I18N.php
index 51df9503..ccb8c961 100755
--- a/tests/FunctionalTests/quickstart/Advanced/I18N.php
+++ b/tests/FunctionalTests/quickstart/Advanced/I18N.php
@@ -6,47 +6,47 @@ class QuickstartI18NTestCase extends PradoGenericSelenium2Test
function test ()
{
$this->url("../../demos/quickstart/index.php?notheme=true&page=Advanced.Samples.I18N.Home&amp;lang=en&amp;notheme=true");
- $this->assertTextPresent("Internationlization in PRADO", "");
- $this->assertTextPresent("46.412,42 €", "");
- $this->assertTextPresent("$12.40", "");
- $this->assertTextPresent("€100.00", "");
- $this->assertTextPresent("December 6, 2004", "");
+ $this->assertContains("Internationlization in PRADO", $this->source());
+ $this->assertContains("46.412,42 €", $this->source());
+ $this->assertContains("$12.40", $this->source());
+ $this->assertContains("€100.00", $this->source());
+ $this->assertContains("December 6, 2004", $this->source());
$this->url("../../demos/quickstart/index.php?page=Advanced.Samples.I18N.Home&amp;lang=zh&amp;notheme=true");
- $this->assertTextPresent("PRADO 国际化", "");
- $this->assertTextPresent("2004 十二月", "");
- $this->assertTextPresent("US$ 12.40", "");
- $this->assertTextPresent("46.412,42 €", "");
- $this->assertTextPresent("€100.00 ", "");
+ $this->assertContains("PRADO 国际化", $this->source());
+ $this->assertContains("2004 十二月", $this->source());
+ $this->assertContains("US$ 12.40", $this->source());
+ $this->assertContains("46.412,42 €", $this->source());
+ $this->assertContains("€100.00 ", $this->source());
$this->url("../../demos/quickstart/index.php?page=Advanced.Samples.I18N.Home&amp;lang=zh_TW&amp;notheme=true");
- $this->assertTextPresent("PRADO 國際化", "");
- $this->assertTextPresent("2004年12月6日", "");
- $this->assertTextPresent("US$12.40", "");
- $this->assertTextPresent("46.412,42 €", "");
- $this->assertTextPresent("€100.00", "");
+ $this->assertContains("PRADO 國際化", $this->source());
+ $this->assertContains("2004年12月6日", $this->source());
+ $this->assertContains("US$12.40", $this->source());
+ $this->assertContains("46.412,42 €", $this->source());
+ $this->assertContains("€100.00", $this->source());
$this->url("../../demos/quickstart/index.php?page=Advanced.Samples.I18N.Home&amp;lang=de&amp;notheme=true");
- $this->assertTextPresent("Internationalisierung in PRADO", "");
- $this->assertTextPresent("6. Dezember 2004 ", "");
- $this->assertTextPresent("$ 12,40", "");
- $this->assertTextPresent("46.412,42 €", "");
- $this->assertTextPresent("€100.00", "");
+ $this->assertContains("Internationalisierung in PRADO", $this->source());
+ $this->assertContains("6. Dezember 2004 ", $this->source());
+ $this->assertContains("$ 12,40", $this->source());
+ $this->assertContains("46.412,42 €", $this->source());
+ $this->assertContains("€100.00", $this->source());
$this->url("../../demos/quickstart/index.php?page=Advanced.Samples.I18N.Home&amp;lang=es&amp;notheme=true");
- $this->assertTextPresent("Internationlization en PRADO", "");
- $this->assertTextPresent("6 de diciembre de 2004", "");
- $this->assertTextPresent("US$12.40", "");
- $this->assertTextPresent("46.412,42 €", "");
- $this->assertTextPresent("€100.00", "");
+ $this->assertContains("Internationlization en PRADO", $this->source());
+ $this->assertContains("6 de diciembre de 2004", $this->source());
+ $this->assertContains("US$12.40", $this->source());
+ $this->assertContains("46.412,42 €", $this->source());
+ $this->assertContains("€100.00", $this->source());
$this->url("../../demos/quickstart/index.php?page=Advanced.Samples.I18N.Home&amp;lang=fr&amp;notheme=true");
- $this->assertTextPresent("Internationalisation avec PRADO", "");
- $this->assertTextPresent("6 décembre 2004", "");
- $this->assertTextPresent("12,40 $", "");
- $this->assertTextPresent("46.412,42 €", "");
- $this->assertTextPresent("€100.00", "");
+ $this->assertContains("Internationalisation avec PRADO", $this->source());
+ $this->assertContains("6 décembre 2004", $this->source());
+ $this->assertContains("12,40 $", $this->source());
+ $this->assertContains("46.412,42 €", $this->source());
+ $this->assertContains("€100.00", $this->source());
$this->url("../../demos/quickstart/index.php?page=Advanced.Samples.I18N.Home&amp;lang=pl&amp;notheme=true");
- $this->assertTextPresent("Internacjonalizacja w PRADO", "");
- $this->assertTextPresent("6 grudnia 2004", "");
- $this->assertTextPresent("US$ 12,40", "");
- $this->assertTextPresent("46.412,42 €", "");
- $this->assertTextPresent("€100.00", "");
+ $this->assertContains("Internacjonalizacja w PRADO", $this->source());
+ $this->assertContains("6 grudnia 2004", $this->source());
+ $this->assertContains("US$ 12,40", $this->source());
+ $this->assertContains("46.412,42 €", $this->source());
+ $this->assertContains("€100.00", $this->source());
}
}