function waitForPlaying(filename) {
  var caller = getCaller();
  return repeatUntil(function() {
    return videoPlayerApp.callRemoteTestUtil('isPlaying',
                                             null,
                                             [filename]).
        then(function(result) {
          if (result)
            return true;
          return pending(
              caller, 'Window with the prefix %s is not found.', filename);
        });
  });
}
/**
 * Waits until a window having the given filename appears.
 * @param {string} filename Filename of the requested window.
 * @param {Promise} promise Promise to be fulfilled with a found window's ID.
 */
Waits until a window having the given filename appears.
@param {string} filename Filename of the requested window.
@param {Promise} promise Promise to be fulfilled with a found window's ID.
Waits until a window having the given filename appears . @param { string } filename Filename of the requested window . @param { Promise } promise Promise to be fulfilled with a found window ' s ID .
function waitForPlaying(filename) {
  var caller = getCaller();
  return repeatUntil(function() {
    return videoPlayerApp.callRemoteTestUtil('isPlaying',
                                             null,
                                             [filename]).
        then(function(result) {
          if (result)
            return true;
          return pending(
              caller, 'Window with the prefix %s is not found.', filename);
        });
  });
}
function waitForPlaying ( filename ) { var caller = getCaller ( ) ; return repeatUntil ( function ( ) { return videoPlayerApp . callRemoteTestUtil ( 'isPlaying' , null , [ filename ] ) . then ( function ( result ) { if ( result ) return true ; return pending ( caller , 'Window with the prefix %s is not found.' , filename ) ; } ) ; } ) ; }
Waits until a window having the given filename appears.
Waits until a window having the given filename appears .