third_party/js/mozmill/shared-modules/utils.js
function checkSearchField(controller, searchField,
                                                     searchTerm, submitButton,
                                                     timeout) {
  controller.waitThenClick(searchField, timeout);
  controller.type(searchField, searchTerm);

  if (submitButton != undefined) {
    controller.waitThenClick(submitButton, timeout);
  }
}
function checkSearchField(controller, searchField,
                                                     searchTerm, submitButton,
                                                     timeout) {
  controller.waitThenClick(searchField, timeout);
  controller.type(searchField, searchTerm);

  if (submitButton != undefined) {
    controller.waitThenClick(submitButton, timeout);
  }
}
function checkSearchField ( controller , searchField , searchTerm , submitButton , timeout ) { controller . waitThenClick ( searchField , timeout ) ; controller . type ( searchField , searchTerm ) ; if ( submitButton != undefined ) { controller . waitThenClick ( submitButton , timeout ) ; } }
Run tests against a given search form

@param {MozMillController} controller
MozMillController of the window to operate on
@param {ElemBase} searchField
The HTML input form element to test
@param {string} searchTerm
The search term for the test
@param {ElemBase} submitButton
(Optional) The forms submit button
@param {number} timeout
The timeout value for the single tests
Run tests against a given search form