Test Case for zjrJS.Doc.dE() - 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.dE() 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 before the Delete Event button is pressed.
Actions

Test Code:

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

Download:

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

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

Clicky Analytics