# Yahoo! UI Library

### test 3.0.0

Yahoo! UI Library > test > Test.TestNode
Search:
Filters Show Private Show Protected Show Deprecated

## `private` Class Test.TestNode

A node in the test tree structure. May represent a TestSuite, TestCase, or test function.

### Constructor

Test.TestNode `( testObject )`

Parameters:
  `testObject <Variant>` A TestSuite, TestCase, or the name of a test function.

### Properties

#### firstChild - `TestNode`

Pointer to this node's first child.

#### lastChild - `TestNode`

Pointer to this node's last child.

#### next - `TestNode`

Pointer to this node's next sibling.

#### parent - `TestNode`

Pointer to this node's parent.

#### results - `object`

Test results for this test object.

#### testObject - `Variant`

The TestSuite, TestCase, or test function represented by this node.

### Methods

#### appendChild

`Void appendChild ( testObject )`
Appends a new test object (TestSuite, TestCase, or test function name) as a child of this node.

Parameters:
  `testObject <Variant>` A TestSuite, TestCase, or the name of a test function.

Copyright © 2009 Yahoo! Inc. All rights reserved.