MediaWiki
REL1_24
|
Public Member Functions | |
testHandheld () | |
Tests handheld behavior OutputPage::transformCssMedia. | |
testMakeResourceLoaderLink ($args, $expectedHtml) | |
provideMakeResourceLoaderLink OutputPage::makeResourceLoaderLink | |
testPrintRequests () | |
Tests print requests OutputPage::transformCssMedia. | |
testScreenRequests () | |
Tests screen requests, without either query parameter set OutputPage::transformCssMedia. | |
Static Public Member Functions | |
static | provideMakeResourceLoaderLink () |
Public Attributes | |
const | SCREEN_MEDIA_QUERY = 'screen and (min-width: 982px)' |
const | SCREEN_ONLY_MEDIA_QUERY = 'only screen and (min-width: 982px)' |
Protected Member Functions | |
assertTransformCssMediaCase ($args) | |
Tests a particular case of transformCssMedia, using the given input, globals, expected return, and message. |
Output
Definition at line 12 of file OutputPageTest.php.
OutputPageTest::assertTransformCssMediaCase | ( | $ | args | ) | [protected] |
Tests a particular case of transformCssMedia, using the given input, globals, expected return, and message.
Asserts that $expectedReturn is returned.
options['printableQuery'] - value of query string for printable, or omitted for none options['handheldQuery'] - value of query string for handheld, or omitted for none options['media'] - passed into the method under the same name options['expectedReturn'] - expected return value options['message'] - PHPUnit message for assertion
array | $args | Key-value array of arguments as shown above |
Definition at line 30 of file OutputPageTest.php.
References array(), MediaWikiTestCase\setMwGlobals(), and OutputPage\transformCssMedia().
Referenced by testHandheld(), testPrintRequests(), and testScreenRequests().
static OutputPageTest::provideMakeResourceLoaderLink | ( | ) | [static] |
Definition at line 139 of file OutputPageTest.php.
References array(), ResourceLoaderModule\TYPE_COMBINED, ResourceLoaderModule\TYPE_SCRIPTS, and ResourceLoaderModule\TYPE_STYLES.
Tests handheld behavior OutputPage::transformCssMedia.
Definition at line 123 of file OutputPageTest.php.
References array(), and assertTransformCssMediaCase().
OutputPageTest::testMakeResourceLoaderLink | ( | $ | args, |
$ | expectedHtml | ||
) |
provideMakeResourceLoaderLink OutputPage::makeResourceLoaderLink
Definition at line 217 of file OutputPageTest.php.
References $out, array(), SkinFactory\getDefaultInstance(), and MediaWikiTestCase\setMwGlobals().
Tests print requests OutputPage::transformCssMedia.
Definition at line 53 of file OutputPageTest.php.
References array(), and assertTransformCssMediaCase().
Tests screen requests, without either query parameter set OutputPage::transformCssMedia.
Definition at line 87 of file OutputPageTest.php.
References array(), and assertTransformCssMediaCase().
const OutputPageTest::SCREEN_MEDIA_QUERY = 'screen and (min-width: 982px)' |
Definition at line 13 of file OutputPageTest.php.
const OutputPageTest::SCREEN_ONLY_MEDIA_QUERY = 'only screen and (min-width: 982px)' |
Definition at line 14 of file OutputPageTest.php.