Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit 8d0f8d9

Browse files
vicbmhevery
authored andcommitted
test(change detector): re-add a previously failing test
1 parent 1d042b6 commit 8d0f8d9

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

test/change_detection/dirty_checking_change_detector_spec.dart

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -294,12 +294,11 @@ main() => describe('DirtyCheckingChangeDetector', () {
294294
detector.collectChanges();
295295
list.insert(0, 'b');
296296
expect(list).toEqual(['b', 'a', 'a', 'b', 'b']);
297-
// todo(vbe) There is something wrong when running this test w/ karma
298-
// expect(detector.collectChanges().currentValue, toEqualCollectionRecord(
299-
// collection: ['b[2 -> 0]', 'a[0 -> 1]', 'a[1 -> 2]', 'b', 'b[null -> 4]'],
300-
// additions: ['b[null -> 4]'],
301-
// moves: ['b[2 -> 0]', 'a[0 -> 1]', 'a[1 -> 2]'],
302-
// removals: []));
297+
expect(detector.collectChanges().currentValue, toEqualCollectionRecord(
298+
collection: ['b[2 -> 0]', 'a[0 -> 1]', 'a[1 -> 2]', 'b', 'b[null -> 4]'],
299+
additions: ['b[null -> 4]'],
300+
moves: ['b[2 -> 0]', 'a[0 -> 1]', 'a[1 -> 2]'],
301+
removals: []));
303302
});
304303

305304
it('should support UnmodifiableListView', () {

0 commit comments

Comments
 (0)