Chromium Code Reviews| Index: LayoutTests/http/tests/loading/preload-ignore-invalid-base.html |
| diff --git a/LayoutTests/http/tests/loading/preload-ignore-invalid-base.html b/LayoutTests/http/tests/loading/preload-ignore-invalid-base.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c8c9ff77963aff38415c61a1071ead6db91a2c23 |
| --- /dev/null |
| +++ b/LayoutTests/http/tests/loading/preload-ignore-invalid-base.html |
| @@ -0,0 +1,13 @@ |
| +<!DOCTYPE html> |
| +<script src="/js-test-resources/js-test.js"></script> |
| +<script> |
| +window.fail = false; |
| +</script> |
| +<base href="gopher:???:"></base> |
| +<script src="http://127.0.0.1:8000/resources/slow-script.pl?delay=100"></script> |
| +<!-- The resource should not be read, as the baseUrl is now set to empty from reading invalid url --> |
| +<script src="resources/fail.js"></script> |
| +<script> |
| +shouldBeFalse("internals.isPreloaded('resources/fail.js');"); |
|
Yoav Weiss
2015/04/02 08:10:27
The script testing for isPreloaded should run inli
|
| +shouldBeFalse('window.fail') |
| +</script> |