Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/preload/preload-video-cors.html

Issue 2476943002: Ensure video poster preloads use the crossorigin attribute (Closed)
Patch Set: add tests Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4 <script>
5 var t = async_test("Ensure preloads use video poster crossorigin value");
6 window.addEventListener('load', t.step_func(function() {
7 var entries = performance.getEntriesByName("http://localhost:8080/security /resources/image-access-control.php?file=../../resources/square100.png&allow=fal se");
8 assert_equals(entries.length, 0, "100.png should not be loaded");
9
10 entries = performance.getEntriesByName("http://localhost:8080/security/res ources/image-access-control.php?file=../../resources/square200.png&allow=true");
11 assert_equals(entries.length, 1, "200.png should load successfully once, a s the server is using Access-Control-Allow-Origin: *");
12
13 entries = performance.getEntriesByName("http://localhost:8080/security/res ources/image-access-control.php?file=../../resources/square20.png&allow=false");
14 assert_equals(entries.length, 1, "20.png should load successfully once, as it is loaded with no-cors");
15 t.done();
16 }));
17 </script>
18 <video poster="http://localhost:8080/security/resources/image-access-control.php ?file=../../resources/square100.png&allow=false" crossorigin>
19 </video>
20
21 <video poster="http://localhost:8080/security/resources/image-access-control.php ?file=../../resources/square200.png&allow=true" crossorigin>
22 </video>
23
24 <video poster="http://localhost:8080/security/resources/image-access-control.php ?file=../../resources/square20.png&allow=false">
25 </video>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698