-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow specifying a topic when subscribing to a document (#487)
* Modify `doc.subscribe` function to allow specifying a topic * Add document.getValueByPath * Specify the doc.subscribe event value for each operation * Use `waitStubCallCount` instead of `createEmitterAndSpy` and `waitFor` `waitFor` continuously registers the listener, which may result in missed event detections if an event occurs before the registration. Therefore, `waitFor` has been replaced with `waitStubCallCount` to verify the number of times the callback function is called and which events are executed. * Add test that `remote-change` event is properly detected in `doc.subscribe` * Modify the `selectPriv` method to return `TextChange` when setting the initial selectionMap --------- Co-authored-by: Youngteac Hong <[email protected]>
- Loading branch information
1 parent
0afacc0
commit 059b20b
Showing
22 changed files
with
1,608 additions
and
328 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.