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 (2.0) App channels do not re-play past contexts when a listener is added #865

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
5 changes: 3 additions & 2 deletions toolbox/fdc3-conformance/FDC3-2.0-Conformance-Test-Cases.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,12 @@ _These are some basic sanity tests implemented in the FDC3 Conformance Framework
| A | 1. getOrCreateChannel | `const testChannel = await fdc3.getOrCreateChannel("test-channel")` |
| B | 2. getOrCreateChannel | `const testChannel = await fdc3. getOrCreateChannel("test-channel")` |
| B | 3. Broadcast | `testChannel.broadcast()` the instrument context.<br>`testChannel.broadcast()` a contact context. |
| A | 4. Receive Context | **`const contextInst = await testChannel.getCurrentContext('fdc3.instrument')` returns the last instrument<br>`const contextCont = await testChannel.getCurrentContext('fdc3.contact')` returns the last contact<br>`const contextLatest = await testChannel.getCurrentContext()` returns the last broadcast chronologically (contact type)** |
| 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. | |

- `2.0-ACContextHistoryTyped`: Perform above test.
- `2.0-ACContextHistoryMultiple`: **B** Broadcasts multiple history items of both types. Only the last version of each type is received by **A**.
- `2.0-ACContextHistoryLast`: **A** calls testChannel.getCurrentContext() retrieves the last broadcast context item
- `2.0-ACContextHistoryLast`: **A** calls testChannel.getCurrentContext() retrieves the last broadcast context item.

## 4. Open API

Expand Down