Martin Carlberg
8599ad4a3c
Fixed: The init method ’initWithObjects:count:’ for CPArray did not work on native CPJavaScriptArray when ’count’ is not the same as the length on the provided array.
...
A test case for this is also added in the test class CPArrayTest
2015-09-25 17:07:15 +02:00
Alexandre Wilhelm
6a1543cb82
Fixed: Duplicate unit-tests
...
Previously, some unit-tests had the same name in a test file. Now they have unique name.
2015-02-03 16:46:49 -08:00
Alexander Ljungberg
b0babdb7bb
Formatting.
...
Refs #1959 .
2013-07-15 10:48:14 +01:00
Martin Carlberg
f52f11899a
New: Sort using descriptors handles nil and CPNull in correct way
...
This is the same way as Cocoa works.
Also added test case.
2013-07-09 13:38:13 +02:00
Alexander Ljungberg
6d1c4a9570
Fixed: - CPMutableArray removeObjectIdenticalTo did not remove all instances, was documented incorrectly.
...
Contrary to what the previous documentation said, removeObjectIdenticalTo: should remove all instances of the argument from the receiver, not just the first one.
2013-02-24 23:51:48 +00:00
Alexander Ljungberg
c4370240f8
Fixed: subclasses of CPMutableArray had broken removeObject:.
...
The `removeObject:` default provided in CPMutableArray would not work in subclasses because it relied on the class having a .length property.
2013-02-24 23:43:20 +00:00
Alexander Ljungberg
30ae887126
Fix unit tests failing due to recent description changes.
2013-01-26 12:03:28 +00:00
Aparajita Fishman
1f98dbdf65
Fixed test cases
2013-01-24 09:01:54 +08:00
Alexander Ljungberg
46848562d0
Improve describe format of CPDictionary and CPArray to be more like literals.
...
E.g. a dictionary is expressed as @{key1: value1}, an array like @[value2, value2], a string like @"<value>".
Also don't put all child objects into quotation marks - that makes them all look like strings.
2012-08-24 17:25:37 +01:00
Alexander Ljungberg
5e7125e310
Refs #1538 . Clean up, accidental global.
2012-05-14 21:12:31 +01:00
Alexander Ljungberg
bc370a2a5a
Merge pull request #1538 from mrcarlberg/cappuccino
...
---
Dont you hate when your logs of arrays and dictionaries display [Object object] when you have JavaScript objects in them. Now with this patch all JavaScript objects will be display with all attributes in a nice good looking way. Log CGRect, CGPoint and other JavaScript objects withour any hassle anymore. For example: console.log([myRect]);
2012-05-14 21:12:17 +01:00
Alexander Ljungberg
0a9c9741e8
CPArray mutableCopy.
2011-06-02 15:09:54 -04:00
Francisco Ryan Tolmasky I
5fd470acea
Fix for adding a js object to a CPArray and associated tests.
...
Reviewed by me.
2011-01-12 08:41:02 -08:00
Francisco Ryan Tolmasky I
1f5ad49591
CPMutableArray fixes and tests.
...
Reviewed by me.
2011-01-11 15:27:35 -08:00
Francisco Ryan Tolmasky I
3e45c7895c
More tests and bug fixes for CPArray family.
...
Reviewed by me.
2011-01-11 12:08:00 -08:00