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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/subresource_filter/resource-allowed.html

Issue 2022783002: Skeleton of the Safe Browsing Subresource Filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/http/tests/subresource_filter/resource-allowed.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/subresource_filter/resource-allowed.html b/third_party/WebKit/LayoutTests/http/tests/subresource_filter/resource-allowed.html
new file mode 100644
index 0000000000000000000000000000000000000000..f7493390bc99cbdec909385eb70cd952011964e7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/subresource_filter/resource-allowed.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.setDisallowedSubresourcePathSuffixes(["john.png"]);
+}
+</script>
+</head>
+<body>
+<img src="resources/abe.png" onload="alert(this.width == 76 ? 'PASS.' : 'FAIL: Image has incorrect size.')" onerror="alert('FAIL: Image failed to load.')">
battre 2016/05/30 15:29:26 you have deleted the file abe.png from media/conte
engedy 2016/05/30 20:54:00 Nope, restored. Thanks for spotting this.
+<img src="http://localhost:8000/resources/redirect.php?url=../subresource_filter/resources/abe.png&code=302" onload="alert(this.width == 76 ? 'PASS.' : 'FAIL: Image after redirect has incorrect size.')" onerror="alert('FAIL: Image after redirect failed to load.')">
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698