MediaWiki
REL1_22
|
Public Member Functions | |
__construct () | |
execute ($par) | |
Default execute method Checks user permissions, calls the function given in mFunction. | |
Static Public Attributes | |
static | $frameworks |
Protected Member Functions | |
getGroupName () | |
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'. | |
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. |
Definition at line 27 of file SpecialJavaScriptTest.php.
Definition at line 38 of file SpecialJavaScriptTest.php.
SpecialJavaScriptTest::execute | ( | $ | subPage | ) |
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
$subPage | string|null |
Reimplemented from SpecialPage.
Definition at line 42 of file SpecialJavaScriptTest.php.
References $out, $summary, getFrameworkListHtml(), SpecialPage\getOutput(), SpecialPage\getTitle(), Linker\linkKnown(), SpecialPage\msg(), SpecialPage\setHeaders(), and wrapSummaryHtml().
SpecialJavaScriptTest::getFrameworkListHtml | ( | ) | [private] |
Get a list of frameworks (including introduction paragraph and links to the framework run pages)
Definition at line 93 of file SpecialJavaScriptTest.php.
References array(), as, SpecialPage\getTitle(), Linker\link(), SpecialPage\msg(), and Html\rawElement().
Referenced by execute().
SpecialJavaScriptTest::getGroupName | ( | ) | [protected] |
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'.
Reimplemented from SpecialPage.
Definition at line 177 of file SpecialJavaScriptTest.php.
SpecialJavaScriptTest::initQUnitTesting | ( | ) | [private] |
Initialize the page for QUnit.
Definition at line 137 of file SpecialJavaScriptTest.php.
References $out, $summary, SpecialPage\getLanguage(), SpecialPage\getOutput(), global, SpecialPage\msg(), will, and wrapSummaryHtml().
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.
string | $html | The raw HTML. |
string | $state | State, one of 'noframework', 'unknownframework' or 'frameworkfound' |
MWException |
Definition at line 121 of file SpecialJavaScriptTest.php.
References array().
Referenced by execute(), and initQUnitTesting().
SpecialJavaScriptTest::$frameworks [static] |
array( 'qunit' => 'initQUnitTesting', )
Definition at line 34 of file SpecialJavaScriptTest.php.