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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/encrypted-media/clearkey-mp4-playback-temporary-setMediaKeys-after-update.html

Issue 2546853003: Add W3C encrypted-media tests (Closed)
Patch Set: rebase now that content files landed Created 4 years 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
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <meta charset=utf-8>
5 <title>Encrypted Media Extensions: Successful Playback, Temporary session wi th Clear Key, mp4</title>
6 <link rel="help" href="https://w3c.github.io/encrypted-media/">
7
8 <!-- Web Platform Test Harness scripts -->
9 <script src=/resources/testharness.js></script>
10 <script src=/resources/testharnessreport.js></script>
11
12 <!-- Helper scripts for Encrypted Media Extensions tests -->
13 <script src=/encrypted-media/util/utils.js></script>
14 <script src=/encrypted-media/util/fetch.js></script>
15 <script src=/encrypted-media/util/testmediasource.js></script>
16 <script src=/encrypted-media/util/utf8.js></script>
17
18 <!-- Content metadata -->
19 <script src=/encrypted-media/content/content-metadata.js></script>
20
21 <!-- Message handler for Clear Key keysystem -->
22 <script src=/encrypted-media/util/clearkey-messagehandler.js></script>
23
24 <!-- The script for this specific test -->
25 <script src=/encrypted-media/scripts/playback-temporary-setMediaKeys.js></sc ript>
26
27 </head>
28 <body>
29 <div id='log'></div>
30
31 <div id='video'>
32 <video id="videoelement" width="200px"></video>
33 </div>
34
35 <script>
36 var contentitem = content['mp4-basic'],
37 handler = new MessageHandler( 'org.w3.clearkey', contentitem ),
38 config = { video: document.getElementById('videoelemen t'),
39 keysystem: 'org.w3.clearkey',
40 messagehandler: handler.messagehandler,
41 audioPath: contentitem.audio.path,
42 videoPath: contentitem.video.path,
43 audioType: contentitem.audio.type,
44 videoType: contentitem.video.type,
45 initDataType: 'keyids',
46 initData: getInitData(contentitem,'keyids'),
47 testcase: SETMEDIAKEYS_AFTER_UPDATE };
48
49 runTest(config);
50 </script>
51 </body>
52 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698