Bunoon: JUST | Manual | Asserts

Below you will find a list of the different asserts that can be called inside test functions, written specifically inside a TestCase() class. Each assert will return a boolean of true/false (so additional asserts can be written around the output), while each assert offers a range of options to make the assert easier to understand when they are run and outputted in the report/console.

If a function test is added to a TestCase() class without the minimum number of asserts added (see the "MinimumAssertsPerTest" test setting), the function test will not be included in the tests to run.

Each assert function contains a 'properties' variable, which will except the following options:

  • "Description" [String] - States a description that should be printed instead of the assert function name.
    • Default: null.

  • "PassMessage" [String] - States a message that should be shown when the test passes.
    • Default: null.

  • "FailMessage" [String] - States a message that should be shown when the test fails.
    • Default: null.

  • "Report" [Boolean] - States if we should always report on this test.
    • Default: true.

  • "StopOnError" [Boolean] - States if we should stop when this test fails, overriding the default setting for all.
    • Default: false.

  • "OnPass" [Function] - States a function that should be triggered when the assert passes. Test execution will continue if an error is found.
    • Default: null.

  • "OnFail" [Function] - States a function that should be triggered when the assert fails. Test execution will continue if an error is found.
    • Default: null.

  • "SkipAssert" [String] - Skips the assert for the reason specified.
    • Default: null.

  • "SkipAssertIf" [Array [Boolean, String]] - Skips the assert and prints a reason if the specific condition is met.
    • Default: null.

  • "SkipAssertUnless" [Array [Boolean, String]] - Always skips the assert and prints a reason unless the specific condition is met.
    • Default: null.

  • "FailType" [Number] - States if the assert fails if it should act as an error or a warning (0: Error, 1: Warn). If set to Warn and the test fails, it will be counted as passed, but will be displayed differently in the report/console.
    • Default: 0 (error).

Determines if variable 'a' is equal to variable 'b' (in strict mode, no conversion is done between 'a' and 'b').

The main arguments for this function are as follows:

  • a [Object] - States variable 'a' to compare against variable 'b'.
  • b [Object] - States variable 'b' to is checked against variable 'a'.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.StrictEqual( 1, 1 );

}

} );

Determines if variable 'a' is not equal to variable 'b' ( in strict mode, no conversion is done between 'a' and 'b' ).

The main arguments for this function are as follows:

  • a [Object] - States variable 'a' to compare against variable 'b'.
  • b [Object] - States variable 'b' to is checked against variable 'a'.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.StrictNotEqual( 1, 2 );

}

} );

Determines if variable 'a' is equal to variable 'b'.

The main arguments for this function are as follows:

  • a [Object] - States variable 'a' to compare against variable 'b'.
  • b [Object] - States variable 'b' to is checked against variable 'a'.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.Equal( "1", 1 );

}

} );

Determines if variable 'a' is not equal to variable 'b'.

The main arguments for this function are as follows:

  • a [Object] - States variable 'a' to compare against variable 'b'.
  • b [Object] - States variable 'b' to is checked against variable 'a'.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.NotEqual( "1", 2 );

}

} );

Determines if variable 'a' is equal to true.

The main arguments for this function are as follows:

  • a [Object] - States the variable data that must be checked.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.True( bIsTrue );

}

} );

Determines if variable 'a' is equal to false.

The main arguments for this function are as follows:

  • a [Object] - States the variable data that must be checked.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.False( bIsFalse );

}

} );

Determines if variable 'a' is larger than variable 'b'.

The main arguments for this function are as follows:

  • a [Object] - States variable 'a' to compare against variable 'b'.
  • b [Object] - States variable 'b' to is checked against variable 'a'.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.LargerThan( 10, 5 );

}

} );

Determines if variable 'a' is smaller than variable 'b'.

The main arguments for this function are as follows:

  • a [Object] - States variable 'a' to compare against variable 'b'.
  • b [Object] - States variable 'b' to is checked against variable 'a'.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.SmallerThan( 5, 10 );

}

} );

Determines if variable 'a' is larger than, or equal to variable 'b'.

The main arguments for this function are as follows:

  • a [Object] - States variable 'a' to compare against variable 'b'.
  • b [Object] - States variable 'b' to is checked against variable 'a'.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.LargerEqualThan( 10, 5 );

}

} );

Determines if variable 'a' is smaller than, or equal to variable 'b'.

The main arguments for this function are as follows:

  • a [Object] - States variable 'a' to compare against variable 'b'.
  • b [Object] - States variable 'b' to is checked against variable 'a'.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.SmallerEqualThan( 5, 10 );

}

} );

Determines if variable 'a' is equal to null.

The main arguments for this function are as follows:

  • a [Object] - States the variable data that must be checked.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.Null( oObject );

}

} );

Determines if variable 'a' is not equal to null.

The main arguments for this function are as follows:

  • a [Object] - States the variable data that must be checked.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.NotNull( oObject );

}

} );

Determines if variable 'a' is an instance of variable 'b'.

The main arguments for this function are as follows:

  • a [Object] - States variable 'a' to compare against variable 'b'.
  • b [Object] - States variable 'b' to is checked against variable 'a'.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

var Color = new String("red");

this.Assert.InstanceOf( oColor, String );

}

} );

Determines if variable 'a' is not an instance of variable 'b'.

The main arguments for this function are as follows:

  • a [Object] - States variable 'a' to compare against variable 'b'.
  • b [Object] - States variable 'b' to is checked against variable 'a'.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

var Object = new String("red");

var Object = new Person("John Doe");

this.Assert.NotInstanceOf( oObject, String );

}

} );

Determines if variable 'a' is a type of variable 'b'.

The main arguments for this function are as follows:

  • a [Object] - States variable 'a' to compare against variable 'b'.
  • b [String] - States variable 'b' to is checked against variable 'a'.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.TypeOf( "test string", "string" );

}

} );

Determines if variable 'a' is not a type of variable 'b'.

The main arguments for this function are as follows:

  • a [Object] - States variable 'a' to compare against variable 'b'.
  • b [String] - States variable 'b' to is checked against variable 'a'.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.NotTypeOf( "test string", "number" );

}

} );

Determines if variable 'a' is not a number.

The main arguments for this function are as follows:

  • a [Number] - States the variable data that must be checked.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.NaN( "NAN" );

}

} );

Determines if variable 'a' is a number.

The main arguments for this function are as follows:

  • a [Number] - States the variable data that must be checked.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.NotNaN( "123" );

}

} );

Determines if variable 'a' contains variable 'b' (this is a string based test only).

The main arguments for this function are as follows:

  • a [String] - States variable 'a' to compare against variable 'b'.
  • b [String] - States variable 'b' to is checked against variable 'a'.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.String.Contains( "test string", "string" );

}

} );

Determines if variable 'a' does not contain variable 'b' (this is a string based test only).

The main arguments for this function are as follows:

  • a [String] - States variable 'a' to compare against variable 'b'.
  • b [String] - States variable 'b' to is checked against variable 'a'.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.String.NotContains( "test string", "not in string" );

}

} );

Determines if variable 'a' is a RegExp and tests true against variable 'b' (this is a string based test only).

The main arguments for this function are as follows:

  • a [String] - States variable 'a' to compare against variable 'b'.
  • b [String] - States variable 'b' to is checked against variable 'a'.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.String.RegExpTrue( "^(http|https|ftp)\://[0-9a-zA-Z]+[\.]{1}[0-9a-zA-Z]+[\.]?[0-9a-zA-Z]+$", "http://www.bunoon.com" );

}

} );

Determines if variable 'a' is a RegExp and tests false against variable 'b' (this is a string based test only).

The main arguments for this function are as follows:

  • a [String] - States variable 'a' to compare against variable 'b'.
  • b [String] - States variable 'b' to is checked against variable 'a'.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.String.RegExpFalse( "^(http|https|ftp)\://[0-9a-zA-Z]+[\.]{1}[0-9a-zA-Z]+[\.]?[0-9a-zA-Z]+$", "bad://www.bunoon.com" );

}

} );

Determines if variable 'a' is length of variable 'b' (this is a string based test only).

The main arguments for this function are as follows:

  • a [String] - States variable 'a' to compare against variable 'b'.
  • b [Number] - States variable 'b' to is checked against variable 'a'.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.String.IsLength( "An example string", 17 );

}

} );

Determines if variable 'a' is not length of variable 'b' (this is a string based test only).

The main arguments for this function are as follows:

  • a [String] - States variable 'a' to compare against variable 'b'.
  • b [Number] - States variable 'b' to is checked against variable 'a'.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.String.IsNotLength( "An example string", 20 );

}

} );

Determines if variable 'a' contains property variable 'b' (this is a object based test only).

The main arguments for this function are as follows:

  • a [Object] - States variable 'a' to compare against variable 'b'.
  • b [String] - States variable 'b' to is checked against variable 'a'.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

var newObject = new Object();

newObject.Test1 = true;


this.Assert.Object.Contains( newObject, "Test1" );

}

} );

Determines if variable 'a' does not contain property variable 'b' (this is a object based test only).

The main arguments for this function are as follows:

  • a [Object] - States variable 'a' to compare against variable 'b'.
  • b [String] - States variable 'b' to is checked against variable 'a'.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

var newObject = new Object();

newObject.Test1 = true;


this.Assert.Object.NotContains( newObject, "Test2" );

}

} );

Determines if variable 'a' is within the range of variable 'b' and 'c' (this is a number based test only).

The main arguments for this function are as follows:

  • a [Number] - States variable 'a' to compare against variable 'b' and 'c'.
  • b [Number] - States variable 'b' to is checked against variable 'a'.
  • c [Number] - States variable 'c' to is checked against variable 'a'.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.Number.InRange( 5, 3, 10 );

}

} );

Determines if variable 'a' is not within the range of variable 'b' and 'c' (this is a number based test only).

The main arguments for this function are as follows:

  • a [Number] - States variable 'a' to compare against variable 'b' and 'c'.
  • b [Number] - States variable 'b' to is checked against variable 'a'.
  • c [Number] - States variable 'c' to is checked against variable 'a'.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.Number.NotInRange( 2, 3, 10 );

}

} );

Determines if variable 'a' contains variable 'b' (this is a array based test only).

The main arguments for this function are as follows:

  • a [Array] - States variable 'a' to compare against variable 'b'.
  • b [Object] - States variable 'b' to is checked against variable 'a'.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.Array.Contains( [ 1, 2, 3, 4, 5 ], 1 );

}

} );

Determines if variable 'a' does not contain variable 'b' (this is a array based test only).

The main arguments for this function are as follows:

  • a [Array] - States variable 'a' to compare against variable 'b'.
  • b [Object] - States variable 'b' to is checked against variable 'a'.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.Array.NotContains( [ 1, 2, 3, 4, 5 ], 10 );

}

} );

Determines if the document contains element ID 'a' (this is a DOM based test only).

The main arguments for this function are as follows:

  • a [String] - States the ID of the element to be checked.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.DOM.Contains( "ElementID" );

}

} );

Determines if the document does not contain element ID 'a' (this is a DOM based test only).

The main arguments for this function are as follows:

  • a [String] - States the ID of the element to be checked.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.DOM.NotContains( "InvalidElementID" );

}

} );

Determines if the document contains file 'a' (this is a DOM based test only).

The main arguments for this function are as follows:

  • a [String] - States the filename of the file to be checked.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.DOM.Imported( "tests.js" );

}

} );

Determines if the document does not contain file 'a' (this is a DOM based test only).

The main arguments for this function are as follows:

  • a [String] - States the filename of the file to be checked.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.DOM.NotImported( "non_existent.js" );

}

} );

Determines if element ID 'a' is a type of variable 'b'.

The main arguments for this function are as follows:

  • a [String] - States variable 'a' to compare against variable 'b'.
  • b [String] - States variable 'b' to is checked against variable 'a'.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.DOM.IsType( "ElementID", "div" );

}

} );

Determines if element ID 'a' is not a type of variable 'b'.

The main arguments for this function are as follows:

  • a [String] - States variable 'a' to compare against variable 'b'.
  • b [String] - States variable 'b' to is checked against variable 'a'.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.DOM.IsNotType( "ElementID", "span" );

}

} );

Determines if the document contains element type 'a' (this is a DOM based test only).

The main arguments for this function are as follows:

  • a [String] - States the type of the element to be checked.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.DOM.ContainsType( "body" );

}

} );

Determines if the document does not contain element type 'a' (this is a DOM based test only).

The main arguments for this function are as follows:

  • a [String] - States the type of the element to be checked.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.DOM.NotContainsType( "invalid_type" );

}

} );

Determines if element ID 'a' contains variable 'b'.

The main arguments for this function are as follows:

  • a [String] - States variable 'a' to compare against variable 'b'.
  • b [String] - States variable 'b' to is checked against variable 'a'.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.DOM.ContainsString( "ElementID", "String That Exists" );

}

} );

Determines if element ID 'a' does not contain variable 'b'.

The main arguments for this function are as follows:

  • a [String] - States variable 'a' to compare against variable 'b'.
  • b [String] - States variable 'b' to is checked against variable 'a'.
  • properties [Object] - The properties that contain the settings to use for this test (see description area for options).

The return value for this function is as follows:

  • [Boolean] - A boolean of true/false to indicate if the assert has passed.

Below is an example of how to use this function:

var test = new $T.Class.New( {

_inherit_: new $J.TestCase(),


test: function () {

this.Assert.DOM.NotContainsString( "ElementID", "String That Does Not Exist" );

}

} );