function runTest() {
  var guestUrl = '/extensions/autoplay_iframe/frame.html';

  var iframe = document.querySelector('iframe');
  iframe.addEventListener('load', function() {
    window.addEventListener('message', (e) => {
      window.domAutomationController.send(
          ('autoplayed' == e.data || 'NotSupportedError' == e.data));
    }, {once: true});

    iframe.contentWindow.postMessage('start', '*');
  }, {once: true});

  iframe.src = guestUrl;
}
// found in the LICENSE file.
found in the LICENSE file.
found in the LICENSE file .
function runTest() {
  var guestUrl = '/extensions/autoplay_iframe/frame.html';
  var iframe = document.querySelector('iframe');
  iframe.addEventListener('load', function() {
    window.addEventListener('message', (e) => {
      window.domAutomationController.send(
          ('autoplayed' == e.data || 'NotSupportedError' == e.data));
    }, {once: true});
    iframe.contentWindow.postMessage('start', '*');
  }, {once: true});
  iframe.src = guestUrl;
}
function runTest ( ) { var guestUrl = '/extensions/autoplay_iframe/frame.html' ; var iframe = document . querySelector ( 'iframe' ) ; iframe . addEventListener ( 'load' , function ( ) { window . addEventListener ( 'message' , ( e ) => { window . domAutomationController . send ( ( 'autoplayed' == e . data || 'NotSupportedError' == e . data ) ) ; } , { once : true } ) ; iframe . contentWindow . postMessage ( 'start' , '*' ) ; } , { once : true } ) ; iframe . src = guestUrl ; }
found in the LICENSE file.
found in the LICENSE file .