Table Row (tr) |
---|
| Table Head (th) |
---|
| Method Details |
|
Table Body (tbody) |
---|
id | assertEquals-Object_Object |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
assertEquals |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| assertEquals |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Asserts that two values are equal. AssertionFailedError is thrown if the actual value does not match the regular expression. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {Object} expected – the expected value. {Object} actual – the actual value. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// Asserts that two values are equal. AssertionFailedError is thrown if the actual value does not match the regular expression.
jsunit.assertEquals("Solution name test", "someSolution", application.getSolutionName());
jsunit.assertEquals("Simple math test", 2, 1 + 1);
|
|
|
|
|
Table Body (tbody) |
---|
id | assertEquals-String_Object_Object |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
assertEquals |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| assertEquals |
Span |
---|
| (message, expected, actual) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Asserts that two values are equal. AssertionFailedError is thrown if the actual value does not match the regular expression. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {String} message – The test description/message. {Object} expected – the expected value. {Object} actual – the actual value. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// Asserts that two values are equal. AssertionFailedError is thrown if the actual value does not match the regular expression.
jsunit.assertEquals("Solution name test", "someSolution", application.getSolutionName());
jsunit.assertEquals("Simple math test", 2, 1 + 1);
|
|
|
|
|
Table Body (tbody) |
---|
id | assertFalse-Boolean |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
assertFalse |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| assertFalse |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Asserts that a condition is false. AssertionFailedError is thrown if the evaluation was not false. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {Boolean} boolean_condition – the actual value. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// Asserts that a condition is false. AssertionFailedError is thrown if the evaluation was not false.
jsunit.assertFalse("False test", application.isLastPrintPreviewPrinted());
|
|
|
|
|
Table Body (tbody) |
---|
id | assertFalse-String_Boolean |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
assertFalse |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| assertFalse |
Span |
---|
| (message, boolean_condition) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Asserts that a condition is false. AssertionFailedError is thrown if the evaluation was not false. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {String} message – The test description/message. {Boolean} boolean_condition – the actual value. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// Asserts that a condition is false. AssertionFailedError is thrown if the evaluation was not false.
jsunit.assertFalse("False test", application.isLastPrintPreviewPrinted());
|
|
|
|
|
Table Body (tbody) |
---|
id | assertFloatEquals-Number_Number_Number |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
assertFloatEquals |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| assertFloatEquals |
Span |
---|
| (expectedFloat, actualFloat, tolerance) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Asserts that two floating point values are equal to within a given tolerance. AssertionFailedError is thrown if the expected value is not within the tolerance of the actual one. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {Number} expectedFloat – the expected value. {Number} actualFloat – the actual value. {Number} tolerance – tolerance when comparing. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// Asserts that two floating point values are equal to within a given tolerance. AssertionFailedError is thrown if the expected value is not within the tolerance of the actual one.
jsunit.assertFloatEquals("Float equals test", 3.12, 3.121, 0.0015);
|
|
|
|
|
Table Body (tbody) |
---|
id | assertFloatEquals-String_Number_Number_Number |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
assertFloatEquals |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| assertFloatEquals |
Span |
---|
| (message, expectedFloat, actualFloat, tolerance) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Asserts that two floating point values are equal to within a given tolerance. AssertionFailedError is thrown if the expected value is not within the tolerance of the actual one. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {String} message – The test description/message. {Number} expectedFloat – the expected value. {Number} actualFloat – the actual value. {Number} tolerance – tolerance when comparing. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// Asserts that two floating point values are equal to within a given tolerance. AssertionFailedError is thrown if the expected value is not within the tolerance of the actual one.
jsunit.assertFloatEquals("Float equals test", 3.12, 3.121, 0.0015);
|
|
|
|
|
Table Body (tbody) |
---|
id | assertMatches-Object_String |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
assertMatches |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| assertMatches |
Span |
---|
| (regularExpression, actualString) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Asserts that a regular expression matches a string. AssertionFailedError is thrown if the expected value is not the actual one. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {Object} regularExpression – the regular expression used for matching. {String} actualString – the actual value to be matched. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// Asserts that a regular expression matches a string. AssertionFailedError is thrown if the expected value is not the actual one.
jsunit.assertMatches(new RegExp("gr(a|e)y"), "gray");
|
|
|
|
|
Table Body (tbody) |
---|
id | assertMatches-String_Object_String |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
assertMatches |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| assertMatches |
Span |
---|
| (message, regularExpression, actualString) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Asserts that a regular expression matches a string. AssertionFailedError is thrown if the expected value is not the actual one. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {String} message – The test description/message. {Object} regularExpression – the regular expression used for matching. {String} actualString – the actual value to be matched. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// Asserts that a regular expression matches a string. AssertionFailedError is thrown if the expected value is not the actual one.
jsunit.assertMatches("Match test", new RegExp("gr(a|e)y"), "gray");
|
|
|
|
|
Table Body (tbody) |
---|
id | assertNotNull-Object |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
assertNotNull |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| assertNotNull |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Asserts that an object is not null. AssertionFailedError is thrown if the object is not null. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {Object} object – the actual value. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// Asserts that an object is not null. AssertionFailedError is thrown if the object is not null.
var a; // this is undefined, not null
jsunit.assertNotNull(a);
|
|
|
|
|
Table Body (tbody) |
---|
id | assertNotNull-String_Object |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
assertNotNull |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| assertNotNull |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Asserts that an object is not null. AssertionFailedError is thrown if the object is not null. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {String} message – The test description/message. {Object} object – the actual value. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// Asserts that an object is not null. AssertionFailedError is thrown if the object is not null.
var a; // this is undefined, not null
jsunit.assertNotNull("Not null test", a);
|
|
|
|
|
Table Body (tbody) |
---|
id | assertNotSame-Object_Object |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
assertNotSame |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| assertNotSame |
Span |
---|
| (notExpected, actual) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Asserts that two values are not the same. AssertionFailedError is thrown if the expected value is the actual one. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {Object} notExpected – the value that is not expected. {Object} actual – the actual value. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// Asserts that two values are not the same. AssertionFailedError is thrown if the expected value is the actual one.
var a = new Date(1990, 1, 1);
var b = new Date(1990, 1, 1);
jsunit.assertNotSame(a, b);
jsunit.assertEquals("But equals", a, b);
|
|
|
|
|
Table Body (tbody) |
---|
id | assertNotSame-String_Object_Object |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
assertNotSame |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| assertNotSame |
Span |
---|
| (message, notExpected, actual) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Asserts that two values are not the same. AssertionFailedError is thrown if the expected value is the actual one. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {String} message – The test description/message. {Object} notExpected – the value that is not expected. {Object} actual – the actual value. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// Asserts that two values are not the same. AssertionFailedError is thrown if the expected value is the actual one.
var a = new Date(1990, 1, 1);
var b = new Date(1990, 1, 1);
jsunit.assertNotSame("Not same test", a, b);
jsunit.assertEquals("But equals", a, b);
|
|
|
|
|
Table Body (tbody) |
---|
id | assertNotUndefined-Object |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
assertNotUndefined |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| assertNotUndefined |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Asserts that an object is not undefined. AssertionFailedError is thrown if the object is undefined. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {Object} definedObject – the actual value. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// Asserts that an object is not undefined. AssertionFailedError is thrown if the object is undefined.
var a = 0;
jsunit.assertNotUndefined(a);
|
|
|
|
|
Table Body (tbody) |
---|
id | assertNotUndefined-String_Object |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
assertNotUndefined |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| assertNotUndefined |
Span |
---|
| (message, definedObject) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Asserts that an object is not undefined. AssertionFailedError is thrown if the object is undefined. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {String} message – The test description/message. {Object} definedObject – the actual value. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// Asserts that an object is not undefined. AssertionFailedError is thrown if the object is undefined.
var a = 0;
jsunit.assertNotUndefined("Not undefined test", a);
|
|
|
|
|
Table Body (tbody) |
---|
id | assertNull-Object |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
assertNull |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| assertNull |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Asserts that an object is null. AssertionFailedError is thrown if the object is not null. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {Object} nullValue – the actual value. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// Asserts that an object is null. AssertionFailedError is thrown if the object is not null.
jsunit.assertNull("Null test", null);
|
|
|
|
|
Table Body (tbody) |
---|
id | assertNull-String_Object |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
assertNull |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| assertNull |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Asserts that an object is null. AssertionFailedError is thrown if the object is not null. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {String} message – The test description/message. {Object} nullValue – the actual value. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// Asserts that an object is null. AssertionFailedError is thrown if the object is not null.
jsunit.assertNull("Null test", null);
|
|
|
|
|
Table Body (tbody) |
---|
id | assertSame-Object_Object |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
assertSame |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| assertSame |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Asserts that two values are the same. AssertionFailedError is thrown if the expected value is not the actual one. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {Object} expected – the expected value. {Object} actual – the actual value. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// Asserts that two values are the same. AssertionFailedError is thrown if the expected value is not the actual one.
var a = new Date(1990, 1, 1);
var b = a;
jsunit.assertSame(a, b);
|
|
|
|
|
Table Body (tbody) |
---|
id | assertSame-String_Object_Object |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
assertSame |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| assertSame |
Span |
---|
| (message, expected, actual) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Asserts that two values are the same. AssertionFailedError is thrown if the expected value is not the actual one. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {String} message – The test description/message. {Object} expected – the expected value. {Object} actual – the actual value. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// Asserts that two values are the same. AssertionFailedError is thrown if the expected value is not the actual one.
var a = new Date(1990, 1, 1);
var b = a;
jsunit.assertSame("Same test", a, b);
|
|
|
|
|
Table Body (tbody) |
---|
id | assertTrue-Boolean |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
assertTrue |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| assertTrue |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Asserts that a condition is true. AssertionFailedError is thrown if the evaluation was not true. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {Boolean} boolean_condition – the actual value. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// Asserts that a condition is true. AssertionFailedError is thrown if the evaluation was not true.
jsunit.assertTrue("True test", application.isLastPrintPreviewPrinted());
|
|
|
|
|
Table Body (tbody) |
---|
id | assertTrue-String_Boolean |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
assertTrue |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| assertTrue |
Span |
---|
| (message, boolean_condition) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Asserts that a condition is true. AssertionFailedError is thrown if the evaluation was not true. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {String} message – The test description/message. {Boolean} boolean_condition – the actual value. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// Asserts that a condition is true. AssertionFailedError is thrown if the evaluation was not true.
jsunit.assertTrue("True test", application.isLastPrintPreviewPrinted());
|
|
|
|
|
Table Body (tbody) |
---|
id | assertUndefined-Object |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
assertUndefined |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| assertUndefined |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Asserts that an object is undefined. AssertionFailedError is thrown if the object is defined. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {Object} undefinedValue – the actual value. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// Asserts that an object is undefined. AssertionFailedError is thrown if the object is defined.
jsunit.assertUndefined("Undefined test", thisIsUndefined);
|
|
|
|
|
Table Body (tbody) |
---|
id | assertUndefined-String_Object |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
assertUndefined |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| assertUndefined |
Span |
---|
| (message, undefinedValue) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Asserts that an object is undefined. AssertionFailedError is thrown if the object is defined. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {String} message – The test description/message. {Object} undefinedValue – the actual value. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// Asserts that an object is undefined. AssertionFailedError is thrown if the object is defined.
jsunit.assertUndefined(thisIsUndefined);
|
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| fail |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Fails a test. AssertionFailedError is always thrown. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {String} message – The test description/message. This is usually the only parameter specified when calling this method. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// Fails a test. AssertionFailedError is always thrown.
jsunit.fail("Fail test");
jsunit.fail("test", null, "Fail"); // 2nd param is not used in Servoy, params 3 and 1 get merged to form a message. The result is the same as in the line above.
|
|
|
|
|
Table Body (tbody) |
---|
id | fail-String_Object |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| fail |
Span |
---|
| (message, instanceOfCallStack) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Fails a test. AssertionFailedError is always thrown. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {String} message – The test description/message. This is usually the only parameter specified when calling this method. {Object} instanceOfCallStack – an internal JSUnit call stack. Use null for this if you want to get to the next optional parameter. Usually not specified. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// Fails a test. AssertionFailedError is always thrown.
jsunit.fail("Fail test");
jsunit.fail("test", null, "Fail"); // 2nd param is not used in Servoy, params 3 and 1 get merged to form a message. The result is the same as in the line above.
|
|
|
|
|
Table Body (tbody) |
---|
id | fail-String_Object_String |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| fail |
Span |
---|
| (message, instanceOfCallStack, userMessage) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Fails a test. AssertionFailedError is always thrown. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters {String} message – The test description/message. This is usually the only parameter specified when calling this method. {Object} instanceOfCallStack – an internal JSUnit call stack. Use null for this if you want to get to the next optional parameter. Usually not specified. {String} userMessage – a user message. Usually not specified. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// Fails a test. AssertionFailedError is always thrown.
jsunit.fail("Fail test");
jsunit.fail("test", null, "Fail"); // 2nd param is not used in Servoy, params 3 and 1 get merged to form a message. The result is the same as in the line above.
|
|
|
|
|
|