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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/navigation-preload/resources/chunked-encoding-scope.php

Issue 2735443002: Refactor ServiceWorker tests for inclusion in WPT (Closed)
Patch Set: Upstream service worker nav. preload tests to WPT Created 3 years, 9 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 <?php
2 function put_chunk($txt) {
3 echo sprintf("%x\r\n", strlen($txt));
4 echo "$txt\r\n";
5 }
6 header("Content-type: text/html; charset=UTF-8");
7 header("Transfer-encoding: chunked");
8 for ($i = 0; $i < 10; $i++) {
9 // Call ob_flush(), flush() and usleep() to send the response as multiple
10 // chunks.
11 ob_flush();
12 flush();
13 usleep(1000);
14 put_chunk("$i");
15 }
16 echo "0\r\n\r\n";
17 ?>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698