aboutsummaryrefslogtreecommitdiffstats
path: root/test/data
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-07-14 21:13:23 +0000
committerJohn Resig <jeresig@gmail.com>2009-07-14 21:13:23 +0000
commitc3c94823f27ee1e935586d46fd86f055f3a3d97d (patch)
tree7afb6d54b1bcebea21d9409efda63bdeb7eb1933 /test/data
parent89dc1e01435ebeef173c9a843096cd5c1fbc9dd8 (diff)
downloadjquery-c3c94823f27ee1e935586d46fd86f055f3a3d97d.tar.gz
jquery-c3c94823f27ee1e935586d46fd86f055f3a3d97d.zip
Fixed the handling of .status == 304 in Opera (it always returns 0). Also silently "pass" in Opera 9.6 (which is unable to send the correct headers with setRequestHeader). Follow-up to bug #4764.
Diffstat (limited to 'test/data')
-rw-r--r--test/data/etag.php7
-rw-r--r--test/data/if_modified_since.php7
2 files changed, 12 insertions, 2 deletions
diff --git a/test/data/etag.php b/test/data/etag.php
index ad05ba8ad..7bcfcd1e6 100644
--- a/test/data/etag.php
+++ b/test/data/etag.php
@@ -11,6 +11,11 @@ if ($ifNoneMatch == $etag) {
}
header("Etag: " . $etag);
-echo "OK: " . $etag;
+
+if ( $ifNoneMatch ) {
+ echo "OK: " . $etag;
+} else {
+ echo "FAIL";
+}
?>
diff --git a/test/data/if_modified_since.php b/test/data/if_modified_since.php
index 013f446dc..e37a93e57 100644
--- a/test/data/if_modified_since.php
+++ b/test/data/if_modified_since.php
@@ -10,6 +10,11 @@ if ($ifModifiedSince == $ts) {
}
header("Last-Modified: " . $ts);
-echo "OK: " . $ts;
+
+if ( $ifModifiedSince ) {
+ echo "OK: " . $ts;
+} else {
+ echo "FAIL";
+}
?>