Namespace CKEDITOR.test
Contains functions used at our testing environment. Currently,
our testing system is based on the
YUI Test.
Defined in: core/test.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Contains functions used at our testing environment.
|
Field Attributes | Field Name and Description |
---|---|
<static> |
CKEDITOR.test.assert
The assertion namespace, containing all assertion functions.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
CKEDITOR.test.addTestCase(testCase)
Adds a test case to the test runner.
|
<static> |
CKEDITOR.test.getInnerHtml(elementOrId)
Gets the inner HTML of an element, for testing purposes.
|
Namespace Detail
CKEDITOR.test
Since:
3.0
Contains functions used at our testing environment. Currently,
our testing system is based on the
YUI Test.
Field Detail
<static>
{Undefined}
CKEDITOR.test.assert
Since:
3.0
The assertion namespace, containing all assertion functions. Currently,
this is an alias for
YAHOO.util.Assert.
CKEDITOR.test.assert.areEqual( '10', 10 ); // "true" CKEDITOR.test.assert.areSame( '10', 10 ); // "false" CKEDITOR.test.assert.isUndefined( window.test ); // "true"
Method Detail
<static>
{Undefined}
CKEDITOR.test.addTestCase(testCase)
Since:
3.0
Adds a test case to the test runner.
CKEDITOR.test.addTestCase((function() { // Local reference to the "assert" object. var assert = CKEDITOR.test.assert; return { test_example : function() { assert.areSame( '10', 10 ); // FAIL } }; })());
- Parameters:
- {Object} testCase
- The test case object. See other tests for examples.
<static>
{Undefined}
CKEDITOR.test.getInnerHtml(elementOrId)
Since:
3.0
Gets the inner HTML of an element, for testing purposes.
NO EXAMPLE AVAILABLE
- Parameters:
- {Undefined} elementOrId