"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/cdk/a11y/key-manager/list-key-manager.spec.ts" between
material2-7.3.3.tar.gz and material2-7.3.4.tar.gz

About: material2 offers Material Design components for Angular.

list-key-manager.spec.ts  (material2-7.3.3):list-key-manager.spec.ts  (material2-7.3.4)
skipping to change at line 178 skipping to change at line 178
keyManager.withVerticalOrientation().withHorizontalOrientation(null); keyManager.withVerticalOrientation().withHorizontalOrientation(null);
expect(keyManager.activeItemIndex).toBe(0); expect(keyManager.activeItemIndex).toBe(0);
keyManager.onKeydown(fakeKeyEvents.rightArrow); keyManager.onKeydown(fakeKeyEvents.rightArrow);
expect(keyManager.activeItemIndex).toBe(0); expect(keyManager.activeItemIndex).toBe(0);
expect(fakeKeyEvents.rightArrow.defaultPrevented).toBe(false); expect(fakeKeyEvents.rightArrow.defaultPrevented).toBe(false);
}); });
it('should ignore the horizontal keys when only in horizontal mode', () => { it('should ignore the vertical keys when only in horizontal mode', () => {
keyManager.withVerticalOrientation(false).withHorizontalOrientation('ltr '); keyManager.withVerticalOrientation(false).withHorizontalOrientation('ltr ');
expect(keyManager.activeItemIndex).toBe(0); expect(keyManager.activeItemIndex).toBe(0);
keyManager.onKeydown(fakeKeyEvents.downArrow); keyManager.onKeydown(fakeKeyEvents.downArrow);
expect(keyManager.activeItemIndex).toBe(0); expect(keyManager.activeItemIndex).toBe(0);
expect(fakeKeyEvents.downArrow.defaultPrevented).toBe(false); expect(fakeKeyEvents.downArrow.defaultPrevented).toBe(false);
}); });
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)