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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/navigation-preload/resources/resource-timing-scope.py

Issue 2837943006: [WIP] Support PerformanceResourceTiming for Service Worker Navigation Preload (Closed)
Patch Set: clean up Created 3 years, 8 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: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/navigation-preload/resources/resource-timing-scope.py
diff --git a/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/navigation-preload/resources/resource-timing-scope.py b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/navigation-preload/resources/resource-timing-scope.py
new file mode 100644
index 0000000000000000000000000000000000000000..a4fbd98b631445dd4c47e68b86001eebe712158a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/navigation-preload/resources/resource-timing-scope.py
@@ -0,0 +1,13 @@
+import zlib
+
+def main(request, response):
+ content = "This is Navigation Preload Resource Timing test."
+ output = zlib.compress(content, 9)
+
+ headers = [("Content-type", "text/plain"),
+ ("Content-Encoding", "deflate"),
+ ("X-Decoded-Body-Size", len(content)),
+ ("X-Encoded-Body-Size", len(output)),
+ ("Content-Length", len(output))]
+
+ return headers, output

Powered by Google App Engine
This is Rietveld 408576698