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

Used zjrJS Version:

Stable Minified version 20141202t2322 of zjrJS.


 

Preconditions
Javascript must be allowed to run on this page.
Page must contain an Author meta element.

Successful When...
In the form, after pressing the Meta By Name button, the Output box receives the contents of the Author meta element of this page.

Limitation
This page contains no http-equiv meta elements. The test only determines success of the mbn() function.
Actions
Output

Test Code:

          var test=({
	run: function () {"use strict";
		if ( !test.require( "zjrJS.Doc.mbn", "function" ) ) {
			return false;
		}
		var one = window.document.forms.one.elements;
		one.author.value = zjrJS.Doc.mbn("author");
		one = null;
		return false;
	}
});
        

Download:

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

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

Clicky Analytics