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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/remote-playback/idlharness.html

Issue 2862423002: [RemotePlayback] Added IDL harness WebPlatform test for RemotePlayback API. (Closed)
Patch Set: Fixed the tests Created 3 years, 7 months 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 | « third_party/WebKit/LayoutTests/external/wpt/interfaces/remoteplayback.idl ('k') | no next file » | 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 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>Remote Playback API IDL tests</title>
6 <link rel="help" href="https://w3c.github.io/remoteplayback/"/>
7 <script src="/resources/testharness.js"></script>
8 <script src="/resources/testharnessreport.js"></script>
9 <script src="/resources/WebIDLParser.js"></script>
10 <script src="/resources/idlharness.js"></script>
11 </head>
12 <body>
13 <h1>Remote Playback API IDL tests</h1>
14 <video id='media' width=10 height=10></video>
15 <pre id='untested_idl' style='display:none'>
16 interface EventHandler {};
17 interface HTMLMediaElement : HTMLElement {};
18 interface EventTarget {};
19 </pre>
20 <script>
21 "use strict"
22 var idl_array = new IdlArray();
23 function doTest(idl) {
24 idl_array.add_untested_idls(document.getElementById("untested_idl").textConten t);
25 idl_array.add_idls(idl);
26 idl_array.add_objects({
27 HTMLVideoElement: [document.getElementById("media")],
28 RemotePlayback: [document.getElementById("media").remote]
29 });
30 idl_array.test();
31 }
32
33 promise_test(function() {
34 return fetch("/interfaces/remoteplayback.idl")
35 .then(response => response.text())
36 .then(doTest);
37 }, "Test driver");
38 </script>
39 <div id="log"></div>
40 </body>
41 </html>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/external/wpt/interfaces/remoteplayback.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698