Expose Automation Functions in testAPI.as

We expose all of the automation functions that we just added to javascript with the following code in testAPI.as.

You can copy this code from this page or download the source file here.

/**
 * Register all the functions available from javascript
 * @return  true if the functions were properly registered, false otherwise
 */
private function registerTestCallbacks():Boolean {
  var retval:Boolean = false;
  if(ExternalInterface.available==true) {
      ExternalInterface.addCallback("selectByLabel", selectByLabel);
      ExternalInterface.addCallback("clickButton", clickButton);
      ExternalInterface.addCallback("setInputText", setInputText);
      retval = true;
  }
  return retval;
}