Tom Robinson
6ce45d32da
Add comparison test for native sorting.
2010-08-13 15:40:33 -07: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
Randall Luecke
22c481ff27
Implemented allKeysForObject: in CPDictionary with tests.
2010-08-12 14:18:45 -05:00
Randall Luecke
1e6f6879ff
Run CPArrayPerformanceTest with jake test.
2010-08-11 23:17:38 -05:00
Alexander Ljungberg
ba33bb56d0
Moved the visual table test for borders into the TableTest folder.
2010-08-12 00:08:43 -04:00
Aparajita Fishman and Alexander Ljungberg
fcf9c0bc84
Full support for all NSScrollView border types, beginnings of a new tableview tester that shows dynamic changing of border type.
2010-08-11 22:49:37 -04:00
cacaodev and Randall Luecke
15356b617b
DrawRowTest that was announced in the previous commit
2010-08-11 16:32:26 -05:00
Randall Luecke
5837533678
Use a default TableView.
2010-08-10 20:58:04 -05:00
Randall Luecke
20ec557655
Initial reorganization of CPTableView testing.
2010-08-10 20:53:43 -05: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
cacaodev and Alexander Ljungberg
750cd3c258
CPComparisonPredicate :
...
Fixed a bug where *lhs custom_selector: nil* was always returning false.
Test nil on left and/or right with some operators.
2010-08-05 16:18:18 -04:00
Alexander Ljungberg
df358ccc42
Fix failing CPPredicate unit tests: comment out test for unimplemented expressionForSubquery, finish CPExpression_unionset and fix typo in CPExpression expressionForIntersectSet.
2010-08-04 21:27:01 -04:00
Alexander Ljungberg
1b5efdfc5b
Fixed with CPPredicate tests: [CPArray arrayWithObjects] don't take a final nil anymore in Cappuccino.
2010-08-04 20:50:55 -04:00
cacaodev and Alexander Ljungberg
974cf64e1d
CPPredicate &al implementation. OJUnit test.
2010-08-04 19:53:44 -04:00
Alexander Ljungberg
4ea0d4d043
CPNull is equal to CPNull. Unit test included.
2010-08-04 16:43:04 -04:00
Alexander Ljungberg
e4c79d2101
Closes #809 . End editing of a text field if it is disabled or made uneditable. Manual test included.
2010-08-02 23:13:06 -04:00
Francisco Ryan Tolmasky I
cea663f4eb
Fix for isEqual: not being implemented in CPIndexSet.
...
Closes #785 .
Reviewed by rossco.
2010-07-28 16:17:54 -07:00
Aparajita Fishman and Ross Boucher
8ecac8d03c
Fix and test case for issue #746
2010-07-28 16:12:02 -07:00
Aparajita Fishman and Ross Boucher
cb7f60aba8
Added -indexOfObjectPassingTest: and related methods
2010-07-28 15:57:47 -07:00
Aparajita Fishman and Ross Boucher
eb99b7d7ca
CPSearchField fixes/enhancements to commit 5b763928fe:
...
- Added more documentation for -defaultSearchTemplate.
- Capitalized the text of the menu items in the default template.
- Adding a separator before no recents menu item if there are items before it.
- Updated the test app to use the default template and then modify it.
- Updated the test app to maintain the state of the custom items.
2010-07-28 15:16:04 -07:00
cacaodev and Ross Boucher
675e9829bd
CPSearchField: Fixes (per cocoa)
...
- Do not override search button action, catch mouse events in mouseDown: instead.
- Do not resign first responder on searchfield when showing the context menu
- Give more space between search button and insertion point
- Do not add search string to recents searches when typing and sendsWholeString == NO, only on enter.
- Select all text when showing the menu or after selecting a recent search in the menu
- Support custom search/cancel buttons and custom layout
- Allow images in template menu items
- Updated Test App with custom buttons
2010-07-28 14:49:02 -07: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
e066228015
Merge branch 'cpindexset-isequal' into arraycontroller-fixes
2010-07-27 09:23:00 +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
24f72c0b73
Merge branch 'master' of git://github.com/280north/cappuccino into arraycontroller-fixes
2010-07-27 08:47:14 +02:00
Klaas Pieter Annema
bb3c08ce0b
add CPArrayController test
2010-07-26 14:04:26 +02:00
Alexander Ljungberg and Ross Boucher
474623feb3
Added support for punctuation based key equivalents such as Cmd-' or Cmd-;. Fixed: [event characters] would contain Þ when Cmd-' was pressed and º for Cmd-; since the key codes for punctuation do not match the ASCII codes and String.fromCharCode does not work. Manual test included.
2010-07-21 14:52:05 -07:00
Randall Luecke
70f2d86b58
Fixes for adding and removing columns to the tableview after the tableview has already been displayed... There are still issues though.
2010-07-12 20:45:30 -05:00
Randall Luecke
7696b30067
Added tests for CPFormatter and Foundation import.
2010-07-11 16:57:17 -05:00
Klaas Pieter Annema
6b132c4d3b
added check for nil in CPIndexSet isEqual
2010-06-30 11:15:38 +02:00
Klaas Pieter Annema
10df31cbf9
made isEqual: work on CPIndexSet and updated unit tests
2010-06-22 07:47:30 +02:00
nciagra
b37f5b4143
Fix CPResponderTest.
2010-06-18 14:18:29 -04:00
Stephen Ierodiaconou
c10b06e29b
Merge branch 'master' of git://github.com/280north/cappuccino into CPDecimalNumber
2010-06-13 00:03:13 +03: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
44555ac724
UTF compatible CFData base64 string encoder and decoder. Use it for CPButton key equivalent archiving. Also ordered CPText.j constants by value and removed the empty CPText class definition as it caused errors with nib2cib. Fixed: the key equivalent for forward delete (CPDeleteFunctionKey, \uF728) was transformed to '(' (\u0028) when archived and unarchived.
2010-06-11 09:39:19 -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
Alexander Ljungberg and Ross Boucher
51825db716
Fixed: [CPDate description] did not generate a correct date for users in timezones with a negative timezone offset.
2010-06-10 10:49:49 -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
f2bb27dc32
Fixed: [CPArray isEqualToArray:nil] threw an exception instead of returning NO.
2010-05-26 19:54:20 -04:00