Test Case for zjrJS.Debug.alert() - 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.Debug.alert() 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, if Debug Mode is set to On, pressing the Alert button pops up a message containing this text:

"--zjrJS Debug Alert--
Hello, world!".
Debug Mode
Actions

Test Code:

          var test=({
	run: function () {"use strict";
		if ( !test.require( "zjrJS.Debug.alert", 
			"function" ) ) {
			return false;
		}
		var main = window.document.forms.one.elements;
		if ( main.debugmode[1].checked ) {
			zjrJS.Debug.mode = 1;
		} else {
			zjrJS.Debug.mode = 0;
		}
		zjrJS.Debug.alert( "Hello, world!" );
		main = null;
		return false;
	}
});
        

Download:

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

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

Clicky Analytics