Skip to content

Commit

Permalink
improved docs around #864
Browse files Browse the repository at this point in the history
  • Loading branch information
robmoffat committed Jan 16, 2023
1 parent 12f16d7 commit 83b14f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolbox/fdc3-conformance/App-Channel-Tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
| A | 1.createChannel |Get or create a user channel called `test-channel` using: <br/>`const testChannel = await fdc3.getOrCreateChannel("test-channel")` |
| B | 2.createChannel | Get or create the same named user channel as A- `test-channel`|
| B | 3.Broadcast |B broadcasts both the instrument context a contact context, using: <br /> `testChannel.broadcast(<instrument context>)` <br /> `testChannel.broadcast(<contact context>)` |
| 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 | 4.addContextListener | A adds a context listener to the channel *after* B has completed all its broadcasts, via: <br />![2.0](https://img.shields.io/badge/FDC3-2.0-blue) `await testChannel.addContextListener("fdc3.instrument", handler)` <br/>![1.2](https://img.shields.io/badge/FDC3-1.2-green) `testChannel.addContextListener("fdc3.instrument", handler)` It should NOT receive any context via this listener (past context is only retrieved by a getCurrentContext on App channels). |
| A | 5.receiveContext | A is able to retrieve the current context of the channel for each context type, and the returned data matches that last broadcast by B. Specifically: <br /> ![1.2](https://img.shields.io/badge/FDC3-1.2-green) `testChannel.getCurrentContext('fdc3.instrument')` returns the last broadcast instrument<br /> ![1.2](https://img.shields.io/badge/FDC3-1.2-green) `testChannel.getCurrentContext('fdc3.contact')` returns the last broadcast contact<br /> ![1.2](https://img.shields.io/badge/FDC3-1.2-green) `testChannel.getCurrentContext()` returns the last broadcast chronologically (contact type)<br /> ![2.0](https://img.shields.io/badge/FDC3-2.0-blue) `await testChannel.getCurrentContext('fdc3.instrument')` returns the last instrument <br /> ![2.0](https://img.shields.io/badge/FDC3-2.0-blue) `await testChannel.getCurrentContext('fdc3.contact')` returns the last contact <br /> ![2.0](https://img.shields.io/badge/FDC3-2.0-blue) `await testChannel.getCurrentContext()` returns the last broadcast chronologically (contact type)| |

- `ACContextHistoryTyped`: Perform above test.
Expand Down

0 comments on commit 83b14f2

Please sign in to comment.