YUI recommends YUI 3.

YUI 2 has been deprecated since 2011. This site acts as an archive for files and documentation.

Yahoo! UI Library

yuitest  2.9.0

Yahoo! UI Library > yuitest > YAHOO.tool.TestCase.Wait
Search:
 
Filters

Class YAHOO.tool.TestCase.Wait

Represents a stoppage in test execution to wait for an amount of time before continuing.

Constructor

YAHOO.tool.TestCase.Wait ( segment , delay )
Parameters:
segment <Function> A function to run when the wait is over.
delay <int> The number of milliseconds to wait before running the code.

Properties

delay - int

The delay before running the segment of code.

segment - Function

The segment of code to run when the wait is over.

Methods

JSON

static String JSON ( result )
Returns test results formatted as a JSON string. Requires JSON utility.
Parameters:
result <Object> The results object created by TestRunner.
Returns: String
An XML-formatted string of results.

JUnitXML

static String JUnitXML ( result )
Returns test results formatted in JUnit XML format.
Parameters:
result <Object> The results object created by TestRunner.
Returns: String
An XML-formatted string of results.

TAP

static String TAP ( result )
Returns test results formatted in TAP format. For more information, see Test Anything Protocol.
Parameters:
result <Object> The results object created by TestRunner.
Returns: String
A TAP-formatted string of results.

XML

static String XML ( result )
Returns test results formatted as an XML string.
Parameters:
result <Object> The results object created by TestRunner.
Returns: String
An XML-formatted string of results.


Copyright © 2011 Yahoo! Inc. All rights reserved.