Alloy UI

test  1.0.1

 
Filters

static Class Assert.DateAssert

The DateAssert object provides functions to test JavaScript Date objects for a variety of cases.

Methods

datesAreEqual

static void datesAreEqual ( expected , actual , message )
Asserts that a date's month, day, and year are equal to another date's.
Parameters:
expected <Date> The expected date.
actual <Date> The actual date to test.
message <String> (Optional) The message to display if the assertion fails.

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.

JUnitXML

static String JUnitXML ( result )
Returns test results formatted in JUnit XML format.
Parameters:
result <Object> The results object created by TestRunner.
Returns: String
An XML-formatted string of results.

TAP

static String TAP ( result )
Returns test results formatted in TAP format. For more information, see Test Anything Protocol.
Parameters:
result <Object> The results object created by TestRunner.
Returns: String
A TAP-formatted string of results.

timesAreEqual

static void timesAreEqual ( expected , actual , message )
Asserts that a date's hour, minutes, and seconds are equal to another date's.
Parameters:
expected <Date> The expected date.
actual <Date> The actual date to test.
message <String> (Optional) The message to display if the assertion fails.

XdebugJSON

String XdebugJSON ( coverage )
Returns the coverage report in a JSON format compatible with Xdebug. See Xdebug Documentation for more information. Note: function coverage is not available in this format.
Parameters:
coverage <Object> The coverage report object.
Returns: String
A JSON-formatted string of coverage data.

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.