summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/quickstart/Controls/DataList2TestCase.php
diff options
context:
space:
mode:
authorctrlaltca <>2012-07-12 11:21:01 +0000
committerctrlaltca <>2012-07-12 11:21:01 +0000
commit903ae8a581fac1e6917fc3e31d2ad8fb91df80c3 (patch)
treee08bf04f0823650a231227ac3499121270172a23 /tests/FunctionalTests/quickstart/Controls/DataList2TestCase.php
parent3e4e6e66aeb3f8fea4e1eb4237498ef9d2358f63 (diff)
standardize the use of unix eol; use svn properties to enforce native eol
Diffstat (limited to 'tests/FunctionalTests/quickstart/Controls/DataList2TestCase.php')
-rw-r--r--tests/FunctionalTests/quickstart/Controls/DataList2TestCase.php120
1 files changed, 60 insertions, 60 deletions
diff --git a/tests/FunctionalTests/quickstart/Controls/DataList2TestCase.php b/tests/FunctionalTests/quickstart/Controls/DataList2TestCase.php
index 47e9bb94..4d91e409 100644
--- a/tests/FunctionalTests/quickstart/Controls/DataList2TestCase.php
+++ b/tests/FunctionalTests/quickstart/Controls/DataList2TestCase.php
@@ -1,61 +1,61 @@
-<?php
-
-class DataList2TestCase extends SeleniumTestCase
-{
- function test()
- {
- $this->open("../../demos/quickstart/index.php?page=Controls.Samples.TDataList.Sample2&amp;notheme=true&amp;lang=en", "");
-
- // verify initial presentation
- $this->verifyTextPresent("Motherboard ", "");
- $this->verifyTextPresent("Monitor ", "");
-
- // verify selecting an item
- $this->clickAndWait("link=ITN003", "");
- $this->verifyTextPresent("Quantity", "");
- $this->verifyTextPresent("Price", "");
- $this->verifyTextPresent("\$80", "");
- $this->clickAndWait("link=ITN005", "");
- $this->verifyTextPresent("\$150", "");
-
- // verify editting an item
- $this->clickAndWait("id=ctl0_body_DataList_ctl5_ctl0", "");
- $this->type("ctl0\$body\$DataList\$ctl5\$ProductQuantity", "11");
- $this->type("ctl0\$body\$DataList\$ctl5\$ProductPrice", "140.99");
- $this->click("//input[@name='ctl0\$body\$DataList\$ctl5\$ProductImported']", "");
- $this->clickAndWait("link=Save", "");
-
- // verify item is saved
- $this->clickAndWait("link=ITN005", "");
- $this->verifyTextPresent("\$140.99", "");
- $this->verifyTextPresent("11", "");
-
- // verify editting another item
- $this->clickAndWait("id=ctl0_body_DataList_ctl3_ctl1", "");
- $this->type("ctl0\$body\$DataList\$ctl3\$ProductName", "Hard Drive");
- $this->type("ctl0\$body\$DataList\$ctl3\$ProductQuantity", "23");
- $this->click("//input[@name='ctl0\$body\$DataList\$ctl3\$ProductImported']", "");
- $this->clickAndWait("link=Cancel", "");
-
- // verify item is canceled
- $this->clickAndWait("link=ITN003", "");
- $this->verifyTextPresent("2", "");
- $this->verifyTextPresent("Harddrive ", "");
-
- // verify item deletion
- $this->clickAndWait("id=ctl0_body_DataList_ctl3_ctl1", "");
- $this->verifyConfirmation("Are you sure?");
- $this->chooseCancelOnNextConfirmation();
- $this->click("id=ctl0_body_DataList_ctl5_ctl2", "");
- $this->verifyConfirmation("Are you sure?");
- $this->verifyTextPresent("Motherboard ", "");
- $this->verifyTextPresent("CPU ", "");
- $this->verifyTextNotPresent("Harddrive","");
- $this->verifyTextPresent("Sound card", "");
- $this->verifyTextPresent("Video card", "");
- $this->verifyTextPresent("Keyboard","");
- $this->verifyTextPresent("Monitor ", "");
- }
-}
-
+<?php
+
+class DataList2TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open("../../demos/quickstart/index.php?page=Controls.Samples.TDataList.Sample2&amp;notheme=true&amp;lang=en", "");
+
+ // verify initial presentation
+ $this->verifyTextPresent("Motherboard ", "");
+ $this->verifyTextPresent("Monitor ", "");
+
+ // verify selecting an item
+ $this->clickAndWait("link=ITN003", "");
+ $this->verifyTextPresent("Quantity", "");
+ $this->verifyTextPresent("Price", "");
+ $this->verifyTextPresent("\$80", "");
+ $this->clickAndWait("link=ITN005", "");
+ $this->verifyTextPresent("\$150", "");
+
+ // verify editting an item
+ $this->clickAndWait("id=ctl0_body_DataList_ctl5_ctl0", "");
+ $this->type("ctl0\$body\$DataList\$ctl5\$ProductQuantity", "11");
+ $this->type("ctl0\$body\$DataList\$ctl5\$ProductPrice", "140.99");
+ $this->click("//input[@name='ctl0\$body\$DataList\$ctl5\$ProductImported']", "");
+ $this->clickAndWait("link=Save", "");
+
+ // verify item is saved
+ $this->clickAndWait("link=ITN005", "");
+ $this->verifyTextPresent("\$140.99", "");
+ $this->verifyTextPresent("11", "");
+
+ // verify editting another item
+ $this->clickAndWait("id=ctl0_body_DataList_ctl3_ctl1", "");
+ $this->type("ctl0\$body\$DataList\$ctl3\$ProductName", "Hard Drive");
+ $this->type("ctl0\$body\$DataList\$ctl3\$ProductQuantity", "23");
+ $this->click("//input[@name='ctl0\$body\$DataList\$ctl3\$ProductImported']", "");
+ $this->clickAndWait("link=Cancel", "");
+
+ // verify item is canceled
+ $this->clickAndWait("link=ITN003", "");
+ $this->verifyTextPresent("2", "");
+ $this->verifyTextPresent("Harddrive ", "");
+
+ // verify item deletion
+ $this->clickAndWait("id=ctl0_body_DataList_ctl3_ctl1", "");
+ $this->verifyConfirmation("Are you sure?");
+ $this->chooseCancelOnNextConfirmation();
+ $this->click("id=ctl0_body_DataList_ctl5_ctl2", "");
+ $this->verifyConfirmation("Are you sure?");
+ $this->verifyTextPresent("Motherboard ", "");
+ $this->verifyTextPresent("CPU ", "");
+ $this->verifyTextNotPresent("Harddrive","");
+ $this->verifyTextPresent("Sound card", "");
+ $this->verifyTextPresent("Video card", "");
+ $this->verifyTextPresent("Keyboard","");
+ $this->verifyTextPresent("Monitor ", "");
+ }
+}
+
?> \ No newline at end of file