MediaWiki  REL1_24
ResourceLoaderTest Class Reference
Inheritance diagram for ResourceLoaderTest:
Collaboration diagram for ResourceLoaderTest:

List of all members.

Public Member Functions

 testAddSource ($name, $info, $expected)
 provideAddSource ResourceLoader::addSource
 testCreatingNewResourceLoaderCallsRegistrationHook ()
 Ensures that the ResourceLoaderRegisterModules hook is called when a new ResourceLoader object is constructed.
 testexpandModuleNames ($desc, $modules, $packed)
 providePackedModules ResourceLoaderContext::expandModuleNames
 testGetLoadScript ()
 ResourceLoader::getLoadScript
 testLessFileCompilation ()
 ResourceLoaderFileModule::compileLessFile
 testMakePackedModulesString ($desc, $modules, $packed)
 providePackedModules ResourceLoader::makePackedModulesString
 testMixedCssAnnotations ()
 What happens when you mix and ? This really is an integration test, but oh well.
 testRegisteredValidModulesAreAccessible ($name, ResourceLoaderModule $module, ResourceLoader $resourceLoader)
 provideValidModules testCreatingNewResourceLoaderCallsRegistrationHook ResourceLoader::register ResourceLoader::getModule

Static Public Member Functions

static fakeSources ()
static provideAddSource ()
static providePackedModules ()
static provideValidModules ()
static resourceLoaderRegisterModules (&$resourceLoader)
 ResourceLoaderRegisterModules hook.

Protected Member Functions

 setUp ()

Static Protected Attributes

static $resourceLoaderRegisterModulesHook

Private Member Functions

 stripNoflip ($css)
 Strip annotations from CSS code.

Detailed Description

Definition at line 3 of file ResourceLoaderTest.php.


Member Function Documentation

static ResourceLoaderTest::fakeSources ( ) [static]

Definition at line 212 of file ResourceLoaderTest.php.

References array().

Referenced by testGetLoadScript().

Definition at line 175 of file ResourceLoaderTest.php.

References array().

Definition at line 150 of file ResourceLoaderTest.php.

References array().

Definition at line 45 of file ResourceLoaderTest.php.

References array().

static ResourceLoaderTest::resourceLoaderRegisterModules ( &$  resourceLoader) [static]

ResourceLoaderRegisterModules hook.

Definition at line 38 of file ResourceLoaderTest.php.

ResourceLoaderTest::setUp ( ) [protected]

Reimplemented from ResourceLoaderTestCase.

Definition at line 7 of file ResourceLoaderTest.php.

References array(), as, and MediaWikiTestCase\setMwGlobals().

ResourceLoaderTest::stripNoflip ( css) [private]

Strip annotations from CSS code.

Parameters:
string$css
Returns:
string

Definition at line 98 of file ResourceLoaderTest.php.

References $css.

Referenced by testMixedCssAnnotations().

ResourceLoaderTest::testAddSource ( name,
info,
expected 
)

provideAddSource ResourceLoader::addSource

Definition at line 196 of file ResourceLoaderTest.php.

References $name, $source, and as.

Ensures that the ResourceLoaderRegisterModules hook is called when a new ResourceLoader object is constructed.

ResourceLoader::__construct

Definition at line 58 of file ResourceLoaderTest.php.

References $resourceLoader.

ResourceLoaderTest::testexpandModuleNames ( desc,
modules,
packed 
)
ResourceLoaderTest::testMakePackedModulesString ( desc,
modules,
packed 
)

What happens when you mix and ? This really is an integration test, but oh well.

Definition at line 106 of file ResourceLoaderTest.php.

References array(), ResourceLoaderTestCase\getResourceLoaderContext(), and stripNoflip().

provideValidModules testCreatingNewResourceLoaderCallsRegistrationHook ResourceLoader::register ResourceLoader::getModule

Definition at line 72 of file ResourceLoaderTest.php.

References $name, ResourceLoader\getModule(), and ResourceLoader\register().


Member Data Documentation

ResourceLoaderTest::$resourceLoaderRegisterModulesHook [static, protected]

Definition at line 5 of file ResourceLoaderTest.php.


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