fix(ListWrapper): make list slice in dart return empty list if start and end are inverted like JS

This commit is contained in:
Lenny
2015-08-30 17:03:37 -07:00
committed by vsavkin
parent 105db02e07
commit bced3aaa17
2 changed files with 7 additions and 0 deletions
@@ -62,6 +62,9 @@ export function main() {
it('should support negative end',
() => { expect(ListWrapper.slice(l, -3, -1)).toEqual([2, 3]); });
it('should return empty list if start is greater than end',
() => { expect(ListWrapper.slice(l, 4, 2)).toEqual([]); });
});
describe('indexOf', () => {