function checkIfNoErrorsOccuredOnApp(app, callback) {
  var countPromise = app.callRemoteTestUtil('getErrorCount', null, []);
  countPromise.then(function(count) {
    chrome.test.assertEq(0, count, 'The error count is not 0.');
    callback();
  });
}
/**
 * Verifies if there are no Javascript errors in the given app window by
 * asserting the count returned by the app.getErrorCount remote call.
 * @param {!RemoteCall} app RemoteCall interface to the app window.
 * @param {function()} callback Completion callback.
 */
Verifies if there are no Javascript errors in the given app window by
asserting the count returned by the app.getErrorCount remote call.
@param {!RemoteCall} app RemoteCall interface to the app window.
@param {function()} callback Completion callback.
Verifies if there are no Javascript errors in the given app window by asserting the count returned by the app . getErrorCount remote call . @param { !RemoteCall } app RemoteCall interface to the app window . @param { function () } callback Completion callback .
function checkIfNoErrorsOccuredOnApp(app, callback) {
  var countPromise = app.callRemoteTestUtil('getErrorCount', null, []);
  countPromise.then(function(count) {
    chrome.test.assertEq(0, count, 'The error count is not 0.');
    callback();
  });
}
function checkIfNoErrorsOccuredOnApp ( app , callback ) { var countPromise = app . callRemoteTestUtil ( 'getErrorCount' , null , [ ] ) ; countPromise . then ( function ( count ) { chrome . test . assertEq ( 0 , count , 'The error count is not 0.' ) ; callback ( ) ; } ) ; }
Verifies if there are no Javascript errors in the given app window by
 asserting the count returned by the app.getErrorCount remote call.
Verifies if there are no Javascript errors in the given app window by asserting the count returned by the app . getErrorCount remote call .