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

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

Issue 889883002: Add a parser for Link headers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: proper expected files. Less polluting tests 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/linkHeader/link-header-no-crash-empty-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/linkHeader/link-header-no-crash-empty.php
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/sandbox-invalid-header.html b/LayoutTests/http/tests/linkHeader/link-header-no-crash-empty.php
similarity index 56%
copy from LayoutTests/http/tests/security/contentSecurityPolicy/sandbox-invalid-header.html
copy to LayoutTests/http/tests/linkHeader/link-header-no-crash-empty.php
index 61e070ef474181826824ee4a11083eb4f2089355..63c83b912036c5a03b8ebedbcdf2d3be1bf77ea9 100644
--- a/LayoutTests/http/tests/security/contentSecurityPolicy/sandbox-invalid-header.html
+++ b/LayoutTests/http/tests/linkHeader/link-header-no-crash-empty.php
@@ -1,6 +1,9 @@
+<?php
+header("Link:");
+?>
<!DOCTYPE html>
-<iframe src="resources/sandbox.php?sandbox=allowScript"></iframe>
<script>
if (window.testRunner)
testRunner.dumpAsText();
</script>
+This test passes if we didn't crash.
« no previous file with comments | « no previous file | LayoutTests/http/tests/linkHeader/link-header-no-crash-empty-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698