| Index: third_party/WebKit/LayoutTests/http/tests/preload/preload-video-cors.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/preload/preload-video-cors.html b/third_party/WebKit/LayoutTests/http/tests/preload/preload-video-cors.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cac573b47080a3cf801f89664f148a505763143c
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/preload/preload-video-cors.html
|
| @@ -0,0 +1,25 @@
|
| +<!DOCTYPE html>
|
| +<script src="../resources/testharness.js"></script>
|
| +<script src="../resources/testharnessreport.js"></script>
|
| +<script>
|
| + var t = async_test("Ensure preloads use video poster crossorigin value");
|
| + window.addEventListener('load', t.step_func(function() {
|
| + var entries = performance.getEntriesByName("http://localhost:8080/security/resources/image-access-control.php?file=../../resources/square100.png&allow=false");
|
| + assert_equals(entries.length, 0, "100.png should not be loaded");
|
| +
|
| + entries = performance.getEntriesByName("http://localhost:8080/security/resources/image-access-control.php?file=../../resources/square200.png&allow=true");
|
| + assert_equals(entries.length, 1, "200.png should load successfully once, as the server is using Access-Control-Allow-Origin: *");
|
| +
|
| + entries = performance.getEntriesByName("http://localhost:8080/security/resources/image-access-control.php?file=../../resources/square20.png&allow=false");
|
| + assert_equals(entries.length, 1, "20.png should load successfully once, as it is loaded with no-cors");
|
| + t.done();
|
| + }));
|
| +</script>
|
| +<video poster="http://localhost:8080/security/resources/image-access-control.php?file=../../resources/square100.png&allow=false" crossorigin>
|
| +</video>
|
| +
|
| +<video poster="http://localhost:8080/security/resources/image-access-control.php?file=../../resources/square200.png&allow=true" crossorigin>
|
| +</video>
|
| +
|
| +<video poster="http://localhost:8080/security/resources/image-access-control.php?file=../../resources/square20.png&allow=false">
|
| +</video>
|
|
|