OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="inspector-test.js"></script> | 3 <script src="../inspector-test.js"></script> |
4 <script src="timeline-test.js"></script> | 4 <script src="../timeline-test.js"></script> |
5 <script src="network-test.js"></script> | 5 <script src="../network-test.js"></script> |
6 <script> | 6 <script> |
7 | 7 |
8 function performActions(callback) | 8 function performActions(callback) |
9 { | 9 { |
10 var xhr = new XMLHttpRequest(); | 10 var xhr = new XMLHttpRequest(); |
11 xhr.open("GET", "network/resources/resource.php", true); | 11 xhr.open("GET", "network/resources/resource.php", true); |
12 xhr.onload = callback; // This is necessary for XHRLoad event. | 12 xhr.onload = callback; // This is necessary for XHRLoad event. |
13 xhr.onreadystatechange = function () { }; // This is necessary for XHRReady
StateChange event. | 13 xhr.onreadystatechange = function () { }; // This is necessary for XHRReady
StateChange event. |
14 xhr.send(null); | 14 xhr.send(null); |
15 } | 15 } |
(...skipping 17 matching lines...) Expand all Loading... |
33 </script> | 33 </script> |
34 </head> | 34 </head> |
35 | 35 |
36 <body onload="runTest()"> | 36 <body onload="runTest()"> |
37 <p> | 37 <p> |
38 Tests the Timeline events for XMLHttpReqeust | 38 Tests the Timeline events for XMLHttpReqeust |
39 </p> | 39 </p> |
40 | 40 |
41 </body> | 41 </body> |
42 </html> | 42 </html> |
OLD | NEW |