Chromium Code Reviews| 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.')"> |
|
Mike West
2016/06/01 13:43:18
Nit: Please write each of these tests in terms of
engedy
2016/06/02 23:07:19
Done, thanks. I also replaced the image resource
|
| +<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> |