aboutsummaryrefslogtreecommitdiffstats
path: root/test/data/event
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2012-08-19 17:41:43 -0400
committerDave Methvin <dave.methvin@gmail.com>2012-08-20 08:16:07 -0400
commit0f553ed0ca0c50c5f66377e9f2c6314f822e8f25 (patch)
tree0b807f943547744a3c6eaacb6ca1e900082895c0 /test/data/event
parentf3ea073dc0cc506cbbdd24952953d7e8dda456a4 (diff)
downloadjquery-0f553ed0ca0c50c5f66377e9f2c6314f822e8f25.tar.gz
jquery-0f553ed0ca0c50c5f66377e9f2c6314f822e8f25.zip
Fix #12282. IE has premature .readyState == "interactive". Close gh-901.
Diffstat (limited to 'test/data/event')
-rw-r--r--test/data/event/partialLoadReady.php40
1 files changed, 40 insertions, 0 deletions
diff --git a/test/data/event/partialLoadReady.php b/test/data/event/partialLoadReady.php
new file mode 100644
index 000000000..000ee567b
--- /dev/null
+++ b/test/data/event/partialLoadReady.php
@@ -0,0 +1,40 @@
+<?php
+//try very hard to disable output buffering
+@ini_set("output_buffering", 0);
+@apache_setenv("no-gzip", 1);
+@ini_set("zlib.output_compression", 0);
+ob_start();
+?>
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="content-type" content="text/html; charset=utf-8">
+<title>Test case for jQuery ticket #12282</title>
+</head>
+<body>
+
+<h1>TEST</h1>
+<script type="text/javascript" src="../../../dist/jquery.js"></script>
+<script type="text/javascript">
+jQuery( document ).ready(function() {
+ window.parent.iframeCallback( jQuery('#container').length === 1 );
+});
+</script>
+
+<?php
+//send the top of the document without sending the bottom portion
+echo str_repeat(" ", 1024 * 8), "\n";
+ob_flush();
+?>
+
+<h2>Sleeping for 1 seconds (simulating server side process)</h2>
+
+<?php
+//sleep for a bit, simulating a server side process
+sleep(1);
+?>
+
+<div id="container">ready</h2>
+</body>
+</html> \ No newline at end of file