Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / jquery / resources / test / networkerror.html
blobf98bf4699799d987443a0e8c96a391cc005a41d6
1 <!DOCTYPE html>
2 <html>
3 <!--
4 Test for #8135
6 Thanks John Firebaugh for this test page based on his gist
7 https://gist.github.com/807090
9 Access this page through a web server, then stop said server and click the button.
10 -->
11 <head>
12 <title>
13 jQuery Network Error Test for Firefox
14 </title>
15 <style>
16 div { margin-top: 10px; }
17 </style>
18 <script src="../src/core.js"></script>
19 <script src="../src/deferred.js"></script>
20 <script src="../src/support.js"></script>
21 <script src="../src/data.js"></script>
22 <script src="../src/queue.js"></script>
23 <script src="../src/attributes.js"></script>
24 <script src="../src/event.js"></script>
25 <script src="../src/sizzle/sizzle.js"></script>
26 <script src="../src/sizzle-jquery.js"></script>
27 <script src="../src/traversing.js"></script>
28 <script src="../src/manipulation.js"></script>
29 <script src="../src/css.js"></script>
30 <script src="../src/ajax.js"></script>
31 <script src="../src/ajax/jsonp.js"></script>
32 <script src="../src/ajax/script.js"></script>
33 <script src="../src/ajax/xhr.js"></script>
34 <script src="../src/effects.js"></script>
35 <script src="../src/offset.js"></script>
36 <script src="../src/dimensions.js"></script>
37 <script type="text/javascript">
38 $('button').live('click', function () {
39 $.ajax({
40 url: '/',
41 error: function() {
42 console.log( "abort", arguments );
44 }).abort();
45 $.ajax({
46 url: '/',
47 error: function() {
48 console.log( "complete", arguments );
50 });
51 return false;
53 </script>
54 </head>
55 <body>
56 <h1>
57 jQuery Network Error Test for Firefox
58 </h1>
59 <div>
60 This is a test page for
61 <a href="http://bugs.jquery.com/ticket/8135">
62 #8135
63 </a>
64 which was reported in Firefox when accessing properties
65 of an XMLHttpRequest object after a network error occured.
66 </div>
67 <div>Take the following steps:</div>
68 <ol>
69 <li>
70 make sure you accessed this page through a web server,
71 </li>
72 <li>
73 stop the web server,
74 </li>
75 <li>
76 open the console,
77 </li>
78 <li>
79 click this
80 <button>button</button>
82 </li>
83 <li>
84 wait for both requests to fail.
85 </li>
86 </ol>
87 <div>
88 Test passes if you get two log lines:
89 <ul>
90 <li>
91 the first starting with "abort",
92 </li>
93 <li>
94 the second starting with "complete",
95 </li>
96 </ul>
97 </div>
98 <div>
99 Test fails if the browser notifies an exception.
100 </div>
101 </body>
102 </html>