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.4.1

Yahoo! UI Library > yuitest > YAHOO.tool.TestSuite

Show Private Show Protected

Class YAHOO.tool.TestSuite

A test suite that can contain a collection of TestCase and TestSuite objects.

Constructor

YAHOO.tool.TestSuite ( data )
Parameters:
data <String||Object> The name of the test suite or an object containing a name property as well as setUp and tearDown methods.

Properties

name - String

The name of the test suite.

Methods

add

Void add ( testObject )
Adds a test suite or test case to the test suite.
Parameters:
testObject <YAHOO.tool.TestSuite||YAHOO.tool.TestCase> The test suite or test case to add.
Returns: Void

setUp

Void setUp ( )
Function to run before each test is executed.
Returns: Void

tearDown

Void tearDown ( )
Function to run after each test is executed.
Returns: Void


Copyright © 2007 Yahoo! Inc. All rights reserved.