API Docs for: 3.17.2
Show:

File: test/js/Wait.js

  1.  
  2. /**
  3. * Represents a stoppage in test execution to wait for an amount of time before
  4. * continuing.
  5. * @param {Function} segment A function to run when the wait is over.
  6. * @param {Number} delay The number of milliseconds to wait before running the code.
  7. * @module test
  8. * @class Wait
  9. * @namespace Test
  10. * @constructor
  11. *
  12. */
  13. YUITest.Wait = function (segment, delay) {
  14.  
  15. /**
  16. * The segment of code to run when the wait is over.
  17. * @type Function
  18. * @property segment
  19. */
  20. this.segment = (typeof segment == "function" ? segment : null);
  21.  
  22. /**
  23. * The delay before running the segment of code.
  24. * @type int
  25. * @property delay
  26. */
  27. this.delay = (typeof delay == "number" ? delay : 0);
  28. };
  29.