docs: 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);
          }
      }