aboutsummaryrefslogtreecommitdiffstats
path: root/build/test/data/name.php
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2006-09-30 14:34:49 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2006-09-30 14:34:49 +0000
commit308d771dd1973015166f0ac3b6cc7d538f7911c4 (patch)
tree76d4eefc4182886fa041b6c2c0f0e270205e6ca0 /build/test/data/name.php
parentcc5625067a6bb75d357181cf6483ae0ab367c73f (diff)
downloadjquery-308d771dd1973015166f0ac3b6cc7d538f7911c4.tar.gz
jquery-308d771dd1973015166f0ac3b6cc7d538f7911c4.zip
Refactored and fixed test suite to run async tests
Diffstat (limited to 'build/test/data/name.php')
-rw-r--r--build/test/data/name.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/build/test/data/name.php b/build/test/data/name.php
new file mode 100644
index 000000000..a287fc92f
--- /dev/null
+++ b/build/test/data/name.php
@@ -0,0 +1,22 @@
+<?php
+$wait = $_REQUEST['wait'];
+if($wait) {
+ sleep($wait);
+}
+$xml = $_REQUEST['xml'];
+if($xml) {
+ header("Content-type: text/xml");
+ eval("\$result = $xml;");
+ echo "<math><calculation>$xml</calculation><result>$result</result></math>";
+ die();
+}
+$name = $_REQUEST['name'];
+if($name == 'foo') {
+ echo "bar";
+ die();
+} else if($name == 'peter') {
+ echo "pan";
+ die();
+}
+echo "ERROR";
+?> \ No newline at end of file