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!".
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!".
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;
}
});