summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/features/protected/pages/ImageMap
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/FunctionalTests/features/protected/pages/ImageMap
parent3323291d70c162e461126366a28a0334f6451c9f (diff)
Added feature tests for the new controls.
Diffstat (limited to 'tests/FunctionalTests/features/protected/pages/ImageMap')
-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
3 files changed, 55 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