@@ -46,10 +46,10 @@ - (void)testRaisesCollectionEvents {
46
46
NSMutableArray <FSTViewSnapshot *> *otherAccum = [NSMutableArray array ];
47
47
48
48
FSTQuery *query = FSTTestQuery (" rooms" );
49
- FSTDocument *doc1 = FSTTestDoc (@ " rooms/Eros" , 1 , @{@" name" : @" Eros" }, NO );
50
- FSTDocument *doc2 = FSTTestDoc (@ " rooms/Hades" , 2 , @{@" name" : @" Hades" }, NO );
49
+ FSTDocument *doc1 = FSTTestDoc (" rooms/Eros" , 1 , @{@" name" : @" Eros" }, NO );
50
+ FSTDocument *doc2 = FSTTestDoc (" rooms/Hades" , 2 , @{@" name" : @" Hades" }, NO );
51
51
FSTDocument *doc2prime =
52
- FSTTestDoc (@ " rooms/Hades" , 3 , @{@" name" : @" Hades" , @" owner" : @" Jonny" }, NO );
52
+ FSTTestDoc (" rooms/Hades" , 3 , @{@" name" : @" Hades" , @" owner" : @" Jonny" }, NO );
53
53
54
54
FSTQueryListener *listener = [self listenToQuery: query accumulatingSnapshots: accum];
55
55
FSTQueryListener *otherListener = [self listenToQuery: query accumulatingSnapshots: otherAccum];
@@ -127,8 +127,8 @@ - (void)testMutingAsyncListenerPreventsAllSubsequentEvents {
127
127
NSMutableArray <FSTViewSnapshot *> *accum = [NSMutableArray array ];
128
128
129
129
FSTQuery *query = FSTTestQuery (" rooms/Eros" );
130
- FSTDocument *doc1 = FSTTestDoc (@ " rooms/Eros" , 3 , @{@" name" : @" Eros" }, NO );
131
- FSTDocument *doc2 = FSTTestDoc (@ " rooms/Eros" , 4 , @{@" name" : @" Eros2" }, NO );
130
+ FSTDocument *doc1 = FSTTestDoc (" rooms/Eros" , 3 , @{@" name" : @" Eros" }, NO );
131
+ FSTDocument *doc2 = FSTTestDoc (" rooms/Eros" , 4 , @{@" name" : @" Eros2" }, NO );
132
132
133
133
__block FSTAsyncQueryListener *listener = [[FSTAsyncQueryListener alloc ]
134
134
initWithDispatchQueue: self .asyncQueue
@@ -167,8 +167,8 @@ - (void)testDoesNotRaiseEventsForMetadataChangesUnlessSpecified {
167
167
NSMutableArray <FSTViewSnapshot *> *fullAccum = [NSMutableArray array ];
168
168
169
169
FSTQuery *query = FSTTestQuery (" rooms" );
170
- FSTDocument *doc1 = FSTTestDoc (@ " rooms/Eros" , 1 , @{@" name" : @" Eros" }, NO );
171
- FSTDocument *doc2 = FSTTestDoc (@ " rooms/Hades" , 2 , @{@" name" : @" Hades" }, NO );
170
+ FSTDocument *doc1 = FSTTestDoc (" rooms/Eros" , 1 , @{@" name" : @" Eros" }, NO );
171
+ FSTDocument *doc2 = FSTTestDoc (" rooms/Hades" , 2 , @{@" name" : @" Hades" }, NO );
172
172
173
173
FSTListenOptions *options = [[FSTListenOptions alloc ] initWithIncludeQueryMetadataChanges: YES
174
174
includeDocumentMetadataChanges: NO
@@ -205,10 +205,10 @@ - (void)testRaisesDocumentMetadataEventsOnlyWhenSpecified {
205
205
NSMutableArray <FSTViewSnapshot *> *fullAccum = [NSMutableArray array ];
206
206
207
207
FSTQuery *query = FSTTestQuery (" rooms" );
208
- FSTDocument *doc1 = FSTTestDoc (@ " rooms/Eros" , 1 , @{@" name" : @" Eros" }, YES );
209
- FSTDocument *doc2 = FSTTestDoc (@ " rooms/Hades" , 2 , @{@" name" : @" Hades" }, NO );
210
- FSTDocument *doc1Prime = FSTTestDoc (@ " rooms/Eros" , 1 , @{@" name" : @" Eros" }, NO );
211
- FSTDocument *doc3 = FSTTestDoc (@ " rooms/Other" , 3 , @{@" name" : @" Other" }, NO );
208
+ FSTDocument *doc1 = FSTTestDoc (" rooms/Eros" , 1 , @{@" name" : @" Eros" }, YES );
209
+ FSTDocument *doc2 = FSTTestDoc (" rooms/Hades" , 2 , @{@" name" : @" Hades" }, NO );
210
+ FSTDocument *doc1Prime = FSTTestDoc (" rooms/Eros" , 1 , @{@" name" : @" Eros" }, NO );
211
+ FSTDocument *doc3 = FSTTestDoc (" rooms/Other" , 3 , @{@" name" : @" Other" }, NO );
212
212
213
213
FSTListenOptions *options = [[FSTListenOptions alloc ] initWithIncludeQueryMetadataChanges: NO
214
214
includeDocumentMetadataChanges: YES
@@ -254,11 +254,11 @@ - (void)testRaisesQueryMetadataEventsOnlyWhenHasPendingWritesOnTheQueryChanges {
254
254
NSMutableArray <FSTViewSnapshot *> *fullAccum = [NSMutableArray array ];
255
255
256
256
FSTQuery *query = FSTTestQuery (" rooms" );
257
- FSTDocument *doc1 = FSTTestDoc (@ " rooms/Eros" , 1 , @{@" name" : @" Eros" }, YES );
258
- FSTDocument *doc2 = FSTTestDoc (@ " rooms/Hades" , 2 , @{@" name" : @" Hades" }, YES );
259
- FSTDocument *doc1Prime = FSTTestDoc (@ " rooms/Eros" , 1 , @{@" name" : @" Eros" }, NO );
260
- FSTDocument *doc2Prime = FSTTestDoc (@ " rooms/Hades" , 2 , @{@" name" : @" Hades" }, NO );
261
- FSTDocument *doc3 = FSTTestDoc (@ " rooms/Other" , 3 , @{@" name" : @" Other" }, NO );
257
+ FSTDocument *doc1 = FSTTestDoc (" rooms/Eros" , 1 , @{@" name" : @" Eros" }, YES );
258
+ FSTDocument *doc2 = FSTTestDoc (" rooms/Hades" , 2 , @{@" name" : @" Hades" }, YES );
259
+ FSTDocument *doc1Prime = FSTTestDoc (" rooms/Eros" , 1 , @{@" name" : @" Eros" }, NO );
260
+ FSTDocument *doc2Prime = FSTTestDoc (" rooms/Hades" , 2 , @{@" name" : @" Hades" }, NO );
261
+ FSTDocument *doc3 = FSTTestDoc (" rooms/Other" , 3 , @{@" name" : @" Other" }, NO );
262
262
263
263
FSTListenOptions *options = [[FSTListenOptions alloc ] initWithIncludeQueryMetadataChanges: YES
264
264
includeDocumentMetadataChanges: NO
@@ -291,10 +291,10 @@ - (void)testMetadataOnlyDocumentChangesAreFilteredOutWhenIncludeDocumentMetadata
291
291
NSMutableArray <FSTViewSnapshot *> *filteredAccum = [NSMutableArray array ];
292
292
293
293
FSTQuery *query = FSTTestQuery (" rooms" );
294
- FSTDocument *doc1 = FSTTestDoc (@ " rooms/Eros" , 1 , @{@" name" : @" Eros" }, YES );
295
- FSTDocument *doc2 = FSTTestDoc (@ " rooms/Hades" , 2 , @{@" name" : @" Hades" }, NO );
296
- FSTDocument *doc1Prime = FSTTestDoc (@ " rooms/Eros" , 1 , @{@" name" : @" Eros" }, NO );
297
- FSTDocument *doc3 = FSTTestDoc (@ " rooms/Other" , 3 , @{@" name" : @" Other" }, NO );
294
+ FSTDocument *doc1 = FSTTestDoc (" rooms/Eros" , 1 , @{@" name" : @" Eros" }, YES );
295
+ FSTDocument *doc2 = FSTTestDoc (" rooms/Hades" , 2 , @{@" name" : @" Hades" }, NO );
296
+ FSTDocument *doc1Prime = FSTTestDoc (" rooms/Eros" , 1 , @{@" name" : @" Eros" }, NO );
297
+ FSTDocument *doc3 = FSTTestDoc (" rooms/Other" , 3 , @{@" name" : @" Other" }, NO );
298
298
299
299
FSTQueryListener *filteredListener =
300
300
[self listenToQuery: query accumulatingSnapshots: filteredAccum];
@@ -323,8 +323,8 @@ - (void)testWillWaitForSyncIfOnline {
323
323
NSMutableArray <FSTViewSnapshot *> *events = [NSMutableArray array ];
324
324
325
325
FSTQuery *query = FSTTestQuery (" rooms" );
326
- FSTDocument *doc1 = FSTTestDoc (@ " rooms/Eros" , 1 , @{@" name" : @" Eros" }, NO );
327
- FSTDocument *doc2 = FSTTestDoc (@ " rooms/Hades" , 2 , @{@" name" : @" Hades" }, NO );
326
+ FSTDocument *doc1 = FSTTestDoc (" rooms/Eros" , 1 , @{@" name" : @" Eros" }, NO );
327
+ FSTDocument *doc2 = FSTTestDoc (" rooms/Hades" , 2 , @{@" name" : @" Hades" }, NO );
328
328
FSTQueryListener *listener =
329
329
[self listenToQuery: query
330
330
options: [[FSTListenOptions alloc ] initWithIncludeQueryMetadataChanges: NO
@@ -366,8 +366,8 @@ - (void)testWillRaiseInitialEventWhenGoingOffline {
366
366
NSMutableArray <FSTViewSnapshot *> *events = [NSMutableArray array ];
367
367
368
368
FSTQuery *query = FSTTestQuery (" rooms" );
369
- FSTDocument *doc1 = FSTTestDoc (@ " rooms/Eros" , 1 , @{@" name" : @" Eros" }, NO );
370
- FSTDocument *doc2 = FSTTestDoc (@ " rooms/Hades" , 2 , @{@" name" : @" Hades" }, NO );
369
+ FSTDocument *doc1 = FSTTestDoc (" rooms/Eros" , 1 , @{@" name" : @" Eros" }, NO );
370
+ FSTDocument *doc2 = FSTTestDoc (" rooms/Hades" , 2 , @{@" name" : @" Hades" }, NO );
371
371
FSTQueryListener *listener =
372
372
[self listenToQuery: query
373
373
options: [[FSTListenOptions alloc ] initWithIncludeQueryMetadataChanges: NO
0 commit comments