diff options
author | xue <> | 2006-02-13 20:11:50 +0000 |
---|---|---|
committer | xue <> | 2006-02-13 20:11:50 +0000 |
commit | 98e796c1a4f0bda1abc4df7e08df9ddb4f6e50af (patch) | |
tree | 2a43f74d5194334f5081d5e978bccf21aecc949c | |
parent | bfa016a3df219522b6c2f93a4759f0b3638aea8e (diff) |
Added TBulletedList FT.
-rw-r--r-- | .gitattributes | 1 | ||||
-rw-r--r-- | tests/FunctionalTests/quickstart/Controls/BulletedListTestCase.php | 38 |
2 files changed, 39 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes index cd27d149..e03ffbd5 100644 --- a/.gitattributes +++ b/.gitattributes @@ -781,6 +781,7 @@ tests/FunctionalTests/protected/pages/ViewSource.php -text tests/FunctionalTests/protected/pages/config.xml -text tests/FunctionalTests/quickstart.php -text tests/FunctionalTests/quickstart/Advanced/I18N.php -text +tests/FunctionalTests/quickstart/Controls/BulletedListTestCase.php -text tests/FunctionalTests/quickstart/Controls/ButtonTestCase.php -text tests/FunctionalTests/quickstart/Controls/CheckBoxListTestCase.php -text tests/FunctionalTests/quickstart/Controls/CheckBoxTestCase.php -text diff --git a/tests/FunctionalTests/quickstart/Controls/BulletedListTestCase.php b/tests/FunctionalTests/quickstart/Controls/BulletedListTestCase.php new file mode 100644 index 00000000..4378fd78 --- /dev/null +++ b/tests/FunctionalTests/quickstart/Controls/BulletedListTestCase.php @@ -0,0 +1,38 @@ +<?php
+
+class BulletedListTestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open("../../demos/quickstart/index.php?page=Controls.Samples.TBulletedList.Home&notheme=true", "");
+
+ // verify if all required texts are present
+ $this->verifyTextPresent('item 1','');
+ $this->verifyTextPresent('item 2','');
+ $this->verifyTextPresent('item 3','');
+ $this->verifyTextPresent('item 4','');
+ $this->verifyTextPresent('google','');
+ $this->verifyTextPresent('yahoo','');
+ $this->verifyTextPresent('amazon','');
+
+ // verify order list starting from 5
+ $this->verifyElementPresent("//ol[@start='5']");
+
+ // unable to verify styles
+
+ // verify hyperlink list
+ $this->verifyElementPresent("//a[@href='http://www.google.com/']");
+ $this->verifyElementPresent("//a[@href='http://www.yahoo.com/']");
+ $this->verifyElementPresent("//a[@href='http://www.amazon.com/']");
+
+ // verify linkbutton list
+ $this->clickAndWait("id=ctl0_body_ctl40", "");
+ $this->verifyTextPresent("You clicked google : http://www.google.com/.", "");
+ $this->clickAndWait("id=ctl0_body_ctl41", "");
+ $this->verifyTextPresent("You clicked yahoo : http://www.yahoo.com/.", "");
+ $this->clickAndWait("id=ctl0_body_ctl42", "");
+ $this->verifyTextPresent("You clicked amazon : http://www.amazon.com/.", "");
+ }
+}
+
+?>
\ No newline at end of file |