summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/quickstart/JuiControls
diff options
context:
space:
mode:
authorDavid <ottodavid@gmx.net>2015-03-10 21:14:33 +0100
committerDavid <ottodavid@gmx.net>2015-03-11 21:14:29 +0100
commit95eae21c1968cb3be2248004ee5364361cebe02d (patch)
tree6b1591761336e407ea06622f011029dd4b5172db /tests/FunctionalTests/quickstart/JuiControls
parentcf984085056c41c86c5b9fe2144c2e7a73eb807d (diff)
TJuiDialog
Diffstat (limited to 'tests/FunctionalTests/quickstart/JuiControls')
-rwxr-xr-xtests/FunctionalTests/quickstart/JuiControls/JuiDialogTestCase.php35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/FunctionalTests/quickstart/JuiControls/JuiDialogTestCase.php b/tests/FunctionalTests/quickstart/JuiControls/JuiDialogTestCase.php
new file mode 100755
index 00000000..576582e6
--- /dev/null
+++ b/tests/FunctionalTests/quickstart/JuiControls/JuiDialogTestCase.php
@@ -0,0 +1,35 @@
+<?php
+
+
+/**
+ * Testcase for TJuiDialog
+ */
+class JuiDialogTestCase extends PradoGenericSelenium2Test
+{
+ function test ()
+ {
+ $this->url("../../demos/quickstart/index.php?page=JuiControls.Samples.TJuiDialog.Home&amp;notheme=true&amp;lang=en");
+
+ $this->assertEquals("PRADO QuickStart Sample", $this->title());
+
+ $this->assertContains('TJuiDialog Samples', $this->source());
+
+ $base = 'ctl0_body_';
+
+
+ $this->byId("${base}ctl0")->click();
+ $this->pause(500);
+ $this->assertVisible("${base}dlg1");
+
+
+ $this->assertEmpty($this->byId("${base}lbl3")->text());
+ $this->byId("${base}ctl2")->click();
+ $this->pause(500);
+ $this->assertVisible("${base}dlg3");
+
+ // Click OK (by keys...)
+ $this->keys(PHPUnit_Extensions_Selenium2TestCase_Keys::ENTER);
+ $this->pause(500);
+ $this->assertEquals('Button Ok clicked', $this->byId("${base}lbl3")->text());
+ }
+}