modulemanager_test.js
No description.

File Location

/goog/module/modulemanager_test.js


Public Protected Private

Global Functions

testSetModuleConstructor&AModule()
No description.
code »
testLoadWhenInitializing&AModule()
No description.
code »
testSetModuleConstructor&BModule()
No description.
code »
testSetModuleConstructor&CModule()
No description.
code »
testLoadWhenPreloading&mm.afterLoadModuleCode()
No description.
code »
testLoadMultipleWhenPreloading&mm.afterLoadModuleCode()
No description.
code »
testLoadMultipleWhenPreloadingSameModules&mm.afterLoadModuleCode()
No description.
code »
assertDependencyOrder()
No description.
code »
testLoadWhenPreloading&mm.beforeLoadModuleCode()
No description.
code »
testLoadMultipleWhenPreloading&mm.beforeLoadModuleCode()
No description.
code »
testLoadMultipleWhenPreloadingSameModules&mm.beforeLoadModuleCode()
No description.
code »
createModulesFor()
No description.
code »
createSuccessfulBatchLoader()
No description.
code »
createSuccessfulNonBatchLoader()
No description.
code »
createSuccessfulNonBatchLoaderWithConstructor()
No description.
code »
createSuccessfulNonBatchLoaderWithRegisterInitCallback()
No description.
code »
createTimeoutLoader()
No description.
code »
createUnsuccessfulBatchLoader()
No description.
code »
createUnsuccessfulLoader()
No description.
code »
testSetModuleConstructor&info.a.ctor()
No description.
code »
testSetModuleConstructor&info.b.ctor()
No description.
code »
testSetModuleConstructor&info.c.ctor()
No description.
code »
testLoadWhenInitializing&info.a.ctor()
No description.
code »
execOnLoadWhilePreloadingAndViceVersa_(mm)
Perform tests with the specified module manager.
Arguments:
mm : goog.module.ModuleManager
The module manager.
code »
execOnLoad_(mm)
Tests execOnLoad with the specified module manager.
Arguments:
mm : goog.module.ModuleManager
The module manager.
code »
getModuleManager()
No description.
code »
getModuleManager&mm.isModuleLoaded()
No description.
code »
execOnLoadWhilePreloadingAndViceVersa_&origSetLoaded()
No description.
code »
testLoadWhenPreloading&origSetLoaded()
No description.
code »
testLoadMultipleWhenPreloading&origSetLoaded()
No description.
code »
testLoadMultipleWhenPreloadingSameModules&origSetLoaded()
No description.
code »
testLoadWhenPreloading&mm.setLoaded()
No description.
code »
testLoadMultipleWhenPreloading&mm.setLoaded()
No description.
code »
testLoadMultipleWhenPreloadingSameModules&mm.setLoaded()
No description.
code »
setUp()
No description.
code »
setUpPage()
No description.
code »
tearDownPage()
No description.
code »
testBackOffAmounts()
No description.
code »
testConsecutiveErrors()
Test consecutive errors in loading modules.
code »
testDependencyOrderingWithCommonDepsInDeps()
No description.
code »
testDependencyOrderingWithCommonDepsInRoot1()
No description.
code »
testDependencyOrderingWithCommonDepsInRoot2()
No description.
code »
testDependencyOrderingWithGmailExample()
No description.
code »
testDependencyOrderingWithSimpleDeps()
No description.
code »
testDispose()
Make sure ModuleInfo objects in moduleInfoMap_ get disposed.
code »
testErrorInEarlyCallback()
No description.
code »
testErrorInErrback()
No description.
code »
testErrorInNormalCallback()
No description.
code »
testErrorLoadingModule()
Test error loading modules which are retried.
code »
testErrorLoadingModule_batchMode()
Tests error loading modules which are retried.
code »
testExecOnLoad()
Tests loading a module under different conditions i.e. unloaded module, already loaded module, module loaded through user initiated actions, synchronous callback for a module that has been already loaded. Test both batch and non-batch loaders.
code »
testExecOnLoadAbort()
Test aborting the callback called on module load.
code »
testExecOnLoadError()
Tests that an error during execOnLoad will trigger the error callback.
code »
testExecOnLoadErrorModuleInfoString()
Tests that an error during execOnLoad will trigger the error callback. Uses setAllModuleInfoString rather than setAllModuleInfo.
code »
testExecOnLoadWhilePreloadingAndViceVersa()
Test preloading modules and ensure that the before load, after load and set load called are called only once per module.
code »
testIdleCallbackWithInitialModules()
Tests that the IDLE callbacks are executed for active->idle transitions after setAllModuleInfoString with currently loading modules.
code »
testInitCallbackInBaseModule()
No description.
code »
testLoad()
Tests loading a module by requesting a Deferred object.
code »
testLoadForUser()
Tests loading a module by user action by requesting a Deferred object.
code »
testLoadMultiple()
Tests loading multiple modules by requesting a Deferred object.
code »
testLoadMultipleWhenPreloading()
Tests that load doesn't trigger another load if a module is already preloading.
code »
testLoadMultipleWhenPreloadingSameModules()
Tests that the deferred is still called when loadMultiple loads modules that are already preloading.
code »
testLoadMultipleWithDeps()
Tests loading multiple modules with deps by requesting a Deferred object.
code »
testLoadMultipleWithDuplicates()
Tests that when loading multiple modules, the input array is not modified when it has duplicates.
code »
testLoadMultipleWithErrors()
Tests loading multiple modules by requesting a Deferred object when a server error occurs.
code »
testLoadMultipleWithErrorsFallbackOnSerial()
Tests loading multiple modules by requesting a Deferred object when consecutive server error occur and the loader falls back to serial loads.
code »
testLoadMultipleWithFailingModule()
Tests that the deferred's errbacks are called if a module fails to load.
code »
testLoadMultipleWithFailingModuleDependencies()
Tests that the right dependencies are cancelled on a loadMultiple failure.
code »
testLoadUnknown()
No description.
code »
testLoadWhenInitializing()
Tests that a call to load the loading module during module initialization doesn't trigger a second load.
code »
testLoadWhenLoaded()
Tests loading a module via load when the module is already loaded. The deferred's callback should be called immediately.
code »
testLoadWhenPreloading()
Tests that load doesn't trigger another load if a module is already preloading.
code »
testLoadWithFailingModule()
Tests that the deferred's errbacks are called if the module fails to load.
code »
testLoad_concurrent()
Tests loading 2 modules asserting that the loads happen in parallel in one unit of time.
code »
testLoad_concurrentSecondIsDepOfFist()
No description.
code »
testLoad_nonConcurrent()
No description.
code »
testLoadingDepsInBatchMode()
No description.
code »
testLoadingDepsInNonBatchMode1()
Test loading dependencies transitively.
code »
testLoadingDepsInNonBatchMode2()
Test loading dependencies transitively and in dependency order.
code »
testOldCodeGoneError()
Test loading errors due to old code.
code »
testPreloadDeferredWhenLoaded()
Tests preloading an already loaded module.
code »
testPreloadDeferredWhenLoading()
Tests preloading a module that is currently loading.
code »
testPreloadDeferredWhenNotLoaded()
Tests that preloading a module calls back the deferred object.
code »
testRegisterInitializationCallback()
No description.
code »
testSetAllModuleInfoString()
No description.
code »
testSetAllModuleInfoStringWithEmptyString()
No description.
code »
testSetModuleConstructor()
No description.
code »
testTimeout()
Test timeout.
code »
testUnauthorizedLoading()
Test unauthorized errors while loading modules.
code »
testUserInitiatedExecOnLoadEventuallyLeavesManagerIdle()
Tests that multiple callbacks on the same module don't cause confusion about the active state after the module is finally loaded.
code »

Global Variables

firedLoadFailed :
No description.
Code »
requestCount :
No description.
Code »

Directory module

File Reference