MediaWiki  REL1_19
SpecialJavaScriptTest Class Reference
Inheritance diagram for SpecialJavaScriptTest:
Collaboration diagram for SpecialJavaScriptTest:

List of all members.

Public Member Functions

 __construct ()
 execute ($par)
 Default execute method Checks user permissions, calls the function given in mFunction.
 isListed ()
 Whether this special page is listed in Special:SpecialPages.

Static Public Attributes

static $frameworks

Private Member Functions

 getFrameworkListHtml ()
 Get a list of frameworks (including introduction paragraph and links to the framework run pages)
 initQUnitTesting ()
 Initialize the page for QUnit.
 wrapSummaryHtml ($html, $state)
 Function to wrap the summary.

Detailed Description

Definition at line 3 of file SpecialJavaScriptTest.php.


Constructor & Destructor Documentation


Member Function Documentation

Default execute method Checks user permissions, calls the function given in mFunction.

This must be overridden by subclasses; it will be made abstract in a future version

Parameters:
$parString subpage string, if one was specified

Reimplemented from SpecialPage.

Definition at line 18 of file SpecialJavaScriptTest.php.

References $out, $wgEnableJavaScriptTest, getFrameworkListHtml(), SpecialPage\getOutput(), SpecialPage\getTitle(), Linker\linkKnown(), SpecialPage\setHeaders(), wfMessage(), wfMsgHtml(), and wrapSummaryHtml().

Here is the call graph for this function:

Get a list of frameworks (including introduction paragraph and links to the framework run pages)

Returns:
String: HTML

Definition at line 72 of file SpecialJavaScriptTest.php.

References SpecialPage\getTitle(), Linker\link(), Html\rawElement(), wfMessage(), and wfMsgHtml().

Referenced by execute().

Here is the call graph for this function:

Here is the caller graph for this function:

Initialize the page for QUnit.

Definition at line 108 of file SpecialJavaScriptTest.php.

References $out, $wgJavaScriptTestConfig, $wgLang, SpecialPage\getOutput(), wfMessage(), and wrapSummaryHtml().

Here is the call graph for this function:

Whether this special page is listed in Special:SpecialPages.

Since:
r3583 (v1.3)
Returns:
Bool

Reimplemented from SpecialPage.

Definition at line 137 of file SpecialJavaScriptTest.php.

References $wgEnableJavaScriptTest.

SpecialJavaScriptTest::wrapSummaryHtml ( html,
state 
) [private]

Function to wrap the summary.

It must be given a valid state as a second parameter or an exception will be thrown.

Parameters:
$htmlString: The raw HTML.
$stateString: State, one of 'noframework', 'unknownframework' or 'frameworkfound'

Definition at line 94 of file SpecialJavaScriptTest.php.

Referenced by execute(), and initQUnitTesting().

Here is the caller graph for this function:


Member Data Documentation

SpecialJavaScriptTest::$frameworks [static]
Initial value:
 array(
                'qunit' => 'initQUnitTesting',
        )

Definition at line 10 of file SpecialJavaScriptTest.php.


The documentation for this class was generated from the following file: