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?' + Math.floor(100000000 * Math.random()) ; | |
yhirano
2016/08/10 06:13:50
nit optional; If you want to wrap lines in 80 cols
hiroshige
2016/08/23 10:35:07
Done.
| |
8 const xhr1 = new XMLHttpRequest(); | |
9 xhr1.onload = function() { | |
10 assert_equals(xhr1.status, 200); | |
11 | |
12 const xhr2 = new XMLHttpRequest(); | |
13 xhr2.onload = function() { | |
14 assert_equals(xhr2.status, 200); | |
15 t.done(); | |
16 }; | |
17 xhr2.open("GET", url, true); | |
18 xhr2.send(); | |
19 }; | |
20 | |
21 xhr1.open("GET", url, true); | |
22 xhr1.send(); | |
23 }, "onload event must be invoked for failed revalidation when XHR's " + | |
24 "onload handler initiates a new XHR to the same URL."); | |
25 </script> | |
26 </head> | |
OLD | NEW |