OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script src="../resources/testharness.js"></script> |
| 4 <script src="../resources/testharnessreport.js"></script> |
| 5 <script> |
| 6 async_test(function(t) { |
| 7 const url = 'resources/etag-200.php?' + |
| 8 Math.floor(100000000 * Math.random()); |
| 9 const xhr1 = new XMLHttpRequest(); |
| 10 xhr1.onload = function() { |
| 11 assert_equals(xhr1.status, 200); |
| 12 |
| 13 const xhr2 = new XMLHttpRequest(); |
| 14 xhr2.onload = function() { |
| 15 assert_equals(xhr2.status, 200); |
| 16 t.done(); |
| 17 }; |
| 18 xhr2.open("GET", url, true); |
| 19 xhr2.send(); |
| 20 }; |
| 21 |
| 22 xhr1.open("GET", url, true); |
| 23 xhr1.send(); |
| 24 }, "onload event must be invoked for failed revalidation when XHR's " + |
| 25 "onload handler initiates a new XHR to the same URL."); |
| 26 </script> |
| 27 </head> |
OLD | NEW |