Constructor
|
Beloader#constructor |
should create an instance with no debug
|
- |
should throw an exception with unknown type and no custom loader
|
- |
Fetching an item async
|
Beloader#fetch |
should fetch with none loader
|
- |
should fetch css
|
- |
should fetch a script and fail loading without fallback
|
- |
should fetch a script and fail loading with fallback to sync
|
- |
Fetching an item sync
|
- |
should load sync
|
- |
Fetching and defer items
|
- |
should defer loading with per item setting
|
- |
should defer loading with global setting
|
- |
Fetching and await dependencies
|
- |
should await dependencies
|
- |
fetchAll method
|
- |
should load and resolve
|
- |
Manual process
|
- |
should load and resolve
|
- |
Disable cache testing
|
- |
should fetch a script
|
- |
should fetch a script with a query string
|
- |
Custom loader callback
|
- |
should run a custom loader callback that resolve
|
- |
should run a custom loader callback that reject
|
- |
should throw an exception if loader not a Function
|
- |
should override sync loader
|
- |
should override async loader
|
- |
Beloader events
|
- |
should fire regular events
|
- |
should prevent default
|
- |
should stop propagation
|
- |
should stop immediate propagation post
|
- |
should stop immediate propagation pre/post
|
- |
should stop immediate propagation pre
|
- |
Font loader tests
|
- |
should throw an exception if no webfont object provided
|
- |
should throw an exception if async option is false
|
- |
should fail loading
|
- |
should run callbacks for webfont
|
- |
should fail loading and run callbacks for webfont
|
- |
Image loader
|
- |
should initialize image container
|
- |
should load image sync with attributes
|
- |
should load image async as blob
|
- |
should load image async as base64
|
- |
should throw an error
|
- |
JsonLoader tests
|
JsonLoader |
should load JSON
|
- |
JsonLoader errors
|
- |
should throw a type error if no URL provided
|
- |
should throw a type error if sync method called
|
- |
should report a 404 error
|
- |
should report a JSON syntax error
|
- |
Plugins
|
- |
should pluginize a function and call init
|
- |
should pluginize a singleton and call init
|
- |
should fail on pluginize with error
|
- |
should throw an exception if name is missing
|
- |
should propagate a plugin to item and loader
|
- |
should load plugin async from Beloader options with full options and alias
|
- |
should load plugin async from Beloader options with short call
|
- |
should load plugin async and inline from Beloader options with short call
|
- |
should load plugin sync from Beloader options with short call
|
- |
should wait for plugin ready promise
|
- |
URI checker for CDN
|
- |
should set wpp
|
- |
should set wpp
|
- |
should set wpp
|
- |
should set wpp
|
- |
should return false
|
- |
should return false
|
- |
CSS Loader
|
- |
should create an instance of a css loader
|
- |