Test Case for zjrJS.Doc.cT() - Stable Test Suite for zjrJS

This information lives on a webpage hosted at the following web address: 'https://www.omegajunior.net/code/zjrjs/stable.php'.

Showing whether zjrJS.Doc.cT() actually works.

Used zjrJS Version:

Stable Minified version 20141202t2322 of zjrJS.


 

Preconditions
Javascript must be allowed to run on this page.

Successful When...
In the form, pressing the Create button, the text "Hello, World!" gets added to the Output box.
Actions
Output

Test Code:

          var test=({
	amount: 0
	,
	run: function () {"use strict";
		if ( 
			!test.require( "zjrJS.Doc.aC", "function" ) 
			|| !test.require( "zjrJS.Doc.cT", "function" ) 
			|| !test.require( "zjrJS.Doc.eid", "function" ) 
		) {
			return false;
		}
		var D = zjrJS.Doc, receiver;
		receiver = D.eid( "receiver" );
		test.amount += 1;
		D.aC( 
			D.cT( "Hello, World! (" +  test.amount + ')' ),
			receiver 
		);
		D.aC( D.cE( "br" ), receiver );
		D = receiver = null;
		return false;
	}
});
        

Download:

Download zjrJS’ latest stable build (20141202t2322) minified (7.1KB).

Download zjrJS’ latest stable build (20141202t2322) (11.9KB).

Clicky Analytics