summaryrefslogtreecommitdiffstats
path: root/WebCore/manual-tests/resources/multiFileResources
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:15 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:15 -0800
commit1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353 (patch)
tree4457a7306ea5acb43fe05bfe0973b1f7faf97ba2 /WebCore/manual-tests/resources/multiFileResources
parent9364f22aed35e1a1e9d07c121510f80be3ab0502 (diff)
downloadexternal_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.zip
external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.gz
external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.bz2
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'WebCore/manual-tests/resources/multiFileResources')
-rwxr-xr-xWebCore/manual-tests/resources/multiFileResources/post-echo-and-notify-done.cgi12
-rw-r--r--WebCore/manual-tests/resources/multiFileResources/testFile1.html4
-rw-r--r--WebCore/manual-tests/resources/multiFileResources/testFile2.html4
-rw-r--r--WebCore/manual-tests/resources/multiFileResources/testFile3.html5
4 files changed, 25 insertions, 0 deletions
diff --git a/WebCore/manual-tests/resources/multiFileResources/post-echo-and-notify-done.cgi b/WebCore/manual-tests/resources/multiFileResources/post-echo-and-notify-done.cgi
new file mode 100755
index 0000000..2c523dc
--- /dev/null
+++ b/WebCore/manual-tests/resources/multiFileResources/post-echo-and-notify-done.cgi
@@ -0,0 +1,12 @@
+#!/usr/bin/perl -w
+
+print "Content-type: text/html\n\n";
+
+if ($ENV{'REQUEST_METHOD'} eq "POST") {
+ read(STDIN, $request, $ENV{'CONTENT_LENGTH'})
+ || die "Could not get query\n";
+ print "<pre>$request</pre>";
+ print "<script>if (window.layoutTestController) layoutTestController.notifyDone();</script>";
+} else {
+ print "Wrong method: " . $ENV{'REQUEST_METHOD'} . "\n";
+}
diff --git a/WebCore/manual-tests/resources/multiFileResources/testFile1.html b/WebCore/manual-tests/resources/multiFileResources/testFile1.html
new file mode 100644
index 0000000..4313554
--- /dev/null
+++ b/WebCore/manual-tests/resources/multiFileResources/testFile1.html
@@ -0,0 +1,4 @@
+<script>
+parent.log('test file 1 submitted');
+parent.submittedFiles++;
+</script> \ No newline at end of file
diff --git a/WebCore/manual-tests/resources/multiFileResources/testFile2.html b/WebCore/manual-tests/resources/multiFileResources/testFile2.html
new file mode 100644
index 0000000..90167f7
--- /dev/null
+++ b/WebCore/manual-tests/resources/multiFileResources/testFile2.html
@@ -0,0 +1,4 @@
+<script>
+parent.log('test file 2 submitted');
+parent.submittedFiles++;
+</script> \ No newline at end of file
diff --git a/WebCore/manual-tests/resources/multiFileResources/testFile3.html b/WebCore/manual-tests/resources/multiFileResources/testFile3.html
new file mode 100644
index 0000000..f89ddf3
--- /dev/null
+++ b/WebCore/manual-tests/resources/multiFileResources/testFile3.html
@@ -0,0 +1,5 @@
+<script>
+parent.log('test file 3 submitted');
+parent.submittedFiles++;
+parent.verifyResults();
+</script> \ No newline at end of file