function videoOpen(path) {
  var appId;
  StepsRunner.run([
    function() {
      setupAndWaitUntilReady(null, path, this.next);
    },
    function(results) {
      appId = results.windowId;
      // Select the song.
      remoteCall.callRemoteTestUtil(
          'openFile', appId, ['world.ogv'], this.next);
    },
    function(result) {
      chrome.test.assertTrue(result);
      // Wait for the video player.
      waitForPlaying('world.ogv').then(this.next);
    },
    function(result) {
      chrome.test.assertTrue(result);
      remoteCall.callRemoteTestUtil(
          'getErrorCount', null, [], this.next);
    },
    function(errorCount) {
      chrome.test.assertEq(errorCount, 0);
      videoPlayerApp.callRemoteTestUtil(
          'getErrorCount', null, [], this.next);
    },
    function(errorCount) {
      chrome.test.assertEq(errorCount, 0);
      checkIfNoErrorsOccured(this.next);
    }
  ]);
}
/**
 * Tests if the video player shows up for the selected movie and that it is
 * loaded successfully.
 *
 * @param {string} path Directory path to be tested.
 */
Tests if the video player shows up for the selected movie and that it is
loaded successfully.

@param {string} path Directory path to be tested.
Tests if the video player shows up for the selected movie and that it is loaded successfully . @param { string } path Directory path to be tested .
function videoOpen(path) {
  var appId;
  StepsRunner.run([
    function() {
      setupAndWaitUntilReady(null, path, this.next);
    },
    function(results) {
      appId = results.windowId;
      remoteCall.callRemoteTestUtil(
          'openFile', appId, ['world.ogv'], this.next);
    },
    function(result) {
      chrome.test.assertTrue(result);
      waitForPlaying('world.ogv').then(this.next);
    },
    function(result) {
      chrome.test.assertTrue(result);
      remoteCall.callRemoteTestUtil(
          'getErrorCount', null, [], this.next);
    },
    function(errorCount) {
      chrome.test.assertEq(errorCount, 0);
      videoPlayerApp.callRemoteTestUtil(
          'getErrorCount', null, [], this.next);
    },
    function(errorCount) {
      chrome.test.assertEq(errorCount, 0);
      checkIfNoErrorsOccured(this.next);
    }
  ]);
}
function videoOpen ( path ) { var appId ; StepsRunner . run ( [ function ( ) { setupAndWaitUntilReady ( null , path , this . next ) ; } , function ( results ) { appId = results . windowId ; remoteCall . callRemoteTestUtil ( 'openFile' , appId , [ 'world.ogv' ] , this . next ) ; } , function ( result ) { chrome . test . assertTrue ( result ) ; waitForPlaying ( 'world.ogv' ) . then ( this . next ) ; } , function ( result ) { chrome . test . assertTrue ( result ) ; remoteCall . callRemoteTestUtil ( 'getErrorCount' , null , [ ] , this . next ) ; } , function ( errorCount ) { chrome . test . assertEq ( errorCount , 0 ) ; videoPlayerApp . callRemoteTestUtil ( 'getErrorCount' , null , [ ] , this . next ) ; } , function ( errorCount ) { chrome . test . assertEq ( errorCount , 0 ) ; checkIfNoErrorsOccured ( this . next ) ; } ] ) ; }
Tests if the video player shows up for the selected movie and that it is
 loaded successfully.
Tests if the video player shows up for the selected movie and that it is loaded successfully .
// Select the song. // Wait for the video player.