OLD | NEW |
---|---|
(Empty) | |
1 <html> | |
2 <head> | |
3 <script src="/js-test-resources/js-test.js"></script> | |
4 </head> | |
5 <body> | |
6 <script> | |
7 description('onload event must be invoked for failed revalidation.'); | |
8 | |
9 window.jsTestIsAsync = true; | |
10 | |
11 var url = '../cache/resources/etag-200.php?' + Math.floor(100000000 * Math.rand om()); | |
yhirano
2016/08/09 09:35:58
const
hiroshige
2016/08/10 06:03:08
Done.
| |
12 | |
13 xhr1 = new XMLHttpRequest(); | |
yhirano
2016/08/09 09:35:58
const
hiroshige
2016/08/10 06:03:07
Done.
| |
14 xhr1.onload = function() { | |
15 debug('onload for the 1st request'); | |
16 shouldBeEqualToNumber("xhr1.status", 200); | |
yhirano
2016/08/09 09:35:58
indent
hiroshige
2016/08/10 06:03:07
Done.
| |
17 | |
18 xhr2 = new XMLHttpRequest(); | |
yhirano
2016/08/09 09:35:58
const
hiroshige
2016/08/10 06:03:08
Done.
| |
19 xhr2.onload = function() { | |
20 debug('onload for the 2nd request'); | |
21 shouldBeEqualToNumber("xhr2.status", 200); | |
22 finishJSTest(); | |
23 }; | |
24 xhr2.open("GET", url, true); | |
25 xhr2.send(); | |
26 }; | |
27 | |
28 xhr1.open("GET", url, true); | |
29 xhr1.send(); | |
30 </script> | |
31 </body> | |
32 </html> | |
OLD | NEW |