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

Unified Diff: LayoutTests/http/tests/serviceworker/chromium/resources/service-worker-mixed-response.php

Issue 1226473002: Add LayoutTests for mixed range response handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: incorporated falken's comment and refactored Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/serviceworker/chromium/resources/service-worker-mixed-response.php
diff --git a/LayoutTests/http/tests/serviceworker/chromium/resources/service-worker-mixed-response.php b/LayoutTests/http/tests/serviceworker/chromium/resources/service-worker-mixed-response.php
new file mode 100644
index 0000000000000000000000000000000000000000..d370907775e23a7887257d5e8cf341782e5c1eb5
--- /dev/null
+++ b/LayoutTests/http/tests/serviceworker/chromium/resources/service-worker-mixed-response.php
@@ -0,0 +1,8 @@
+<?php
+$position = $_GET["position"];
+header('HTTP/1.0 206 Partial Content');
+header('Content-Type: audio/ogg');
+header('Content-Range: bytes ' . $position . '-' . $position . '/12983');
falken 2015/07/07 03:23:10 does it make sense to comment what 12983 is from
horo 2015/07/07 10:08:11 Done.
+header('Access-Control-Allow-Origin: *');
+echo substr('Ogg', $position, 1);
+?>

Powered by Google App Engine
This is Rietveld 408576698