DebugEpg
On this page
- DebugEpg ⇐
Class
- DebugEpg()
- checkEpgConsistency(epg)
- _logResult()
- _checkChannelData(epg)
- __checkProgramTimesForFrame(epgView, channelData, frameIndex, allPrograms, lastProgramOfPreviousFrame) ⇒
Object
- __checkFramePrograms(channelData, frameIndex, allPrograms) ⇒
Object
- _checkTileViews(epgView)
- __analyseChannelsTiles(epgView, channelData)
DebugEpg ⇐ Class
Kind: global class
Extends: Class
Singleton:
- DebugEpg ⇐
Class
- new DebugEpg()
- .checkEpgConsistency(epg)
- ._logResult()
- ._checkChannelData(epg)
- .__checkProgramTimesForFrame(epgView, channelData, frameIndex, allPrograms, lastProgramOfPreviousFrame) ⇒
Object
- .__checkFramePrograms(channelData, frameIndex, allPrograms) ⇒
Object
- ._checkTileViews(epgView)
- .__analyseChannelsTiles(epgView, channelData)
DebugEpg()
Utility class to check an Epg View.
checkEpgConsistency(epg)
Check given epg view.
Kind: static method of DebugEpg
Param | Type | Description |
---|---|---|
epg | EpgView | the epg view to check |
_logResult()
Log the check result.
Kind: static method of DebugEpg
_checkChannelData(epg)
Check the consistency of the programs currently loaded in channels data.
Kind: static method of DebugEpg
Param | Type | Description |
---|---|---|
epg | EpgView | the epg view to check |
__checkProgramTimesForFrame(epgView, channelData, frameIndex, allPrograms, lastProgramOfPreviousFrame) ⇒ Object
Check specific frame of one channel.
Kind: static method of DebugEpg
Returns: Object
- the last program of the checked frame
Param | Type | Description |
---|---|---|
epgView | EpgView | the epg view |
channelData | Object | the data of the channel to check |
frameIndex | number | the index of the frame to check |
allPrograms | Object | a map storing the ids of all programs previously checked |
lastProgramOfPreviousFrame | Object | the last program of the previous frame for this channel (if any) |
__checkFramePrograms(channelData, frameIndex, allPrograms) ⇒ Object
Check the programs of the specific frame of a channel.
Kind: static method of DebugEpg
Returns: Object
- object with firstProgram and lastProgram in the given frame
Param | Type | Description |
---|---|---|
channelData | Object | the data of the channel to check |
frameIndex | number | the index of the frame to check |
allPrograms | Object | a map storing the ids of all programs previously checked |
_checkTileViews(epgView)
Check consistency of the tile views rendered in the epg grid view.
Kind: static method of DebugEpg
Param | Type | Description |
---|---|---|
epgView | EpgView | the epg view to check |
__analyseChannelsTiles(epgView, channelData)
Check the tile views of given channel.
Kind: static method of DebugEpg
Param | Type | Description |
---|---|---|
epgView | EpgView | the epg view |
channelData | Object | the channel data |