Chromium Code Reviews| Index: LayoutTests/http/tests/inspector/timeline-xhr-response-type-blob-event.html |
| diff --git a/LayoutTests/http/tests/inspector/timeline-xhr-response-type-blob-event.html b/LayoutTests/http/tests/inspector/timeline-xhr-response-type-blob-event.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..caa8bee191e70e9661eba71ba1c548043120eb1b |
| --- /dev/null |
| +++ b/LayoutTests/http/tests/inspector/timeline-xhr-response-type-blob-event.html |
| @@ -0,0 +1,47 @@ |
| +<html> |
| +<head> |
| +<script src="inspector-test.js"></script> |
| +<script src="timeline-test.js"></script> |
| +<script src="network-test.js"></script> |
| +<script> |
| + |
| +function performActions() |
| +{ |
| + var xhr = new XMLHttpRequest(); |
| + xhr.responseType = 'blob'; |
|
caseq
2013/09/25 15:33:31
nit: we use double quotes on strings by default.
yusukesuzuki
2013/09/25 16:26:16
Done.
|
| + xhr.open('GET', 'network/resources/resource.php', true); |
| + xhr.onload = function () { }; // This is necessary for XHRLoad event. |
| + xhr.onreadystatechange = function () { }; // This is necessary for XHRReadyStateChange event. |
| + xhr.send(null); |
| +} |
| + |
| +function test() |
| +{ |
| + InspectorTest.resetInspectorResourcesData(step1); |
| + function step1() |
| + { |
| + InspectorTest.startTimeline(function() { |
| + InspectorTest.evaluateInPage("performActions()"); |
| + }); |
| + |
| + InspectorTest.waitForRecordType("XHRLoad", finish); |
| + |
| + function finish() |
| + { |
| + InspectorTest.printTimelineRecords("XHRReadyStateChange"); |
| + InspectorTest.printTimelineRecords("XHRLoad"); |
| + InspectorTest.completeTest(); |
| + } |
| + } |
| +} |
| + |
| +</script> |
| +</head> |
| + |
| +<body onload="runTest()"> |
| +<p> |
| +Tests the Timeline events for XMLHttpReqeust with responseType='blob' |
| +</p> |
| + |
| +</body> |
| +</html> |