Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/navigation-preload/resources/chunked-encoding-scope.php |
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/navigation-preload/resources/chunked-encoding-scope.php b/third_party/WebKit/LayoutTests/http/tests/serviceworker/navigation-preload/resources/chunked-encoding-scope.php |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fae4a8d163042d3ad8ad23c5069dda438556cf5b |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/navigation-preload/resources/chunked-encoding-scope.php |
@@ -0,0 +1,17 @@ |
+<?php |
+ function put_chunk($txt) { |
+ echo sprintf("%x\r\n", strlen($txt)); |
+ echo "$txt\r\n"; |
+ } |
+ header("Content-type: text/html; charset=UTF-8"); |
+ header("Transfer-encoding: chunked"); |
+ for ($i = 0; $i < 10; $i++) { |
+ // Call ob_flush(), flush() and usleep() to send the response as multiple |
+ // chunks. |
+ ob_flush(); |
+ flush(); |
+ usleep(1000); |
+ put_chunk("$i"); |
+ } |
+ echo "0\r\n\r\n"; |
+?> |