MODULES UizeDotCom.Page.Example.Test

SEARCHEXAMPLESVIEW SOURCE CODE

1. Introduction

A subclass of UizeDotCom.Page.Example that provides additional functionality specific to test pages.

DEVELOPERS: Chris van Rensburg

2. Implied Nodes

2.1. testResults

A node whose innerHTML will be replaced with the test results HTML reported back from the call to the performTest instance method.

3. Child Widgets

3.1. performTest

A button that, when clicked, calls the performTest instance method that should be overrided by each test page.

4. Instance Methods

4.1. performTest

A method that performs the test for the test page.

SYNTAX

performTest (reportResultsFUNC);

This method's implementation should be overrided by a particular test page, to perform the test specific to that page. Your implementation should expect to receive one parameter, reportResultsFUNC, being a function that should be called to report back the results of the test once it has completed. The reportResultsFUNC callback function expects one string parameter, being a report of the test's results in HTML format, which will be placed into the testResults implied node.