diff -r 000000000000 -r 40c8f766c9b8 src/cm/media/js/lib/yui/yui_3.0.0b1/api/Test.Suite.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/cm/media/js/lib/yui/yui_3.0.0b1/api/Test.Suite.html Mon Nov 23 15:14:29 2009 +0100 @@ -0,0 +1,505 @@ + + + + + API: test Test.Suite (YUI Library) + + + + + + + + + + +
+
+

Yahoo! UI Library

+

test  3.0.0b1

+ Yahoo! UI Library + > test + > Test.Suite + +
+
+ Search: +
+   +
+
+
+
+ +
+
+
+
+
+ Filters + + + +
+
+ +

+ + + + + Class Test.Suite + + + +

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

Constructor

+
+
+ Test.Suite + + ( + + + + 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

+
+
+

items + - private object +

+
+
+ Array of test suites and +
+
+ + + + +
+
+
+

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 + <Y.Test.Suite||Y.Test.Case> + + The test suite or test case to add. +
+
+ +
+
Returns: + + Void +
+
+
+ + + + +
+ +
+
+
+
+

+ 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 +
+
A JSON-formatted string of results.
+
+ + + + +
+ +
+
+
+
+

+ 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 +
+
+
+ + + + +
+ +
+
+
+
+

+ 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 © 2009 Yahoo! Inc. All rights reserved. +
+
+ + +