MediaWiki
REL1_21
|
Public Member Functions | |
testHandheld () | |
Tests handheld and wgHandheldForIPhone behavior. | |
testPrintRequests () | |
Tests print requests. | |
testScreenRequests () | |
Tests screen requests, without either query parameter set. | |
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. | |
assertTransformCssMediaCaseWithBothHandheldForIPhone ($args) | |
Tests a case of transformCssMedia with both values of wgHandheldForIPhone. |
Output
Definition at line 10 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['handheldForIPhone'] - value of the $wgHandheldForIPhone global 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 29 of file OutputPageTest.php.
References array(), and OutputPage\transformCssMedia().
Referenced by assertTransformCssMediaCaseWithBothHandheldForIPhone(), testHandheld(), and testScreenRequests().
OutputPageTest::assertTransformCssMediaCaseWithBothHandheldForIPhone | ( | $ | args | ) | [protected] |
Tests a case of transformCssMedia with both values of wgHandheldForIPhone.
Used to verify that behavior is orthogonal to that option.
If the value of wgHandheldForIPhone should matter, use assertTransformCssMediaCase.
array | $args | key-value array of arguments as shown in assertTransformCssMediaCase. Will be mutated. |
Definition at line 58 of file OutputPageTest.php.
References array(), as, and assertTransformCssMediaCase().
Referenced by testHandheld(), testPrintRequests(), and testScreenRequests().
Tests handheld and wgHandheldForIPhone behavior.
Definition at line 134 of file OutputPageTest.php.
References array(), assertTransformCssMediaCase(), and assertTransformCssMediaCaseWithBothHandheldForIPhone().
Tests print requests.
Definition at line 71 of file OutputPageTest.php.
References array(), and assertTransformCssMediaCaseWithBothHandheldForIPhone().
Tests screen requests, without either query parameter set.
Definition at line 104 of file OutputPageTest.php.
References array(), assertTransformCssMediaCase(), and assertTransformCssMediaCaseWithBothHandheldForIPhone().
const OutputPageTest::SCREEN_MEDIA_QUERY = 'screen and (min-width: 982px)' |
Definition at line 11 of file OutputPageTest.php.
const OutputPageTest::SCREEN_ONLY_MEDIA_QUERY = 'only screen and (min-width: 982px)' |
Definition at line 12 of file OutputPageTest.php.