summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitattributes5
-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
6 files changed, 111 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
index d6203df8..a57907ed 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -801,7 +801,12 @@ tests/FunctionalTests/features/protected/pages/I18N/BasicI18N.php -text
tests/FunctionalTests/features/protected/pages/I18N/Home.page -text
tests/FunctionalTests/features/protected/pages/I18N/Home.zh_CN.page -text
tests/FunctionalTests/features/protected/pages/I18N/config.xml -text
+tests/FunctionalTests/features/protected/pages/ImageMap/Home.page -text
+tests/FunctionalTests/features/protected/pages/ImageMap/Home.php -text
+tests/FunctionalTests/features/protected/pages/ImageMap/hotspot.jpg -text
+tests/FunctionalTests/features/protected/pages/MultiView/Home.page -text
tests/FunctionalTests/features/protected/pages/RatingList.page -text
+tests/FunctionalTests/features/protected/pages/Wizard/Home.page -text
tests/FunctionalTests/index.php -text
tests/FunctionalTests/quickstart.php -text
tests/FunctionalTests/quickstart/Advanced/I18N.php -text
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