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

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: Added the harness test files back 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
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 <script>
16 "use strict"
17 var media = document.getElementById("media");
18 var idl_array = new IdlArray();
19 function doTest(idl) {
20 idl_array.add_idls(idl);
21 idl_array.add_objects({
22 HTMLVideoElement: [media],
23 RemotePlayback: [media.remote]
24 });
25 idl_array.test();
26 }
27
28 promise_test(function() {
29 return fetch("/interfaces/remoteplayback.idl")
30 .then(response => response.text())
31 .then(doTest);
32 }, "Test driver");
33 </script>
34 <div id="log"></div>
35 </body>
36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698