Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/http/tests/subresource_filter/resource-disallowed.html |
| diff --git a/third_party/WebKit/LayoutTests/http/tests/subresource_filter/resource-disallowed.html b/third_party/WebKit/LayoutTests/http/tests/subresource_filter/resource-disallowed.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3a795be3b1844f18ebaa23b01880cef60a3cfaef |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/http/tests/subresource_filter/resource-disallowed.html |
| @@ -0,0 +1,14 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<head> |
| +<script> |
| +if (window.testRunner) { |
| + testRunner.dumpAsText(); |
| + testRunner.setDisallowedSubresourcePathSuffixes(["abe.png"]); |
| +} |
| +</script> |
| +</head> |
| +<body> |
| +<img src="resources/abe.png" onload="alert('FAIL: Load should have been disallowed.')" onerror="alert('PASS.')"> |
| +</body> |
| +</html> |