| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- {
- "Events are raised after watch ack": {
- "describeName": "Collections:",
- "itName": "Events are raised after watch ack",
- "tags": [
- ],
- "config": {
- "numClients": 1,
- "useEagerGCForMemory": true
- },
- "steps": [
- {
- "userListen": {
- "query": {
- "filters": [
- ],
- "orderBys": [
- ],
- "path": "collection"
- },
- "targetId": 2
- },
- "expectedState": {
- "activeTargets": {
- "2": {
- "queries": [
- {
- "filters": [
- ],
- "orderBys": [
- ],
- "path": "collection"
- }
- ],
- "resumeToken": ""
- }
- }
- }
- },
- {
- "watchAck": [
- 2
- ]
- },
- {
- "watchEntity": {
- "docs": [
- {
- "createTime": 0,
- "key": "collection/key",
- "options": {
- "hasCommittedMutations": false,
- "hasLocalMutations": false
- },
- "value": {
- "foo": "bar"
- },
- "version": 1000
- }
- ],
- "targets": [
- 2
- ]
- }
- },
- {
- "watchCurrent": [
- [
- 2
- ],
- "resume-token-1001"
- ]
- },
- {
- "watchSnapshot": {
- "targetIds": [
- ],
- "version": 1001
- },
- "expectedSnapshotEvents": [
- {
- "added": [
- {
- "createTime": 0,
- "key": "collection/key",
- "options": {
- "hasCommittedMutations": false,
- "hasLocalMutations": false
- },
- "value": {
- "foo": "bar"
- },
- "version": 1000
- }
- ],
- "errorCode": 0,
- "fromCache": false,
- "hasPendingWrites": false,
- "query": {
- "filters": [
- ],
- "orderBys": [
- ],
- "path": "collection"
- }
- }
- ]
- }
- ]
- },
- "Events are raised for local sets before watch ack": {
- "describeName": "Collections:",
- "itName": "Events are raised for local sets before watch ack",
- "tags": [
- ],
- "config": {
- "numClients": 1,
- "useEagerGCForMemory": true
- },
- "steps": [
- {
- "userListen": {
- "query": {
- "filters": [
- ],
- "orderBys": [
- ],
- "path": "collection"
- },
- "targetId": 2
- },
- "expectedState": {
- "activeTargets": {
- "2": {
- "queries": [
- {
- "filters": [
- ],
- "orderBys": [
- ],
- "path": "collection"
- }
- ],
- "resumeToken": ""
- }
- }
- }
- },
- {
- "userSet": [
- "collection/key",
- {
- "foo": "bar"
- }
- ],
- "expectedSnapshotEvents": [
- {
- "added": [
- {
- "createTime": 0,
- "key": "collection/key",
- "options": {
- "hasCommittedMutations": false,
- "hasLocalMutations": true
- },
- "value": {
- "foo": "bar"
- },
- "version": 0
- }
- ],
- "errorCode": 0,
- "fromCache": true,
- "hasPendingWrites": true,
- "query": {
- "filters": [
- ],
- "orderBys": [
- ],
- "path": "collection"
- }
- }
- ]
- }
- ]
- }
- }
|