Lines Matching refs:segment
274 * @param {Function} segment (Optional) The function to run.
279 resume : function (segment) {
280 YUITest.TestRunner.resume(segment);
286 * @param {Function} segment (Optional) The function to run after the delay.
293 wait : function (segment, delay){
295 var actualDelay = (typeof segment == "number" ? segment : delay);
298 if (typeof segment == "function"){
299 throw new YUITest.Wait(segment, actualDelay);
1347 _resumeTest : function (segment) {
1385 segment.call(testCase, this._context);
1416 if (typeof thrown.segment == "function"){
1422 YUITest.TestRunner._resumeTest(thrown.segment);
1736 * @param {Function} segment The function to run as the rest
1742 resume : function (segment) {
1744 this._resumeTest(segment || function(){});
3524 * @param {Function} segment A function to run when the wait is over.
3531 YUITest.Wait = function (segment, delay) {
3534 * The segment of code to run when the wait is over.
3536 * @property segment
3538 this.segment = (typeof segment == "function" ? segment : null);
3541 * The delay before running the segment of code.