Test Case for zjrJS.Debug.crack() - 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.crack() actually works.

Used zjrJS Version:

Stable Minified version 20141202t2322 of zjrJS.


 

Preconditions
Javascript must be allowed to run on this page.

Successful When...

As of zjrJS.20120322t1418.js or newer:

In the form, pressing the Crack button posts javascript object details of that button itself, to the Output box. This same information is also logged to the browser's console, or alerted if a console is unavailable and Debug Mode = On.

When using an older version:

In the form, pressing the Crack button pops up javascript object details of that button itself, if Debug Mode = On.
Debug Mode
Actions
Output

Test Code:

          var test=({
	run: function () {"use strict";
		if ( !test.require( "zjrJS.Debug.crack", 
			"function" ) ) {
			return false;
		}
		var s = '', main = window.document.forms.one.elements;
		main.extrapolation.innerHTML = '';
		if ( main.debugmode[1].checked ) {
			zjrJS.Debug.mode = 1;
		} else {
			zjrJS.Debug.mode = 0;
		}
		try {
			s = zjrJS.Debug.crack( main.cmdCrack );
		} catch ( err ) {
			s = err.message;
		}
		main.extrapolation.innerHTML = s || '';
		main = null;
		return false;
	}
});
        

Download:

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

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

Clicky Analytics