diff --git a/packages/common/test/directives/ng_for_spec.ts b/packages/common/test/directives/ng_for_spec.ts
index 0935650f7e..fef7e67976 100644
--- a/packages/common/test/directives/ng_for_spec.ts
+++ b/packages/common/test/directives/ng_for_spec.ts
@@ -203,6 +203,17 @@ let thisArg: any;
detectChangesAndExpectText('0123456789');
}));
+ it('should display count correctly', async(() => {
+ const template = '{{len}}';
+ fixture = createTestComponent(template);
+
+ getComponent().items = [0, 1, 2];
+ detectChangesAndExpectText('333');
+
+ getComponent().items = [4, 3, 2, 1, 0, -1];
+ detectChangesAndExpectText('666666');
+ }));
+
it('should display first item correctly', async(() => {
const template =
'{{isFirst.toString()}}';