diff options
Diffstat (limited to 'tests/FunctionalTests/active-controls/tests/ActiveListBoxMasterTestCase.php')
-rw-r--r-- | tests/FunctionalTests/active-controls/tests/ActiveListBoxMasterTestCase.php | 96 |
1 files changed, 48 insertions, 48 deletions
diff --git a/tests/FunctionalTests/active-controls/tests/ActiveListBoxMasterTestCase.php b/tests/FunctionalTests/active-controls/tests/ActiveListBoxMasterTestCase.php index 7f006d9e..116dd4ad 100644 --- a/tests/FunctionalTests/active-controls/tests/ActiveListBoxMasterTestCase.php +++ b/tests/FunctionalTests/active-controls/tests/ActiveListBoxMasterTestCase.php @@ -1,49 +1,49 @@ -<?php
-
-class ActiveListBoxMasterTestCase extends SeleniumTestCase
-{
- function test()
- {
- $this->open("active-controls/index.php?page=ActiveListBoxMasterTest");
- $this->assertTextPresent('Active List Box Functional Test');
-
- $base = 'ctl0_body_';
-
- $this->assertText($base."label1", "Label 1");
-
- $this->click($base."button1");
- $this->pause(800);
- $this->assertSelectedIndexes($base.'list1', '1,2,3');
-
- $this->click($base.'button3');
- $this->pause(800);
- $this->assertSelectedIndexes($base.'list1', '0');
-
- $this->click($base.'button4');
- $this->pause(800);
- $this->assertSelectedIndexes($base.'list1', '4');
-
- $this->click($base.'button5');
- $this->pause(800);
- $this->assertSelectedIndexes($base.'list1', '1,4');
-
- $this->click($base.'button2');
- $this->pause(800);
- $this->assertEmptySelection($base."list1");
-
- $this->click($base.'button6');
- $this->pause(800);
- $this->click($base."button1");
- $this->pause(800);
- $this->assertSelectedIndexes($base.'list1', '1,2,3');
-
- $this->select($base."list1", "item 1");
- $this->pause(800);
- $this->assertText($base.'label1', 'Selection: value 1');
-
- $this->addSelection($base."list1", "item 4");
- $this->pause(800);
- $this->assertText($base.'label1', 'Selection: value 1, value 4');
- }
-}
+<?php + +class ActiveListBoxMasterTestCase extends SeleniumTestCase +{ + function test() + { + $this->open("active-controls/index.php?page=ActiveListBoxMasterTest"); + $this->assertTextPresent('Active List Box Functional Test'); + + $base = 'ctl0_body_'; + + $this->assertText($base."label1", "Label 1"); + + $this->click($base."button1"); + $this->pause(800); + $this->assertSelectedIndexes($base.'list1', '1,2,3'); + + $this->click($base.'button3'); + $this->pause(800); + $this->assertSelectedIndexes($base.'list1', '0'); + + $this->click($base.'button4'); + $this->pause(800); + $this->assertSelectedIndexes($base.'list1', '4'); + + $this->click($base.'button5'); + $this->pause(800); + $this->assertSelectedIndexes($base.'list1', '1,4'); + + $this->click($base.'button2'); + $this->pause(800); + $this->assertEmptySelection($base."list1"); + + $this->click($base.'button6'); + $this->pause(800); + $this->click($base."button1"); + $this->pause(800); + $this->assertSelectedIndexes($base.'list1', '1,2,3'); + + $this->select($base."list1", "item 1"); + $this->pause(800); + $this->assertText($base.'label1', 'Selection: value 1'); + + $this->addSelection($base."list1", "item 4"); + $this->pause(800); + $this->assertText($base.'label1', 'Selection: value 1, value 4'); + } +} ?>
\ No newline at end of file |