summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/tests/NestedActiveControlsTestCase.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/active-controls/tests/NestedActiveControlsTestCase.php')
-rw-r--r--tests/FunctionalTests/active-controls/tests/NestedActiveControlsTestCase.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/tests/NestedActiveControlsTestCase.php b/tests/FunctionalTests/active-controls/tests/NestedActiveControlsTestCase.php
new file mode 100644
index 00000000..8d0cfb87
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/tests/NestedActiveControlsTestCase.php
@@ -0,0 +1,26 @@
+<?php
+
+class NestedActiveControlsTestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open("active-controls/index.php?page=NestedActiveControls");
+ $this->verifyTextPresent("Nested Active Controls Test");
+ $this->assertText("label1", "Label 1");
+ $this->assertText("label2", "Label 2");
+ $this->assertTextNotPresent("Label 3");
+
+ $this->click("div1");
+ $this->pause(500);
+ $this->assertTextPresent("Something lalala");
+ $this->assertText("label3", "Label 3");
+
+ $this->click("button1");
+ $this->pause(500);
+ $this->assertText("label1", "Label 1: Button 1 Clicked");
+ $this->assertText("label2", "Label 2: Button 1 Clicked");
+ $this->assertText("label3", "Label 3: Button 1 Clicked");
+ }
+}
+
+?> \ No newline at end of file