Sami Samhuri
bc9645aa4f
Added a test for hex conversions in CPColor
2010-09-10 10:02:21 +02:00
Aparajita Fishman
ce2c662872
Fixes to previous CPButton image positioning commit.
...
- Checkbox and radio selected states would not show in the images. It turns out that the image and alternate image cannot be encoded->decoded->set without messing up the theme, and unfortunately the theme blending task (during a jake build) would do so. So for now this means that we cannot encode non-theme images with a button class, which is unlikely to happen.
- Since we cannot access themes in the NS classes, I went ahead and started to make some constants in a few control classes so that the values can be changed in one place and affect the theme and nib2cib.
2010-09-10 09:56:26 +02:00
Aparajita Fishman
6680a1f2a7
Overhaul of CPButton and supporting classes to support image positioning the way Cocoa does
2010-09-08 22:13:39 +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
luddep
c489909542
Added manual test for cpscrollview behavior
2010-09-03 11:09:08 -04:00
Alexander Ljungberg
bdcef193b7
Minor CPArrayTest cleanup.
2010-08-31 23:45:35 -04:00
Derek Hammer
d377790e9d
Adding some tests to verify behavior.
2010-08-31 23:41:51 -04:00
Alexander Ljungberg
9a31297249
Put the logging setup into the natural code path.
2010-08-31 22:33:11 -04:00
Aparajita Fishman
b4f7df4786
Graphics primitives
...
- Implemented CGRectDivide/CPDivideRect.
- Implemented CPDrawTiledRects/CPDrawColorTiledRects.
- Removed CPDrawGrayBezel and CPDrawGroove, they were not being done in a Cocoa-compliant way, and the Cocoa way is not really useful right now.
- Moved border drawing code back to CPScrollView since CPDrawGrayBezel/CPDrawGroove are gone.
- Test app to do simple demo of the new functions.
- Removed trailing whitespace.
2010-08-31 22:26:54 -04:00
Alexander Ljungberg
18d7dcc226
Closes #849 . Test application to verify the graphical rendering of menus.
2010-08-31 22:18:26 -04:00
Aparajita Fishman
6b940116be
Added ability to set sample text
2010-08-31 22:02:50 -04:00
Aparajita Fishman
18696e6bc2
Ensure CPControl -performClick unhighlights the button if the action throws.
2010-08-27 15:58:35 -04:00
Aparajita Fishman
4f2914a123
Implementation of CPFont -ascender, -descender and -defaultLineHeightForFont, supporting method +metricsOfFont in CPStringDrawing and CPPlatformString, and Font Metrics Explorer test app.
2010-08-27 14:32:03 -04:00
Alexander Ljungberg
431c6522a6
Test alerts with 1 or 0 buttons defined.
2010-08-27 14:07:31 -04:00
Klaas Pieter Annema
f8ceaf62b7
set font for tableCell during nib2cib
2010-08-27 15:50:59 +02:00
Alexander Ljungberg
9a42e12985
Moved TableCibTest into the table tests folder.
2010-08-25 16:15:27 -04:00
Alexander Ljungberg
1a27ae39a3
Removed CPAlert long message test from last commit since this branch already has its own long message test. Also slight clean up.
2010-08-24 11:58:36 -04:00
cacaodev
ee4802e513
CPAlert: Attached alerts. Added a new method -beginSheetModalForWindow: that calls -alertDidEnd:returnCode: on ending. CPAlertTest update testing it.
...
Fixed a bug in CPWindow where the didEndSelector was reset too early. This bug was visible only when trying to chain sheet alerts.
Fixed a local/instance variable conflict in AttachedSheet/AppController.j
2010-08-24 11:50:44 -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
Aparajita Fishman
05edec8a8b
Removed CPButton -setDefaultButton, new version of CPButton after merging with latest master.
2010-08-22 18:53:52 -04:00
Aparajita Fishman
75cc0be52a
Test app for default button fixes
2010-08-22 18:48:43 -04:00
Alexander Ljungberg
e766a2c945
Fixed: if a CPAlert message was 3 lines or more and there was no informative text, the upper half of the CPAlert buttons would not react to clicks as the blank informative label partially covered them.
2010-08-21 17:47:03 -04:00
Alexander Ljungberg
c06068c931
Themable CPAlert which automatically grows height-wise to accommodate all text. Adjustable icons, margins, spacing and fonts.
2010-08-19 23:03:35 -04:00
Alexander Ljungberg
077e548219
Manual test for CPAlert which cycles through all 6 possible alert types for visual verification.
2010-08-19 19:08:25 -04:00
Alexander Ljungberg
bdf20b0267
Merge branch 'master' of github.com:280north/cappuccino
2010-08-13 20:24:00 -04:00
Alexander Ljungberg
0292203ec0
Test that CPValueTransformerBindingOption works with CPTableColumn bindings. When run the rightmost column should read "right" and "also right" in the two initial rows.
2010-08-13 20:19:45 -04:00
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
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
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
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
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
8ecac8d03c
Fix and test case for issue #746
2010-07-28 16:12:02 -07:00
Aparajita Fishman
cb7f60aba8
Added -indexOfObjectPassingTest: and related methods
2010-07-28 15:57:47 -07:00