Test Case for zjrJS.Doc.aE() - 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.aE() 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 Message button only pops up a message after the Add Event button is pressed.
Actions

Test Code:

          var test=({
	ran: false
	,
	run: function () {"use strict";
		if ( 
			!test.require( "zjrJS.Doc.aE", "function" ) 
			|| !test.require( "zjrJS.Doc.eid", "function" ) 
		) {
			return false;
		}
		if ( test.ran ) { return false; }
		var D = zjrJS.Doc, receiver;
		receiver = D.eid( "receiver" );
		D.aE( receiver, "click", test.popMsg );
		D = receiver = null;
		test.ran = true;
		return false;
	}
	,
	popMsg: function () {
		window.alert( "Hello, World!" );
		return false;
	}
});
        

Download:

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

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

Clicky Analytics