summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/quickstart
diff options
context:
space:
mode:
authorxue <>2006-06-02 18:27:02 +0000
committerxue <>2006-06-02 18:27:02 +0000
commit0f3a577bed4d828472469675e90fcab032e33f44 (patch)
tree3ca817247b8006563900d5fb8995d6a6f0627a2b /tests/FunctionalTests/quickstart
parent067ab51fbd9b2f18f63fc80895476e5b0e2f9bfb (diff)
merge from 3.0 branch till 1133.
Diffstat (limited to 'tests/FunctionalTests/quickstart')
-rw-r--r--tests/FunctionalTests/quickstart/Controls/ListBoxTestCase.php6
-rw-r--r--tests/FunctionalTests/quickstart/Controls/MultiViewTestCase.php8
2 files changed, 7 insertions, 7 deletions
diff --git a/tests/FunctionalTests/quickstart/Controls/ListBoxTestCase.php b/tests/FunctionalTests/quickstart/Controls/ListBoxTestCase.php
index c031c5fd..7ed2b10f 100644
--- a/tests/FunctionalTests/quickstart/Controls/ListBoxTestCase.php
+++ b/tests/FunctionalTests/quickstart/Controls/ListBoxTestCase.php
@@ -42,12 +42,13 @@ class ListBoxTestCase extends SeleniumTestCase
$this->verifySelectOptions("ctl0\$body\$ctl7[]","item 1,item 2,item 3,item 4");
// multiselection list box's behavior upon postback
- $this->select("ctl0\$body\$ListBox2[]", "label=item 3");
+ $this->addSelection("ctl0\$body\$ListBox2[]", "label=item 3");
$this->clickAndWait("name=ctl0\$body\$ctl8", "");
$this->verifyText("ctl0_body_MultiSelectionResult2","Your selection is: (Index: 1, Value: value 2, Text: item 2)(Index: 2, Value: value 3, Text: item 3)(Index: 3, Value: value 4, Text: item 4)");
// Auto postback multiselection list box
- $this->selectAndWait("ctl0\$body\$ctl9[]", "label=item 1");
+ $this->addSelection("ctl0\$body\$ctl9[]", "label=item 1");
+ $this->waitForPageToLoad(1000);
$this->verifyText("ctl0_body_MultiSelectionResult","Your selection is: (Index: 0, Value: value 1, Text: item 1)(Index: 1, Value: value 2, Text: item 2)(Index: 3, Value: value 4, Text: item 4)");
// Databind to an integer-indexed array
@@ -73,7 +74,6 @@ class ListBoxTestCase extends SeleniumTestCase
// List box causing validation
$this->verifyNotVisible('ctl0_body_ctl12');
$this->select("ctl0\$body\$VListBox2", "label=Agree");
-// $this->pause(1000);
$this->verifyVisible('ctl0_body_ctl12');
$this->type("ctl0\$body\$TextBox", "test");
$this->selectAndWait("ctl0\$body\$VListBox2", "label=Disagree");
diff --git a/tests/FunctionalTests/quickstart/Controls/MultiViewTestCase.php b/tests/FunctionalTests/quickstart/Controls/MultiViewTestCase.php
index c94a325c..90f67901 100644
--- a/tests/FunctionalTests/quickstart/Controls/MultiViewTestCase.php
+++ b/tests/FunctionalTests/quickstart/Controls/MultiViewTestCase.php
@@ -9,8 +9,8 @@ class MultiViewTestCase extends SeleniumTestCase
$this->verifyTitle("PRADO QuickStart Sample", "");
// view 1 : type in a string
- $this->verifyNotVisible('ctl0_body_Result1');
- $this->verifyNotVisible('ctl0_body_Result2');
+ $this->verifyElementNotPresent('ctl0_body_Result1');
+ $this->verifyElementNotPresent('ctl0_body_Result2');
$this->type('ctl0_body_Memo','test');
$this->clickAndWait('ctl0$body$ctl1');
@@ -20,8 +20,8 @@ class MultiViewTestCase extends SeleniumTestCase
$this->clickAndWait('ctl0$body$ctl7');
// view 2 : update dropdownlist
- $this->verifyNotVisible('ctl0_body_Result1');
- $this->verifyNotVisible('ctl0_body_Result2');
+ $this->verifyElementNotPresent('ctl0_body_Result1');
+ $this->verifyElementNotPresent('ctl0_body_Result2');
$this->select('ctl0$body$DropDownList', "label=Blue");
$this->clickAndWait('ctl0$body$ctl4');