Sami Samhuri and Klaas Pieter Annema
bc9645aa4f
Added a test for hex conversions in CPColor
2010-09-10 10:02:21 +02:00
Alexander Ljungberg
e704d42adb
Fixed: if CPArrayController setPreserveSelection was off and a selected item disappeared, an invalid selection state could occur. The error was caused by a slightly overeager early-out optimisation in __setSelectionIndexes.
2010-09-04 22:12:08 -04:00
Alexander Ljungberg
febdf4092e
New implementation of change notifications from CPArrayController.
...
It is crucial that we send notification only before and after complete changes. In the middle notifications might cause observers to see or react to inconsistent data (e.g. selection indexes pointing to rows no longer present). Added some unit tests - more might be needed in the future. Fixed: before and after values when observing array controller key paths during content changes or rearranges were wrong. Fixed: the array controller sent out multiple redundant change notifications.
2010-08-23 18:53:29 -04:00
Alexander Ljungberg
bcb22c7e46
Remove debug output from CPArrayControllerTest.
2010-08-13 14:28:25 -04:00
Alexander Ljungberg
0683b46239
Since issue #795 has not been decided on yet, make CPArrayControllerTest pass without those changes at this time.
2010-08-13 14:18:25 -04:00
Alexander Ljungberg
61ccc39f81
Merge remote branch 'klaaspieter/fix/794-cparraycontroller-preserveselection'
...
Conflicts:
Tests/AppKit/CPArrayControllerTest.j
2010-08-13 14:06:35 -04:00
Alexander Ljungberg
6afe22f351
Merge remote branch 'klaaspieter/fix/784-cparraycontroller-selection'
2010-08-13 14:00:27 -04:00
Alexander Ljungberg
8d635c7a5a
Moved ArrayController1 test into the Manual folder.
2010-08-09 18:21:16 -04:00
Alexander Ljungberg
271bb00147
Marginally faster filter and sort in CPArrayController's arrangeObjects (4% in the performance tester.) Reduced memory usage when both a filter and a sort order are applied. Cleanup of the tester and a filter only test run.
2010-08-09 17:31:36 -04:00
Alexander Ljungberg
998c2f19cf
Performance tester for CPArrayController.
2010-08-09 14:21:22 -04:00
Klaas Pieter Annema
ff98a9be5a
fix preserve selection in removeObjects and added unit test
2010-07-28 15:02:48 +02:00
Klaas Pieter Annema
75ceeffab8
remove commented code from CPArrayControllerTest
2010-07-28 13:28:53 +02:00
Klaas Pieter Annema
48a5d55af7
fix CPArrayController selectPrevious: and selectNext:
...
Also added unit-tests for canSelectPrevious, canSelectNext, selectPrevious: and selectNext:
2010-07-27 09:10:41 +02:00
Klaas Pieter Annema
bb3c08ce0b
add CPArrayController test
2010-07-26 14:04:26 +02:00
nciagra
b37f5b4143
Fix CPResponderTest.
2010-06-18 14:18:29 -04:00
Alexander Ljungberg and Ross Boucher
1c35bd22f8
Don't test keyCodes directly in CPResponder now that we have proper key equivalent characters.
2010-06-11 12:05:31 -07:00
Alexander Ljungberg and Ross Boucher
c28222e04d
Test CPResponder's interpretKeyEvents in preparation for rewrite.
2010-06-11 12:05:23 -07:00
Alexander Ljungberg and Ross Boucher
5ed475eedd
Slightly faster _couldBeKeyEquivalent (1% of runtime in 3000 calls). Performance test included.
2010-06-10 10:57:42 -07:00
Ross Boucher
c65e3d4e6d
Move the bindings test to the manual folder.
2010-06-09 14:23:27 -07:00
Alexander Ljungberg
c26ebe0bd2
Added support for menu key equivalents such as Escape or Cmd-Delete. Refactored code to recognize key equivalents for reuse between CPMenu and CPButton. Added unit tests for CPMenu key equivalents.
2010-06-07 19:09:15 -04:00
Alexander Ljungberg
381a44148e
Special keys such as backspace and escape can now be used as key equivalents through checking for their unicode representations in [CPEvent characters]. This replaces the earlier raw key code approach.
2010-06-07 19:09:10 -04:00
Alexander Ljungberg
44f5086600
Key equivalents for CPButton.
2010-06-07 19:08:44 -04:00
Ross Boucher
8fd564b034
Minor cleanup to the current test cases.
2010-05-28 10:54:45 -07:00
Alexander Ljungberg
45a2bcb71a
Fixed bindings problems where 'nil' would be transformed into @"". Also, CPIsNilTransformerName and its inverse couldn't work because any nil value was immediately returned without transformations being applied. Full complement of unit tests included, based on Cocoa empirical testing.
...
Fixed with CPKeyValueBinding: the CPValueTransformerNameBindingOption option would cause an exception due a missing import.
2010-05-26 19:50:35 -04:00
Alexander Ljungberg
8b2350fb22
Optimized table data loading when using bindings for the cell values. A special code path in the CPTableColumn's prepareDataView:forRow: method turns a O(n) operation into O(1) where n is the number of items in the model array.
2010-05-26 19:42:59 -04:00
Alexander Ljungberg
ed2c65dd6f
Merge branch 'master' of git://github.com/280north/cappuccino into bindings-merge
...
Conflicts:
AppKit/CPTableView.j
Foundation/CPArray+KVO.j
Foundation/CPArray.j
2010-05-26 19:05:04 -04:00
Alexander Ljungberg and Francisco Ryan Tolmasky I
dfcef3ca2d
Fixed: [CPPopUpButton itemTitles] didn't work.
2010-05-24 15:45:07 -07:00
Klaas Pieter Annema
6f0ca9d94c
Merge branch 'master' into bindings
...
Conflicts:
AppKit/CPTableView.j
AppKit/_CPCornerView.j
Foundation/CPArray.j
Foundation/CPKeyValueCoding.j
Foundation/CPKeyValueObserving.j
2010-04-15 10:57:46 +02:00
aburkhalter and Ross Boucher
6cfa11a94d
Initial boilerplate and file for putting the untested (at least not directly) CPView.j under test. Initial test to confirm we can actually create the object and a test demonstrating issue #562 .
2010-03-27 13:33:04 -07:00
Ross Boucher
efd699a044
Add -isEqual: and -description to CPFont. Add a unit test for -isEqual:
...
Closes #506 .
Closes #505 .
2010-02-27 12:00:44 -08:00
Ross Boucher
df20a6d6df
Add a couple tests for bugs reported from Pivotal. They aren't ideal, though, because of the CPApp issue.
2010-02-23 11:07:53 -08:00
Ross Boucher
e759c5343b
Add a missing import in CPButton, and a test to ensure you can create one on the command line.
2010-02-22 11:07:11 -08:00
luddep
34a6389a92
CPFont now supports multiple font families. Closes #255 .
2010-01-08 18:05:33 +01:00
Ross Boucher
f2608998f9
Fixes a typo in CPRectContainsRect by simply calling out to CGRectContainsRect. We should explore simply removing this method entirely. Includes test cases. Closes #345 .
2009-11-24 18:30:31 -05:00
Ross Boucher
666ac4acd1
Added test for 09858caaedfdc9211b7ee7355e104890b67d0d5e
...
Conflicts:
Tests/AppKit/CPCollectionViewTest.j
2009-10-16 14:37:58 -07:00
Andreas Falk and Ross Boucher
ea15b247d3
Made the item prototype test in the CPCollectionView test check for identity instead of equality
2009-10-16 14:34:49 -07:00
Ross Boucher
ea252323d2
Cleaned up the test to better fit the xUnit standard
...
Conflicts:
Tests/AppKit/CPCollectionViewTest.j
2009-10-16 14:34:35 -07:00
Ross Boucher
306c1a962a
Move tests.
2009-10-08 13:29:24 -07:00
cacaodev and Ross Boucher
570a2a56ff
Added sample app. Corrected style (tabs)
2009-10-08 12:02:35 -07:00
Ross Boucher
3635d0ec26
Bindings Checkpoint.
2009-09-21 13:27:50 -07:00
Ross Boucher
417b5c8b97
Merge branch 'master' into bindings
2009-09-20 18:14:17 -07:00
Francisco Ryan Tolmasky I
3b761ec55e
Fixed a bug in the new CPIndexSet when adding indexes to the back of the set. Also added a test to handle this case. Also moved Table visual tests into Tests/ folder.
...
Reviewed by me.
2009-08-22 02:51:37 -07:00
Francisco Ryan Tolmasky I
ddc9334af3
Merge branch 'master' into tableview
...
Conflicts:
AppKit/CPTableColumn.j
AppKit/CPTableView.j
2009-08-10 15:09:10 -07:00
Geoffrey Grosenbach and Ross Boucher
82cfc5f994
Created initial test for CPSegmentedControl
2009-07-24 23:00:18 -07:00
Francisco Ryan Tolmasky I
08ed16c493
Made CPObjectController's contentObject binding bidirectional.
...
Reviewed by me.
2009-07-22 23:54:38 -07:00
Francisco Ryan Tolmasky I
1195678893
Removed Framework directories from bindings tests.
...
Reviewed by me.
2009-07-22 17:54:53 -07:00
Francisco Ryan Tolmasky I
4ad2c2221f
Merge branch 'master' into bindings
...
Conflicts:
AppKit/CPControl.j
AppKit/CPSlider.j
Foundation/CPArray+KVO.j
2009-07-22 16:41:58 -07:00
Francisco Ryan Tolmasky I
b9208c2f59
Fixed bug in Scroll View where disabled scrollable scroller would appear. Also added tests for CPScrollView.
...
Reviewed by me.
2009-07-06 22:43:43 -07:00
aburkhalter
7ca3473b64
failing test for issue #112 , fix for said issue of _doubleAction ReferenceError
2009-06-06 17:51:32 -07:00
aburkhalter and tlrobinson
927b94244a
Added test coverage for CPSearchField instantiation, recentSearch getter/setter, added DOM protection to class init
2009-06-06 16:49:46 -07:00