aboutsummaryrefslogtreecommitdiffstats
path: root/addon/js_upload/file-uploader/tests/iframe-content-tests
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-01-26 00:34:39 -0800
committerFriendika <info@friendika.com>2011-01-26 00:34:39 -0800
commit2fc89deaeae0341aa12b6b811927e793011055d1 (patch)
tree32673c6b92cbe14f88d955de585ce813988ec5fa /addon/js_upload/file-uploader/tests/iframe-content-tests
parentabbd498a8b6c92ddcf211a27dd532f2ec6520fe2 (diff)
downloadvolse-hubzilla-2fc89deaeae0341aa12b6b811927e793011055d1.tar.gz
volse-hubzilla-2fc89deaeae0341aa12b6b811927e793011055d1.tar.bz2
volse-hubzilla-2fc89deaeae0341aa12b6b811927e793011055d1.zip
work in progress js_uploader plugin, turn java uploader into plugin - not done yet
Diffstat (limited to 'addon/js_upload/file-uploader/tests/iframe-content-tests')
-rw-r--r--addon/js_upload/file-uploader/tests/iframe-content-tests/application-javascript.php1
-rw-r--r--addon/js_upload/file-uploader/tests/iframe-content-tests/application-json.php1
-rw-r--r--addon/js_upload/file-uploader/tests/iframe-content-tests/header-404.php2
-rw-r--r--addon/js_upload/file-uploader/tests/iframe-content-tests/somepage.php1
-rw-r--r--addon/js_upload/file-uploader/tests/iframe-content-tests/text-html-large.php6
-rw-r--r--addon/js_upload/file-uploader/tests/iframe-content-tests/text-html.php7
-rw-r--r--addon/js_upload/file-uploader/tests/iframe-content-tests/text-javascript.php1
-rw-r--r--addon/js_upload/file-uploader/tests/iframe-content-tests/text-plain.php2
8 files changed, 21 insertions, 0 deletions
diff --git a/addon/js_upload/file-uploader/tests/iframe-content-tests/application-javascript.php b/addon/js_upload/file-uploader/tests/iframe-content-tests/application-javascript.php
new file mode 100644
index 000000000..a91c75f69
--- /dev/null
+++ b/addon/js_upload/file-uploader/tests/iframe-content-tests/application-javascript.php
@@ -0,0 +1 @@
+<?php header('Content-type: application/javascript'); ?> \ No newline at end of file
diff --git a/addon/js_upload/file-uploader/tests/iframe-content-tests/application-json.php b/addon/js_upload/file-uploader/tests/iframe-content-tests/application-json.php
new file mode 100644
index 000000000..c1161256f
--- /dev/null
+++ b/addon/js_upload/file-uploader/tests/iframe-content-tests/application-json.php
@@ -0,0 +1 @@
+<?php header('Content-type: application/json'); ?> \ No newline at end of file
diff --git a/addon/js_upload/file-uploader/tests/iframe-content-tests/header-404.php b/addon/js_upload/file-uploader/tests/iframe-content-tests/header-404.php
new file mode 100644
index 000000000..17d807555
--- /dev/null
+++ b/addon/js_upload/file-uploader/tests/iframe-content-tests/header-404.php
@@ -0,0 +1,2 @@
+<?php header("HTTP/1.0 404 Not Found"); ?>
+Not found! \ No newline at end of file
diff --git a/addon/js_upload/file-uploader/tests/iframe-content-tests/somepage.php b/addon/js_upload/file-uploader/tests/iframe-content-tests/somepage.php
new file mode 100644
index 000000000..f0a2575a1
--- /dev/null
+++ b/addon/js_upload/file-uploader/tests/iframe-content-tests/somepage.php
@@ -0,0 +1 @@
+I'm a page. \ No newline at end of file
diff --git a/addon/js_upload/file-uploader/tests/iframe-content-tests/text-html-large.php b/addon/js_upload/file-uploader/tests/iframe-content-tests/text-html-large.php
new file mode 100644
index 000000000..ac9682be9
--- /dev/null
+++ b/addon/js_upload/file-uploader/tests/iframe-content-tests/text-html-large.php
@@ -0,0 +1,6 @@
+<?php
+ header('Content-type: text/html');
+
+ $data = str_repeat("a", 5000);
+
+ echo htmlspecialchars(json_encode($data), ENT_NOQUOTES);
diff --git a/addon/js_upload/file-uploader/tests/iframe-content-tests/text-html.php b/addon/js_upload/file-uploader/tests/iframe-content-tests/text-html.php
new file mode 100644
index 000000000..b69a1c774
--- /dev/null
+++ b/addon/js_upload/file-uploader/tests/iframe-content-tests/text-html.php
@@ -0,0 +1,7 @@
+<?php
+ header('Content-type: text/html');
+ $data = array(
+ 'example' => "&a<computer networks>, to download means to receive data to a local system from a remote system, or to initiate such a data transfer. Examples of a remote system from which a download might be performed include a webserver, FTP server, email server, or other similar systems. A download can mean either any file that is offered for downloading or that has been downloaded, or the process of receiving such a file.The inverse operation, uploading, can refer to the sending of data from a local system to a remote system such as a server or another client with the intent that the remote system should store a copy of the data being transferred, or the initiation of such a process. The words first came into popular usage among computer users with the increased popularity of Bulletin Board Systems (BBSs), facilitated by the widespread distribution and implementation of dial-up access the in the 1970s",
+ 'sub' => array('arr'=>array(10,20,30), 'boo'=>false)
+ );
+ echo htmlspecialchars(json_encode($data), ENT_NOQUOTES);
diff --git a/addon/js_upload/file-uploader/tests/iframe-content-tests/text-javascript.php b/addon/js_upload/file-uploader/tests/iframe-content-tests/text-javascript.php
new file mode 100644
index 000000000..ee930d085
--- /dev/null
+++ b/addon/js_upload/file-uploader/tests/iframe-content-tests/text-javascript.php
@@ -0,0 +1 @@
+<?php header('Content-type: text/javascript'); ?> \ No newline at end of file
diff --git a/addon/js_upload/file-uploader/tests/iframe-content-tests/text-plain.php b/addon/js_upload/file-uploader/tests/iframe-content-tests/text-plain.php
new file mode 100644
index 000000000..90c1af0ee
--- /dev/null
+++ b/addon/js_upload/file-uploader/tests/iframe-content-tests/text-plain.php
@@ -0,0 +1,2 @@
+<?php header('Content-type: text/plain'); ?>
+text<p>P tag</p> \ No newline at end of file