Test Case for zjrJS.Doc.Store.get() - 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.Store.get() actually works.

Used zjrJS Version:

Stable Minified version 20141202t2322 of zjrJS.


 

Privacy Considerations
The script on this page will read testing data previously stored in your browser. That data will continue to exist in your browser untill you remove it. The test script on the test.Doc.Store.set() page shows exactly what we store.

Preconditions
Javascript must be allowed to run on this page. Your browser session must not be private: private browsing prevents the use of window.localStorage.

Successful When...
In the form below, after entering a number and pressing the Store button on the test.Doc.Store.set() page, the Output box on this page shows the number you provided.

Note
The form was not submitted. The number was not sent through cyberspace. Instead, it stayed in your browser. It will stay there untill you remove it.
Output

Test Code:

          var test=({
	run: function () {"use strict";
		if ( !test.require( "zjrJS.Doc.Store.get", 
			"function" ) ) {
				return false;
		}
		var one = window.document.forms.one.elements;
		one.yourNumber.value = Number(
			zjrJS.Doc.Store.get( "theTestNumber" )
		);
		one = null;
		return false;
	}
});
zjrJS.Doc.aE( window, "load", test.run );
        

Download:

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

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

Clicky Analytics