Martin Carlberg and Aparajita Fishman
0b1805d96f
Fixed: Temporary removed test case asserting throw when creating CPDictionary with nil object
2013-03-06 07:57:23 -05:00
Martin Carlberg and Aparajita Fishman
cfe099bb30
Fixed: Broken test case
2013-03-06 07:57:18 -05:00
Alexander Ljungberg
f4b08a9ce2
New: - CPObject performSelector:withObject:afterDelay:.
...
Also - CPObject cancelPreviousPerformWithTarget: and other related methods.
2013-03-05 18:52:06 +00:00
Alexander Ljungberg
8bcbeb0aa9
Improve code readability with dictionary literals.
2013-02-25 17:02:36 +00:00
Alexander Ljungberg
472848da91
New: array literals in Objective-J 2.0.
...
Array literals look like `@[a, b, c]`.
This syntax is supported for completeness and source compatibility, but are not terribly useful since standard JavaScript arrays are toll-free bridged to CPArray.
Array literals could be handy if you're replacing CPArray with your own implementation.
2013-02-25 14:57:05 +00:00
Alexander Ljungberg
5200f945fe
New: dictionary literals in Objective-J 2.0.
2013-02-25 14:24:29 +00: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
0268f9865c
Faster CPMutableArray removeObjectIdenticalTo:.
...
About 6-8X speedup by skipping all the `indexOfObjectIdenticalTo:` calls and going straight to JS `indexOf`.
2013-02-24 15:19:00 +00:00
Aparajita Fishman
b6f0a29f8f
Merge branch 'CPURLConnection-sendSynchronousRequest' of https://github.com/cacaodev/cappuccino
2013-02-19 09:47:40 -05:00
aparajita
2425c8c5d3
Merge pull request #1614 from cacaodev/CPDictionary-initWithObjectsAndKeys
...
CPDictionary -initWithObjectsAndKeys: do not treat a nil value as a final value
2013-02-14 11:39:21 -08:00
Aparajita Fishman
63ae5848f6
Formatting, fixes for CPDecimal/CPDecimalNumber
...
- CPDecimalRound should return a result in all cases
- Fixed test of CPDecimalRound with CPDecimalNoScale
2013-02-11 14:05:52 -05:00
Aparajita Fishman
117dda3bb5
Fix unintended globals
2013-02-11 11:17:19 -05:00
Alexander Ljungberg
5361b787c5
Merge pull request #1744 from stevegeek/master
...
Fix for issue #1720
2013-02-11 11:08:47 +00:00
Alexander Ljungberg
9a646f856b
Merge pull request #1673 from mrcarlberg/handle_null_in_cp_description_of_object
...
Fixed error in CPDescriptionOfObject when JSON property has null value
Conflicts:
Foundation/CPObject.j
2013-02-08 12:02:05 +00:00
Alexander Ljungberg
3a92c013eb
Formatting.
2013-02-06 16:37:03 +00:00
Alexander Ljungberg
c5c381a034
Merge remote-tracking branch 'stewa/truepredicate-fix'
...
Conflicts:
Foundation/CPPredicate/CPPredicate.j
2013-02-04 19:02:49 +00:00
cacaodev
04026c054b
_CPJavaScriptArray -objectsAtIndexes: implementation.
...
Added speed test in CPArrayPerformanceTest (6x faster).
2013-02-04 17:26:18 +01:00
Stephen Ierodiaconou
e17253d592
Fixes for #1720 : CPDecimalCompare problems when comparing to zero.
2013-01-30 13:03:43 +02:00
Alexander Ljungberg
b34e24d593
Fixed: mutableArrayValue remove repeat values.
...
mutableArrayValueForKey: … removeObjectsInArray should remove all instances of the found objects. Without this fix, only the first instance was removed.
2013-01-28 00:31:50 +00:00
Alexander Ljungberg
30ae887126
Fix unit tests failing due to recent description changes.
2013-01-26 12:03:28 +00:00
Alexander Ljungberg
237143851d
Fixed: KVC array removeObjectsInArray:.
...
Without this fix, KVCArray could try to remove an out of bounds index at CPNotFound from its target array.
This fix makes it so that only found objects are removed.
2013-01-26 01:18:22 +00:00
Alexander Ljungberg
76e9725e26
Error on adding CPNotFound to an index set.
2013-01-26 01:11:33 +00:00
Alexander Ljungberg
1f5920f685
Fix merge error in 1f98dbd.
...
This error caused some failing tests.
2013-01-24 11:41:59 +00:00
Aparajita Fishman
1f98dbdf65
Fixed test cases
2013-01-24 09:01:54 +08:00
Alexander Ljungberg
6281c6469b
Fix unit test warnings.
2013-01-24 00:08:47 +00:00
Alexander Ljungberg
401a5f7ff7
Clean up.
2013-01-23 22:28:01 +00:00
Alexander Ljungberg
1f0ab2ab49
Fixes #1721 . Fixed: bad negative numbers from CPNumberFormatter.
...
Without this fix, CPNumberFormatter didn't format negative values well. E.g. with thousands separators on it could generate, "-,999.00".
This fix generally improves handling of negative numbers by CPNumberFormatter.
2013-01-23 22:23:50 +00:00
Alexander Ljungberg
8eae427591
Merge branch 'master' of github.com:cappuccino/cappuccino
2013-01-19 02:27:55 +00:00
Alexander Ljungberg
dfad18e047
New website location.
2013-01-19 02:11:37 +00:00
Antoine Mercadal
e8ee370499
Merge branch 'master' into objj2integration
2013-01-15 09:49:25 -08:00
Alexander Ljungberg
821961fc26
Argument check CPIndexSet indexSetWithIndex:.
...
Without this check, an index set could be initialised with NaN which would later lead to an infinite loop when enumerating the index set.
This error makes the error early and explicit.
2013-01-15 16:08:17 +00:00
Martin Carlberg
ed6c35a59f
Merge branch 'master' of https://github.com/cappuccino/cappuccino into objj_compiler2
...
Conflicts:
AppKit/CPWindow/CPWindow.j
2013-01-11 20:40:35 +01:00
Alexander Ljungberg
23817a04e1
Unit test HTTP response header parsing.
2013-01-11 12:28:14 +00:00
Martin Carlberg
c4e06bd2f7
Merge branch 'master' of https://github.com/cappuccino/cappuccino into objj_compiler2
2013-01-11 08:09:12 +01:00
Antoine Mercadal
71f502a8e8
Fix some ivar masking in tests
2013-01-10 23:04:12 -08:00
Stefan Wallström
24d6e581a6
Fixed: CPPredicate: TRUEPREDICATE didn't work
...
CPPredicate_BOOL didn't implement any methods necessary for TRUEPREDICATE to evaluate to true.
2013-01-03 11:04:53 +01:00
Martin Carlberg
fd59efe41f
Bug fixes for failing test cases
2012-12-17 11:15:50 +01:00
Martin Carlberg
b52217e8a0
Tried to make the import mess a little better. Fixed a lot of bugs. Changed some class names in the test cases. Looks like all the tests are being run in the same space. Has to look into this…..
2012-12-17 00:40:26 +01:00
Martin Carlberg
c297e926f9
Compiler now works with jake and can compiler the whole Cappuccino framework. A lot of test cases still fail
2012-12-16 17:38:47 +01:00
Alexander Ljungberg
59ad8499df
Refs #1676 . Whitespace.
2012-09-24 17:05:35 +01:00
Johan Stille
eb2bb24c19
Added support for CPNumberFormatterPercentStyle in CPNumberFormatter.
2012-09-24 12:08:31 +02:00
Martin Carlberg
23401d37d8
Fixed error in function CPDescriptionOfObject when a JSON object property has a null value.
...
The function can't handle the following JSON object: {name:null}.
Also added a test case for this.
2012-09-14 10:54:41 +02:00
Alexander Ljungberg
bf3a152946
Whitespace.
2012-09-03 20:20:05 +01:00
Alexander Ljungberg
b28673d23d
Eliminate some debug output from jake test runs.
2012-08-24 17:26:27 +01: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
6d4ce10150
Formatting.
2012-08-21 01:24:36 +01:00
Alexander Ljungberg
4fbd0fdc42
Unit test KVCArray setArray: behaviour.
2012-08-19 16:50:09 +01:00
Eric Wong
175c70d99e
fix a new bug in CPDecimalMakeWithString and remove some test cases
2012-08-05 08:37:44 +08:00
Eric Wong
9f1a8fa7a2
enable '.003' or '-.003' style number in CPDecimalMakeWithString function and add new test cases
2012-08-04 23:04:40 +08:00