Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 70 lines (68 sloc) 1.8 kb
d99268a4 » jrburke
2011-02-12 Add readyWait tests. Fixes #8145.
1 <!DOCTYPE html>
2 <html>
3 <!--
14193e44 » dmethvin
2011-02-02 Create jQuery.holdReady(true/false) method to encapsulate jQuery.read…
4 Test for jQuery.holdReady. Needs to be a
d99268a4 » jrburke
2011-02-12 Add readyWait tests. Fixes #8145.
5 standalone test since it deals with DOM
6 ready.
7 -->
8 <head>
9 <title>
14193e44 » dmethvin
2011-02-02 Create jQuery.holdReady(true/false) method to encapsulate jQuery.read…
10 jQuery.holdReady Test
d99268a4 » jrburke
2011-02-12 Add readyWait tests. Fixes #8145.
11 </title>
12 <style>
13 div { margin-top: 10px; }
14 #output { background-color: green }
15 #expectedOutput { background-color: green }
16 </style>
37ffb29d » timmywil
2012-06-04 Relativize all urls pertaining to dist/jquery.js so users can run the…
17 <script src="../dist/jquery.js"></script>
d99268a4 » jrburke
2011-02-12 Add readyWait tests. Fixes #8145.
18
19 <!-- Load the script loader that uses
20 jQuery.readyWait -->
21 <script src="data/readywaitloader.js"></script>
22
23 <script type="text/javascript">
24 jQuery(function() {
25 // The delayedMessage is defined by
26 // the readywaitasset.js file, so the
27 // next line will only work if this DOM
28 // ready callback is called after readyWait
29 // has been decremented by readywaitloader.js
30 // If an error occurs.
31 jQuery("#output").append(delayedMessage);
32 });
33 </script>
34 </head>
35 <body>
36 <h1>
14193e44 » dmethvin
2011-02-02 Create jQuery.holdReady(true/false) method to encapsulate jQuery.read…
37 jQuery.holdReady Test
d99268a4 » jrburke
2011-02-12 Add readyWait tests. Fixes #8145.
38 </h1>
39 <p>
7c23b77a » rwaldron
2012-06-04 Strips IIFEs from modules; Always require built jQuery for tests.
40 This is a test page for jQuery.readyWait and jQuery.holdReady,
14193e44 » dmethvin
2011-02-02 Create jQuery.holdReady(true/false) method to encapsulate jQuery.read…
41 see
42 <a href="http://bugs.jquery.com/ticket/6781">#6781</a>
43 and
44 <a href="http://bugs.jquery.com/ticket/8803">#8803</a>.
d99268a4 » jrburke
2011-02-12 Add readyWait tests. Fixes #8145.
45 </p>
46 <p>
14193e44 » dmethvin
2011-02-02 Create jQuery.holdReady(true/false) method to encapsulate jQuery.read…
47 Test for jQuery.holdReady, which can be used
d99268a4 » jrburke
2011-02-12 Add readyWait tests. Fixes #8145.
48 by plugins and other scripts to indicate something
49 important to the page is still loading and needs
50 to block the DOM ready callbacks that are registered
51 with jQuery.
52 </p>
53 <p>
54 Script loaders are the most likely kind of script
14193e44 » dmethvin
2011-02-02 Create jQuery.holdReady(true/false) method to encapsulate jQuery.read…
55 to use jQuery.holdReady, but it could be used by
d99268a4 » jrburke
2011-02-12 Add readyWait tests. Fixes #8145.
56 other things like a script that loads a CSS file
57 and wants to pause the DOM ready callbacks.
58 </p>
59 <p>
60 <strong>Expected Result</strong>: The text
61 <span id="expectedOutput">It Worked!</span>
62 appears below after about <strong>2 seconds.</strong>
63 </p>
64 <p>
65 If there is an error in the console,
66 or the text does not show up, then the test failed.
67 </p>
68 <div id="output"></div>
69 </body>
70 </html>
Something went wrong with that request. Please try again.