Embed
|
- |
5 |
Embed#constructor
|
- |
2 |
embedURL should be set
|
- |
|
options should be set
|
- |
|
Embed#markStarted
|
- |
1 |
embed.startedDate should be a Date object
|
- |
|
Embed#markFinished
|
- |
2 |
embed.finishedDate should be a Date object
|
- |
|
embed.elapsedMs should be a number
|
- |
|
EmbedEngine
|
- |
6 |
EmbedEngine#constructor
|
- |
1 |
should have a valid engine.engineOptions object
|
- |
|
EmbedEngine#registerDefaultProviders
|
- |
1 |
should contain a populated providerRegistry of URLEmbedProvider instances
|
- |
|
EmbedEngine#registerProvider
|
- |
1 |
EmbedEngine.providerRegistry should contain the new provider
|
- |
|
EmbedEngine#getEmbed
|
- |
1 |
should return markup for an embeddable url
|
- |
|
EmbedEngine#getEmbed
|
- |
1 |
should call EmbedEngine.errorMarkupNoMatchingProvider for an url without a provider
|
- |
|
EmbedEngine#getMultipleEmbeds
|
- |
1 |
should return the same number of embeds as the original list
|
- |
|
OEmbedProvider
|
OEmbedProvider |
12 |
URLEmbedProvider#constructor
|
OEmbedProvider#constructor |
2 |
should contain a urlPatterns property
|
OEmbedProvider#constructor |
|
should contain a providerURL property
|
OEmbedProvider#constructor |
|
OEmbedProvider#isMatch
|
URLEmbedProvider#isMatch |
2 |
should match the provider url
|
URLEmbedProvider#isMatch |
|
should fail to match a different url
|
URLEmbedProvider#isMatch |
|
OEmbedProvider#getEmbed
|
OEmbedProvider#getEmbed |
6 |
successful: should return the body markup
|
OEmbedProvider#getEmbed |
|
filterData function should get called
|
URLEmbedProvider#filterData |
|
should return an error object when it fails
|
OEmbedProvider#getEmbed |
|
should call errorMarkup when it fails
|
URLEmbedProvider#errorMarkup |
|
should call errorMarkup if the provider yields a non 200 response
|
URLEmbedProvider#errorMarkup |
|
should call errorMarkup404 if the provider yields a 404 response and the provider supports the method
|
- |
|
OEmbedProvider#buildAPIURL
|
OEmbedProvider#buildAPIURL |
1 |
should return a valid API url with all options accounted for
|
- |
|
OEmbedProvider#convertHighBitUnicodeToSurrogates
|
OEmbedProvider#convertHighBitUnicodeToSurrogates |
1 |
should convert the escaped code point for "🚀" to the corresponding escaped surrogate pair
|
- |
|
URLEmbedProvider
|
URLEmbedProvider |
7 |
URLEmbedProvider#constructor
|
URLEmbedProvider#constructor |
1 |
should contain a urlPatterns property
|
URLEmbedProvider#constructor |
|
URLEmbedProvider#isMatch
|
URLEmbedProvider#isMatch |
2 |
should match the provider url
|
URLEmbedProvider#isMatch |
|
should fail to match a different url
|
URLEmbedProvider#isMatch |
|
URLEmbedProvider#getEmbed
|
URLEmbedProvider#getEmbed |
4 |
should return the stub markup
|
URLEmbedProvider#getEmbed |
|
filterData function should get called
|
URLEmbedProvider#filterData |
|
should return an error object when it fails
|
URLEmbedProvider#getEmbed |
|
should call errorMarkup when it fails
|
URLEmbedProvider#errorMarkup |
|