idlharness.window.js (682B)
1 // META: script=/resources/WebIDLParser.js 2 // META: script=/resources/idlharness.js 3 // META: script=/common/media.js 4 // META: timeout=long 5 6 'use strict'; 7 8 // https://w3c.github.io/remoteplayback/ 9 10 idl_test( 11 ['remote-playback'], 12 ['html', 'dom'], 13 idl_array => { 14 try { 15 const media = document.createElement('video'); 16 media.src = getVideoURI('/media/movie_5'); 17 media.width = media.height = 10; 18 document.body.appendChild(media); 19 self.media = media; 20 } catch (e) { 21 // Will be surfaced when media is undefined below. 22 } 23 24 idl_array.add_objects({ 25 HTMLVideoElement: ['media'], 26 RemotePlayback: ['media.remote'] 27 }); 28 } 29 );