B2G/gecko/testing/marionette/marionette-server.js
/**
   * Gets the current title of the window
   */
Gets the current title of the window
Gets the current title of the window
function MDA_getTitle() {
    this.command_id = this.getCommandId();
    if (this.context == "chrome"){
      var curWindow = this.getCurrentWindow();
      var title = curWindow.document.documentElement.getAttribute('title');
      this.sendResponse(title, this.command_id);
    }
    else {
      this.sendAsync("getTitle", {}, this.command_id);
    }
  }
function MDA_getTitle ( ) { this . command_id = this . getCommandId ( ) ; if ( this . context == "chrome" ) { var curWindow = this . getCurrentWindow ( ) ; var title = curWindow . document . documentElement . getAttribute ( 'title' ) ; this . sendResponse ( title , this . command_id ) ; } else { this . sendAsync ( "getTitle" , { } , this . command_id ) ; } }
Gets the current title of the window
Gets the current title of the window