code: function (segment, delay){
  
          var actualDelay = (typeof segment == "number" ? segment : delay);
          actualDelay = (typeof actualDelay == "number" ? actualDelay : 10000);
  
  		if (typeof segment == "function"){
              throw new YUITest.Wait(segment, actualDelay);
          } else {
              throw new YUITest.Wait(function(){
                  YUITest.Assert.fail("Timeout: wait() called but resume() never called.");
              }, actualDelay);
          }
      }
docs: Causes the test case to wait a specified amount of time and then
  continue executing the given code.
  @param {Function} segment (Optional) The function to run after the delay.
  If omitted, the TestRunner will wait until resume() is called.
  @param {int} delay (Optional) The number of milliseconds to wait before running
  the function. If omitted, defaults to zero.
  @return {Void}
  @method wait