Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / media / video-referer.html
blob09077f8731ee66ec4e7705959197a21052194a05
1 <html>
2 <head>
3 </head>
4 <body onload="loadCookieAndReferer()">
5 <video id="video">
6 <source id="source">
7 </video>
8 <script src=../../media-resources/video-test.js></script>
9 <script src=../../media-resources/media-file.js></script>
10 <script>
11 function loadCookieAndReferer () {
12 var movie = findMediaFile('video', 'test');
13 var type = mimeTypeForExtension(movie.split('.').pop());
14 var frame = document.createElement('iframe');
15 frame.width = 0;
16 frame.height = 0;
17 frame.addEventListener('load', function () {
18 source = document.getElementById('source');
19 source.src = 'http://127.0.0.1:8000/media/resources/video-referer-check-referer.php?name=' + movie + '&type=' + type;
20 source.type = type;
22 waitForEventAndFail('error');
23 waitForEventAndEnd('canplay');
24 video.load();
25 });
27 frame.src = "data:text/html,<b>test</b>";
28 document.body.appendChild(frame);
30 </script>
31 Tests that the media player will send the relevant referer when requesting the media file.<br/>
32 </body>
33 </html>