aboutsummaryrefslogtreecommitdiffstats
path: root/test/data
diff options
context:
space:
mode:
authorjaubourg <aubourg.julian@gmail.com>2010-12-09 13:34:28 -0500
committerjeresig <jeresig@gmail.com>2010-12-09 13:34:28 -0500
commitab3ba4a81252c4357a7aab5f24d765d41d47986e (patch)
tree75c16f8e7cd8a41041ee19855e799d15c074fd67 /test/data
parent29616e60c88bf300f4b2ee4ad1a89a8ac6481027 (diff)
downloadjquery-ab3ba4a81252c4357a7aab5f24d765d41d47986e.tar.gz
jquery-ab3ba4a81252c4357a7aab5f24d765d41d47986e.zip
Rewrite of the Ajax module by Julian Aubourg. Some (dated) details can be found here: http://oksoclap.com/6Y26bm1ZsB more details are forthcoming. Fixes #7195.
Diffstat (limited to 'test/data')
-rw-r--r--test/data/atom+xml.php4
-rw-r--r--test/data/css.php15
-rw-r--r--test/data/headers.php5
-rw-r--r--test/data/with_fries_over_jsonp.php7
4 files changed, 31 insertions, 0 deletions
diff --git a/test/data/atom+xml.php b/test/data/atom+xml.php
new file mode 100644
index 000000000..944591abf
--- /dev/null
+++ b/test/data/atom+xml.php
@@ -0,0 +1,4 @@
+<?php header("Content-type: atom+xml") ?>
+<root>
+ <element />
+</root> \ No newline at end of file
diff --git a/test/data/css.php b/test/data/css.php
new file mode 100644
index 000000000..9d079e73f
--- /dev/null
+++ b/test/data/css.php
@@ -0,0 +1,15 @@
+<?php
+error_reporting(0);
+$id = isset ( $_REQUEST['id'] ) ? $_REQUEST['id'] : null;
+$wait = isset( $_REQUEST['wait'] ) ? $_REQUEST['wait'] : null;
+
+if ( $wait ) sleep( $wait );
+
+header("Content-type: text/css");
+
+if ( $id ) {
+ ?>
+ div#<?= $id ?> { margin-left: 27px }
+ <?php
+}
+?> \ No newline at end of file
diff --git a/test/data/headers.php b/test/data/headers.php
new file mode 100644
index 000000000..598cadcde
--- /dev/null
+++ b/test/data/headers.php
@@ -0,0 +1,5 @@
+<?php
+
+header( "Multiple-Line: Hello\n World" );
+header( "Multiple-Multiple-Line: Hello\n Beautiful\n\t World" );
+header( "Single-Line: Hello World" ); \ No newline at end of file
diff --git a/test/data/with_fries_over_jsonp.php b/test/data/with_fries_over_jsonp.php
new file mode 100644
index 000000000..456aeb3bd
--- /dev/null
+++ b/test/data/with_fries_over_jsonp.php
@@ -0,0 +1,7 @@
+<?php
+error_reporting(0);
+$callback = $_REQUEST['callback'];
+$json = $_REQUEST['json'];
+$text = json_encode(file_get_contents(dirname(__FILE__)."/with_fries.xml"));
+echo "$callback($text)";
+?>