Aparajita Fishman
293114f1a0
Fixed: delete methods erased entire field
...
Previously, the deleteForward:, deleteBackward: and delete: methods in CPTextField called setStringValue, which would consult a formatter, and if the formatter failed all of the text would be deleted.
Now the code has been refactored such that when one of the delete methods is invoked via a key event, the formatter is not used and the DOM event is used, which results in the expected behavior.
A bug in checking the selected range was also fixed in deleteForward:.
The CPFormatter test was updated with buttons to call the delete methods directly to ensure they work correctly when not invoked from a key event.
Closes #1997
2014-07-29 23:32:14 +04:00
Alexander Ljungberg
7470f4ffcf
New: CPEvent scrollingDeltaX, scrollingDeltaY and hasPreciseScrollingDeltas.
...
Refs #2013 .
2014-07-23 15:00:30 +01:00
Alexander Ljungberg
58928a5000
Formatting: CPDateFormatter changes and tests.
...
Refs #2155 .
2014-07-22 12:49:35 +01:00
Alexander Ljungberg
4c44ede945
Merge pull request #2155 from krodelin/CPDateFormatter-emptyLanguages
...
Fixed: CPDateFormatter now works for non-"en" locales [+1]
2014-07-22 12:41:03 +01:00
Alexander Ljungberg
d3c4105429
Formatting recent changes.
2014-07-22 12:09:06 +01:00
Antoine Mercadal
ed307adb22
Merge pull request #2135 from Dogild/TokenFieldDelegate
...
Fixed: unsigned delegate methods of CPTokenField erased by CPTextField
2014-07-18 18:42:49 -07:00
Antoine Mercadal
8001688daf
Merge pull request #2076 from cacaodev/issue2039
...
FIXED: Error when binding several objects to the same objectController [+1]
2014-07-18 18:42:18 -07:00
Antoine Mercadal
4c0687b9a5
Merge branch 'fix-menu-enabled-bindings' of https://github.com/daboe01/cappuccino into daboe01-fix-menu-enabled-bindings
2014-07-15 10:22:46 -07:00
Alexandre Wilhelm
33043dd8af
Fixed: removed unsued code in CPTokenFieldTest
2014-07-13 21:25:35 -07:00
Antoine Mercadal
1848f96efa
FIXED: style
2014-07-10 11:39:43 -07:00
Antoine Mercadal
51440cc7f7
Merge branch 'FIXED--insertAttributedString-did-not-coalsece' of https://github.com/daboe01/cappuccino into daboe01-FIXED--insertAttributedString-did-not-coalsece
2014-07-10 11:38:37 -07:00
Antoine Mercadal
09f100c0c2
Merge branch 'fix-cfhttp-cpurl-2141-2138' of https://github.com/ahankinson/cappuccino into ahankinson-fix-cfhttp-cpurl-2141-2138
2014-07-09 15:45:28 -07:00
Antoine Mercadal
03c45a78a9
Merge branch 'popoverOpen' of https://github.com/Dogild/cappuccino into Dogild-popoverOpen
2014-07-09 14:06:12 -07:00
Udo Schneider
ce82ce1444
Test: Added Tests for non-english locales
...
CPDateFormatter only supports the "en" locale by default. All other locales yield empty results for most symbols. The tests added ensure, that the english "default" values are returned if no specific data is available (which is currently the case for every locale except "en").
2014-07-01 00:23:44 +02:00
Alexandre Wilhelm
6d78ed3462
Fixed: CPPopover test doesn't handle semi-transient state
2014-06-29 19:17:17 -07:00
Antoine Mercadal
f418f9de4c
Merge pull request #2139 from Dogild/EscapePanel
...
Fixed: CPPanel and popover doesn't close when hitting escape
2014-06-24 17:45:27 -07:00
Antoine Mercadal
036b82afd9
Merge pull request #2134 from Dogild/CPTextFieldEditingStyle
...
Fixed: CPTextField doesn't update its style when editing [+1]
2014-06-24 16:44:05 -07:00
Andrew Hankinson
a896fe7425
Test: New CFHTTPRequest test
...
This commit adds a new test for CFHTTPRequest, which at present only contains the test for withCredentials
2014-06-23 16:15:24 -04:00
Andrew Hankinson
6c52e4936f
Tests: Updating test for CPURLConnection
...
This test checks to make sure the CPURLConnection withCredentials functionality works.
2014-06-23 16:14:21 -04:00
Alexander Ljungberg
8d7594c96a
Formatting and clean up.
...
Refs #2103 .
2014-06-22 16:07:17 +01:00
Alexander Ljungberg
ed36869f1d
Test: complex message receiver.
...
Refs #2103 .
2014-06-22 16:02:37 +01:00
Alexander Ljungberg
ea3adc44fd
Fixed: objj_msgSend_reset not resetting with fast objj_msgSend.
...
Refs #2103 .
2014-06-22 14:29:40 +01:00
Alexander Ljungberg
5fafc97bc0
Merge branch 'master' into fastobjj
2014-06-22 13:05:32 +01:00
Alexander Ljungberg
fba900707a
Test: formatting, fix name of previous test.
...
Refs #2103 .
2014-06-22 12:58:24 +01:00
Alexander Ljungberg
175a455d75
Test: add CPAutosizePerformance test to validate objj_msgSend speed improvements.
...
This test was written by cacaodev.
Refs #2103 .
2014-06-22 12:57:11 +01:00
Alexandre Wilhelm
5d5d03fd4c
Fixed: textField in CPTextFieldTest doens't have a placeholder
2014-06-19 21:05:06 -07:00
Alexandre Wilhelm
cd6ffba9ac
Fixed: CPPanel and popover doesn't close when hitting escape
...
Previously, a panel or a popover didn't close when the user hit the key escape.
Now it does. The panel or the popover will close on the keyDown event as in cocoa.
Test app in Tests/Manual/CPPanelTest/ and Tests/Manual/CPPopoverTests
Fixed #1767
2014-06-18 16:29:13 -07:00
Alexandre Wilhelm
4568dfabb9
Added: added unit test for CPTokenField
2014-06-12 10:58:11 -07:00
Alexandre Wilhelm
a129f2c5c5
Fixed: CPTextField doesn't update its style when editing
...
Previously, the update of the style of an editing textField didn't work.
Now when editing, we can update the font, color, alignment and vertical-alignment of the textField
Test app in Tests/Manual/CPTextFieldEditingStyleTest/
Fixed #2057
2014-06-09 12:16:15 -07:00
cacaodev
770b0c7022
Here is an ojtest for this issue.
2014-06-07 18:34:59 +02:00
daboe01
4632ba3ae5
double var fix
2014-06-04 20:38:51 +02:00
daboe01
38d63c3dc9
formatting
2014-06-04 20:33:30 +02:00
Alexander Ljungberg
7c6ef51cb2
New: CPDate dateByAddingTimeInterval:.
...
Refs #2126 .
2014-06-03 17:41:35 +01:00
daboe01
76ce921778
added manual test
2014-05-20 06:00:36 +02:00
daboe01
4819f3ca15
whitespace formatting
2014-05-13 21:07:41 +02:00
daboe01
48dd722db9
unit test for coalesce on insert
2014-05-13 20:51:53 +02:00
Alexander Ljungberg
f151920404
Fixed: table view selection text colour in Aristo 1.
...
This is the same fix as in a4702d48b4 but applied to Aristo 1.
Refs #2009 , refs #2001 .
2014-05-12 16:04:00 +01:00
Alexander Ljungberg
02f36a1abe
New: theme kitchen sink manual test to exercise many themable controls in many states at once.
...
This test makes it easier to verify themes and theme tweaks.
2014-05-12 15:22:39 +01:00
Alexander Ljungberg
ba27a4cc4a
Fixed: new first responder and key window theme states not always applied.
2014-05-12 15:17:49 +01:00
Alexander Ljungberg
025a43ea4e
New: CPThemeStateKeyWindow for CPView.
...
Every view in the key window now takes on the 'key window' theme state. This makes it easy to theme everything in inactive windows in more muted colours. Also, combined with the first responder theme state of the previous commit we can have visuals like "first responder but in an inactive window" for text views and such things.
2014-05-11 15:51:17 +01:00
Alexander Ljungberg
050fcf2ab8
New: CPThemeStateFirstResponder for CPView.
...
When a CPView becomes the first responder it now takes on the 'first responder' theme state, as does all its subviews. This allows it to naturally change appearance when it has the keyboard focus, such as with focus rings and brighter colour schemes.
2014-05-11 15:48:37 +01:00
Alexander Ljungberg
c9642fcf35
Test: CPLevelIndicatorTest.
...
Refs #2071 .
2014-05-09 23:24:50 +01:00
Alexander Ljungberg
79c257642c
New: visual test for warning/critical state in CPLevelIndicator.
...
This change makes sure there is both a level indicator which goes into warning and critical display mode for low levels and one which goes into the same for high levels in the manual test for level indicator.
Refs #2071 .
2014-05-09 23:04:02 +01:00
Alexander Ljungberg
b5f9501001
Test: CPObject isSubclassOfClass.
2014-04-16 23:01:17 +01:00
Martin Carlberg
e8e10d4224
Fixed: If receiver in the function objj_msgSend is a class we don't need to check if it is nil as a class can never be nil without the load has already failed.
2014-04-15 13:52:41 +02:00
Martin Carlberg
88d2ed9e93
Fixed: Forgot to commit the files for the new test case
2014-04-14 18:39:34 +02:00
Martin Carlberg
ab5674aa4e
Fixed: Send message test cases now work. Also added a test case for send message with 'self' as receiver
2014-04-14 16:38:34 +02:00
Martin Carlberg
0f5b36e9c5
Fixed: Code generated in test cases is corrected for the fast msgSend function
2014-04-09 17:02:28 +02:00
Antoine Mercadal
7ac37b75f3
Merge pull request #2097 from Asriwi/fix-textfield-placeholder
...
Fixed: show placeholder string while editing empty CPTextField
2014-04-03 10:50:05 -07:00
Antoine Mercadal
c6bd758793
Merge pull request #2087 from Dogild/CPAnimationDelegateProtocol
...
New: Added protocol CPAnimationDelegate
2014-04-03 10:40:07 -07:00