OLD | NEW |
---|---|
(Empty) | |
1 <html> | |
vsevik
2013/09/24 13:43:17
Same here.
yusukesuzuki
2013/09/25 01:43:05
We can remove this test since the same didReceiveR
yusukesuzuki
2013/09/25 16:26:16
Done.
| |
2 <head> | |
3 <script src="../inspector-test.js"></script> | |
4 <script src="../network-test.js"></script> | |
5 <script> | |
6 | |
7 function test() | |
8 { | |
9 InspectorTest.addSniffer(WebInspector.NetworkDispatcher.prototype, "response Received", responseReceived); | |
10 InspectorTest.resetInspectorResourcesData(start); | |
11 | |
12 function start() | |
13 { | |
14 InspectorTest.makeXHR("GET", "resources/resource.php", true, undefined, undefined, [], false, undefined, 'blob', function () { }); | |
15 } | |
16 | |
17 function responseReceived(requestId, frameId, loaderId, time, resourceType, response) | |
18 { | |
19 var request = WebInspector.networkLog.requestForId(requestId); | |
20 if (/resource\.php/.exec(request.url)) { | |
21 InspectorTest.addResult("Received response for resource.php"); | |
22 InspectorTest.assertEquals('XHR', resourceType, 'resourceType should be XHR'); | |
23 InspectorTest.addResult("SUCCESS"); | |
24 InspectorTest.completeTest(); | |
25 } | |
26 } | |
27 } | |
28 </script> | |
29 </head> | |
30 <body onload="runTest()"> | |
31 <p>Tests that responseReceived is called on NetworkDispatcher for XHR with respo nseType='blob'.</p> | |
32 </body> | |
33 </html> | |
OLD | NEW |