lib/commands/page.js
function (expected, hash, title) {
    var deferred = Q.defer();
    this.events.emit('driver:message', {key: 'title', expected: expected, hash: hash, value: JSON.parse(title).value});
    deferred.resolve();
    return deferred.promise;
  }
function (expected, hash, title) {
    var deferred = Q.defer();
    this.events.emit('driver:message', {key: 'title', expected: expected, hash: hash, value: JSON.parse(title).value});
    deferred.resolve();
    return deferred.promise;
  }
function ( expected , hash , title ) { var deferred = Q . defer ( ) ; this . events . emit ( 'driver:message' , { key : 'title' , expected : expected , hash : hash , value : JSON . parse ( title ) . value } ) ; deferred . resolve ( ) ; return deferred . promise ; }
Sends out an event with the results of the `title` call

@method _titleCb
@param {string} expected Expected page title
@param {string} hash Unique hash of that fn call
@param {string} title Serialized JSON with the results of the title call
@return {object} promise Title promise
@private
Sends out an event with the results of the title call