<TestCase>

JavaScript: lz.TestCase
extends <Test> » <DebugObject> » <view> » <node> » lz.Eventable »
TestCase implements an individual test case. See the documentation for <TestSuite> for an example of this tag.

Attributes

Name (CSS property) Type (tag) Type (js) Default Category
name expression any   read/write
  The name of the TestCase
testnames expression any null read/write
   

Attributes inherited from <DebugObject>

debugWrite

Methods

addTest()
TestCase.addTest(testname);
Parameter Name Type Description
testname    

addTests()
TestCase.addTests();
subclass should override this with a method which calls addTest for each test method

run()
TestCase.run(theTestResult, theTestName);
Run the setUp, execute the named test case, run tearDown
Parameter Name Type Description
theTestResult    
theTestName   (optional) the test to run, if not supplied the test with the name of the TestCase is run

setUp()
TestCase.setUp();
Set up any framework needed to execute the test case. Override this method in individual TestCases to provide a framework.

tearDown()
TestCase.tearDown();
Tear down any framework after the execution of the test case. Override this method in individual TestCases to dismantle the framework.

Methods inherited from <formatter>

abbreviate, formatToString, pad

Methods inherited from <DebugObject>

jsTrue, xmlequals, xmlstringequals

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy