Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/http/tests/subresource_filter/resource-in-import-disallowed.html |
| diff --git a/third_party/WebKit/LayoutTests/http/tests/subresource_filter/resource-in-import-disallowed.html b/third_party/WebKit/LayoutTests/http/tests/subresource_filter/resource-in-import-disallowed.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..10e47b9fe1f26e2b317dc0e56421d117401e6dca |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/http/tests/subresource_filter/resource-in-import-disallowed.html |
| @@ -0,0 +1,23 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<head> |
| +<script src="../resources/testharness.js"></script> |
| +<script src="../resources/testharnessreport.js"></script> |
| +</head> |
| +<body> |
| +<script type="text/javascript"> |
| +if (window.testRunner) { |
| + testRunner.setDisallowedSubresourcePathSuffixes(["included-script.js"]); |
|
Mike West
2016/06/03 13:48:51
Ditto.
engedy
2016/06/06 13:36:00
Done.
|
| +} |
| + |
| +async_test(t => { |
| + window.onload = t.step_func_done(_ => { |
|
Mike West
2016/06/03 13:48:51
Do imports actually block `onload`? I'm not sure t
engedy
2016/06/06 13:36:00
If I understand the spec correctly in 7.3, then ye
|
| + assert_true(!!document.scriptFailed, "The script should fail."); |
| + assert_false(!!document.scriptLoaded, "The script should not load."); |
| + assert_false(!!document.scriptExecuted, "The script should not run."); |
| + }); |
| +}, "Resources in import documents are also filtered."); |
| +</script> |
| +<link rel="import" href="resources/include-script.html"> |
| +</body> |
| +</html> |