summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorxue <>2006-03-18 01:28:08 +0000
committerxue <>2006-03-18 01:28:08 +0000
commitb8ac07fd91e18decc0a863f3deb115772ea27eac (patch)
treeb6165184ba9acb1b6a47b7a5325f3345575531c3 /tests
parent3323291d70c162e461126366a28a0334f6451c9f (diff)
Added feature tests for the new controls.
Diffstat (limited to 'tests')
-rw-r--r--tests/FunctionalTests/features/protected/pages/ImageMap/Home.page43
-rw-r--r--tests/FunctionalTests/features/protected/pages/ImageMap/Home.php12
-rw-r--r--tests/FunctionalTests/features/protected/pages/ImageMap/hotspot.jpgbin0 -> 12206 bytes
-rw-r--r--tests/FunctionalTests/features/protected/pages/MultiView/Home.page24
-rw-r--r--tests/FunctionalTests/features/protected/pages/Wizard/Home.page27
5 files changed, 106 insertions, 0 deletions
diff --git a/tests/FunctionalTests/features/protected/pages/ImageMap/Home.page b/tests/FunctionalTests/features/protected/pages/ImageMap/Home.page
new file mode 100644
index 00000000..34631125
--- /dev/null
+++ b/tests/FunctionalTests/features/protected/pages/ImageMap/Home.page
@@ -0,0 +1,43 @@
+<com:TContent ID="Content">
+
+<com:TImageMap ImageUrl=<%~hotspot.jpg%> AlternateText="Navigate buttons" OnClick="buttonClicked" >
+
+<com:TRectangleHotSpot
+ hotspotmode="Navigate"
+ NavigateUrl="navigate1.htm"
+ alternatetext="Button 1"
+ top="30"
+ left="175"
+ bottom="110"
+ right="355" />
+
+<com:TRectangleHotSpot
+ hotspotmode="PostBack"
+ PostBackValue="test"
+ CausesValidation="true"
+ ValidationGroup="Group1"
+ alternatetext="Button 2"
+ top="155"
+ left="175"
+ bottom="240"
+ right="355" />
+
+<com:TRectangleHotSpot
+ hotspotmode="Inactive"
+ NavigateUrl="navigate3.htm"
+ alternatetext="Button 3"
+ top="285"
+ left="175"
+ bottom="365"
+ right="355" />
+
+</com:TImageMap>
+
+<com:TTextBox ID="TextBox" />
+<com:TRequiredFieldValidator
+ ValidationGroup="Group1"
+ EnableClientScript="true"
+ ControlToValidate="TextBox"
+ Text="required" />
+
+</com:TContent> \ No newline at end of file
diff --git a/tests/FunctionalTests/features/protected/pages/ImageMap/Home.php b/tests/FunctionalTests/features/protected/pages/ImageMap/Home.php
new file mode 100644
index 00000000..36ec7e9c
--- /dev/null
+++ b/tests/FunctionalTests/features/protected/pages/ImageMap/Home.php
@@ -0,0 +1,12 @@
+<?php
+
+class Home extends TPage
+{
+ public function buttonClicked($sender,$param)
+ {
+ //echo $param->getPostBackValue();
+ print_r($param);
+ }
+}
+
+?> \ No newline at end of file
diff --git a/tests/FunctionalTests/features/protected/pages/ImageMap/hotspot.jpg b/tests/FunctionalTests/features/protected/pages/ImageMap/hotspot.jpg
new file mode 100644
index 00000000..3491813f
--- /dev/null
+++ b/tests/FunctionalTests/features/protected/pages/ImageMap/hotspot.jpg
Binary files differ
diff --git a/tests/FunctionalTests/features/protected/pages/MultiView/Home.page b/tests/FunctionalTests/features/protected/pages/MultiView/Home.page
new file mode 100644
index 00000000..30ee1bbe
--- /dev/null
+++ b/tests/FunctionalTests/features/protected/pages/MultiView/Home.page
@@ -0,0 +1,24 @@
+<com:TContent ID="Content">
+
+<com:TMultiView ActiveViewIndex="2">
+ <com:TView ID="View1">
+ view 1
+ <com:TTextBox Text="view 1" />
+ <com:TButton Text="see view 2" CommandName="SwitchViewIndex" CommandParameter="1" />
+ <com:TButton Text="see view 3" CommandName="SwitchViewIndex" CommandParameter="2" />
+ </com:TView>
+ <com:TView ID="View2">
+ view 2
+ <com:TTextBox Text="view 2" />
+ <com:TButton Text="see view 1" CommandName="SwitchViewID" CommandParameter="View1" />
+ <com:TButton Text="see view 3" CommandName="NextView" />
+ </com:TView>
+ <com:TView ID="View3">
+ view 3
+ <com:TTextBox Text="view 3" />
+ <com:TButton Text="see view 1" CommandName="SwitchViewIndex" CommandParameter="0" />
+ <com:TButton Text="see view 2" CommandName="PreviousView" />
+ </com:TView>
+</com:TMultiView>
+
+</com:TContent> \ No newline at end of file
diff --git a/tests/FunctionalTests/features/protected/pages/Wizard/Home.page b/tests/FunctionalTests/features/protected/pages/Wizard/Home.page
new file mode 100644
index 00000000..ad72319d
--- /dev/null
+++ b/tests/FunctionalTests/features/protected/pages/Wizard/Home.page
@@ -0,0 +1,27 @@
+<com:TContent ID="Content">
+
+<com:TWizard
+ HeaderText="Wizard Test"
+ Width="300px"
+ NavigationStyle.BackColor="silver"
+ NavigationButtonStyle.BackColor="green"
+ FinishCompleteButtonStyle.BackColor="red"
+ >
+ <com:TWizardStep Title="Step 1">
+ step 1
+ <com:TTextBox Text="step 1" ID="TextBox1" />
+ <com:TRequiredFieldValidator ControlToValidate="TextBox1" Text="required 1" />
+ </com:TWizardStep>
+ <com:TWizardStep Title="Step 2">
+ step 2
+ <com:TTextBox Text="step 2" ID="TextBox2" />
+ <com:TRequiredFieldValidator ControlToValidate="TextBox2" Text="required 2" />
+ </com:TWizardStep>
+ <com:TWizardStep Title="Step 3">
+ step 3
+ <com:TTextBox Text="step 3" ID="TextBox3" />
+ <com:TRequiredFieldValidator ControlToValidate="TextBox3" Text="required 3" />
+ </com:TWizardStep>
+</com:TWizard>
+
+</com:TContent> \ No newline at end of file