Test Case for zjrJS.Doc.Store.set() - Beta Test Suite for zjrJS

This information lives on a webpage hosted at the following web address: 'https://www.omegajunior.net/code/zjrjs/beta.php'.

Showing whether zjrJS.Doc.Store.set() actually works.

Used zjrJS Version:

Stable Minified version 20141202t2322 of zjrJS.

There is no newer Beta version available.


 

Privacy Considerations
By performing the test below, you agree to allow our script to store testing data in your browser. This data will continue to exist in your browser until you remove it. The test script below shows exactly what we store.

Preconditions
1. Javascript must be allowed to run on this page.
2. Your browser must allow storage. In private mode, this test will always return 0.

Successful When...
In the form, after entering a number and pressing the Store button, upon allowing the browser to load the test.Doc.Store.get() page, you see a page sporting an Output box, which shows the number you provided.

Note
The form is not submitted. The number is not sent through cyberspace. Instead, it stays in your browser.
Input
Actions

Test Code:

          var test=({
	run: function () {"use strict";
		if ( !test.require( "zjrJS.Doc.Store.set", 
			"function" ) ) {
				return false;
		}
		var b = false, n = 0, 
		one = window.document.forms.one.elements;
		n = parseInt( one.yourNumber.value );
		b = zjrJS.Doc.Store.set( "theTestNumber", n );
		one = null;
		window.location = "?id=test.Doc.Store.get" ;
		return false;
	}
});
        

Download:

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

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