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

Unified Diff: LayoutTests/http/tests/inspector/timeline-xhr-event.html

Issue 23444058: Use downloadToFile option when XHR downloads a Blob (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase test style and XHR Created 7 years 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/inspector/timeline-xhr-event.html
diff --git a/LayoutTests/http/tests/inspector/timeline-xhr-event.html b/LayoutTests/http/tests/inspector/timeline-xhr-event.html
new file mode 100644
index 0000000000000000000000000000000000000000..b1fc671658cb9809e1169f2c27fd1deafd361727
--- /dev/null
+++ b/LayoutTests/http/tests/inspector/timeline-xhr-event.html
@@ -0,0 +1,46 @@
+<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.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
+</p>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698