Child pages
  • JSUnit

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Div
iddescription

See Unit Testing for more info on how to utilize the methods of the JSUnit class.

 



HTML Table
id
classservoy sSummary
Colgroup Tag
Col
width80px
Col
Table Head (thead)
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Summary
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
assertEquals(expected, actual)
Asserts that two values are equal.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
assertEquals(message, expected, actual)
Asserts that two values are equal.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
assertFalse(boolean_condition)
Asserts that a condition is false.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
assertFalse(message, boolean_condition)
Asserts that a condition is false.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
assertFloatEquals(expectedFloat, actualFloat, tolerance)
Asserts that two floating point values are equal to within a given tolerance.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
assertFloatEquals(message, expectedFloat, actualFloat, tolerance)
Asserts that two floating point values are equal to within a given tolerance.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
assertMatches(regularExpression, actualString)
Asserts that a regular expression matches a string.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
assertMatches(message, regularExpression, actualString)
Asserts that a regular expression matches a string.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
assertNotNull(object)
Asserts that an object is not null.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
assertNotNull(message, object)
Asserts that an object is not null.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
assertNotSame(notExpected, actual)
Asserts that two values are not the same.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
assertNotSame(message, notExpected, actual)
Asserts that two values are not the same.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
assertNotUndefined(definedObject)
Asserts that an object is not undefined.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
assertNotUndefined(message, definedObject)
Asserts that an object is not undefined.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
assertNull(nullValue)
Asserts that an object is null.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
assertNull(message, nullValue)
Asserts that an object is null.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
assertSame(expected, actual)
Asserts that two values are the same.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
assertSame(message, expected, actual)
Asserts that two values are the same.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
assertTrue(boolean_condition)
Asserts that a condition is true.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
assertTrue(message, boolean_condition)
Asserts that a condition is true.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
assertUndefined(undefinedValue)
Asserts that an object is undefined.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
assertUndefined(message, undefinedValue)
Asserts that an object is undefined.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
fail(message)
Fails a test.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
fail(message, instanceOfCallStack)
Fails a test.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
fail(message, instanceOfCallStack, userMessage)
Fails a test.

...