Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Side by Side Diff: LayoutTests/http/tests/inspector/network/network-xhr-response-received-async-response-type-blob.html

Issue 23444058: Use downloadToFile option when XHR downloads a Blob (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698