Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confirm that App channels do not re-play past contexts when a listener is added #864

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion toolbox/fdc3-conformance/FDC3-1.2-Conformance-Test-Cases.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ _These are some basic sanity tests implemented in the FDC3 Conformance Framework
| A | 1. createChannel |`fdc3.getOrCreateChannel("test-channel")` |
| B | 2. createChannel | `fdc3.getOrCreateChannel("test-channel")` |
| B | 3. Broadcast | `testChannel.broadcast()` the instrument context.<br>`testChannel.broadcast()` a contact context. |
| A | 4. Receive Context | `testChannel.getCurrentContext('fdc3.instrument')` returns the last broadcast instrument<br>`testChannel.getCurrentContext('fdc3.contact')` returns the last broadcast contact |
| A | 4. addContextListener | A adds a context listener to the channel *after* B has completed all its broadcasts. It should NOT receive any context via this listener (past context is only retrieved by a getCurrentContext on App channels).
| A | 5. Receive Context | `testChannel.getCurrentContext('fdc3.instrument')` returns the last broadcast instrument<br>`testChannel.getCurrentContext('fdc3.contact')` returns the last broadcast contact |

- `ACContextHistoryTyped`: Perform above test.
- `ACContextHistoryMultiple`: **B** Broadcasts multiple history items of both types. Only the last version of each type is received by **A**.
Expand Down