| OLD | NEW |
| 1 // Copyright (c) 2006 Apple Computer, Inc. All rights reserved. | 1 // Copyright (c) 2006 Apple Computer, Inc. All rights reserved. |
| 2 // | 2 // |
| 3 // Redistribution and use in source and binary forms, with or without | 3 // Redistribution and use in source and binary forms, with or without |
| 4 // modification, are permitted provided that the following conditions | 4 // modification, are permitted provided that the following conditions |
| 5 // are met: | 5 // are met: |
| 6 // | 6 // |
| 7 // 1. Redistributions of source code must retain the above copyright | 7 // 1. Redistributions of source code must retain the above copyright |
| 8 // notice, this list of conditions and the following disclaimer. | 8 // notice, this list of conditions and the following disclaimer. |
| 9 // | 9 // |
| 10 // 2. Redistributions in binary form must reproduce the above | 10 // 2. Redistributions in binary form must reproduce the above |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 assertArrayEquals(['d'], arr.splice(-1)) | 53 assertArrayEquals(['d'], arr.splice(-1)) |
| 54 assertArrayEquals(['a','b','c'], arr); | 54 assertArrayEquals(['a','b','c'], arr); |
| 55 | 55 |
| 56 assertArrayEquals([], arr.splice(2, undefined)) | 56 assertArrayEquals([], arr.splice(2, undefined)) |
| 57 assertArrayEquals([], arr.splice(2, null)) | 57 assertArrayEquals([], arr.splice(2, null)) |
| 58 assertArrayEquals([], arr.splice(2, -1)) | 58 assertArrayEquals([], arr.splice(2, -1)) |
| 59 assertArrayEquals([], arr.splice(2, 0)) | 59 assertArrayEquals([], arr.splice(2, 0)) |
| 60 assertArrayEquals(['a','b','c'], arr); | 60 assertArrayEquals(['a','b','c'], arr); |
| 61 assertArrayEquals(['c'], arr.splice(2, 100)) | 61 assertArrayEquals(['c'], arr.splice(2, 100)) |
| 62 assertArrayEquals(['a','b'], arr); | 62 assertArrayEquals(['a','b'], arr); |
| OLD | NEW |