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

Unified Diff: LayoutTests/http/tests/linkHeader/link-header-no-crash-valid.php

Issue 889883002: Add a parser for Link headers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Self review + added expectations Created 5 years, 11 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/linkHeader/link-header-no-crash-valid.php
diff --git a/LayoutTests/http/tests/linkHeader/link-header-no-crash-valid.php b/LayoutTests/http/tests/linkHeader/link-header-no-crash-valid.php
new file mode 100644
index 0000000000000000000000000000000000000000..c23fca49e9da945c3b9c6bc7eb1ae6cb66ae3032
--- /dev/null
+++ b/LayoutTests/http/tests/linkHeader/link-header-no-crash-valid.php
@@ -0,0 +1,10 @@
+<?php
+header("Link: </images/cat.jpg>; rel=prefetch");
+?>
+<!DOCTYPE html>
+<html>
+<head>
+<body>
+This test passes if we didn't crash.
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698