diff options
author | Iain Merrick <husky@google.com> | 2010-11-04 12:10:40 +0000 |
---|---|---|
committer | Iain Merrick <husky@google.com> | 2010-11-04 13:21:52 +0000 |
commit | 387bdab048790ba9d6585e963a4d26a3b98e675c (patch) | |
tree | 9adbb76070eb7c95b2fe2458b151f7e6a4bdd4df /LayoutTests/http/tests/ssl/resources | |
parent | d5a8aa497723e8ab3b77f0ecb8c9c6cc7ab5d7b0 (diff) | |
download | external_webkit-387bdab048790ba9d6585e963a4d26a3b98e675c.zip external_webkit-387bdab048790ba9d6585e963a4d26a3b98e675c.tar.gz external_webkit-387bdab048790ba9d6585e963a4d26a3b98e675c.tar.bz2 |
Add SSL layout tests at WebKit r70209.
Only 3 tests, all passing. See http://b/issue?id=3164771
Change-Id: I2f3b03969a97618f1d4ba9dd91d782e1814914f0
Diffstat (limited to 'LayoutTests/http/tests/ssl/resources')
3 files changed, 28 insertions, 0 deletions
diff --git a/LayoutTests/http/tests/ssl/resources/no-http-referer.cgi b/LayoutTests/http/tests/ssl/resources/no-http-referer.cgi new file mode 100755 index 0000000..273d03c --- /dev/null +++ b/LayoutTests/http/tests/ssl/resources/no-http-referer.cgi @@ -0,0 +1,18 @@ +#!/usr/bin/perl -wT +use strict; + +print "Content-Type: text/html\n"; +print "Cache-Control: no-store\n\n"; + +my $failed = 0; +foreach (keys %ENV) { + if ($_ =~ "HTTP_REFERER") { + print "FAIL. " . $_ . ": " . $ENV{$_} . "\n"; + $failed = 1; + } +} +if (!$failed) { + print "PASS\n"; +} + +print "<script>if (window.layoutTestController) layoutTestController.notifyDone()</script>"; diff --git a/LayoutTests/http/tests/ssl/resources/referer-301-redir.php b/LayoutTests/http/tests/ssl/resources/referer-301-redir.php new file mode 100644 index 0000000..d93dc7a --- /dev/null +++ b/LayoutTests/http/tests/ssl/resources/referer-301-redir.php @@ -0,0 +1,5 @@ +<?php +header("HTTP/1.1 301 Moved Permanently"); +header("Location: http://127.0.0.1:8000/ssl/resources/no-http-referer.cgi"); +header("Cache-Control: no-cache,no-store"); +?> diff --git a/LayoutTests/http/tests/ssl/resources/referer-303-redir.php b/LayoutTests/http/tests/ssl/resources/referer-303-redir.php new file mode 100644 index 0000000..63f859d --- /dev/null +++ b/LayoutTests/http/tests/ssl/resources/referer-303-redir.php @@ -0,0 +1,5 @@ +<?php +header("HTTP/1.1 303 See Other"); +header("Location: http://127.0.0.1:8000/ssl/resources/no-http-referer.cgi"); +header("Cache-Control: no-cache,no-store"); +?> |