daboe01 and GitHub
c58c5554f9
Merge pull request #2018 from vidinoti/patch-1
...
Changing a CALayer in a menu callback doesn't trigger re-draw
2024-12-30 13:57:56 +01:00
Alfred Wärnsäter
9a88f9c324
Added ES2022 as compile option
2022-08-25 15:32:43 +02:00
Alfred Wärnsäter
747ea627c9
Removed debugger statement
2022-08-25 15:30:02 +02:00
Martin Carlberg
edfba15d6f
Merge branch 'master' into node
2022-03-21 15:55:08 +01:00
daboe01 and GitHub
1282f1ac0e
Removed: Flash support ( #2903 )
2022-03-21 15:46:54 +01:00
Didier Korthoudt and GitHub
3d514b5010
Fixed: Aristo3 - Various _CPImageAndTextView bugs ( #2914 )
2022-03-21 14:28:21 +01:00
daboe01 and GitHub
f21555bb6c
Fixed: Width of text sizing was slightly off in chrome due to a Chrome bug ( #2975 )
...
This is a real bug in chrome. see https://bugs.chromium.org/p/chromium/issues/detail?id=1192834
Also fixed: ellipsis clipping in segmented controls
and
fixed: tooltip wrapping issues from fractional pixels
2022-03-21 14:08:45 +01:00
David Richardson and GitHub
9e8d51c94d
New: Add additional manual test for scaleUnitSquareToSize ( #2979 )
...
Currently failing to match behaviour of Objective-C equivalent.
2022-03-21 13:37:24 +01:00
daboe01 and GitHub
22dc587a8f
Fixed: caret was blinking in non-editable text in CPTextView ( #3022 )
2022-03-21 13:00:40 +01:00
Martin Carlberg
9e6f1e0dc3
Fixed: Timezone abbreviation was not working with the latest changes on all setups.
...
This is still not 100% but looks like it works a little bit better
2021-09-21 15:38:51 +02:00
Martin Carlberg
d9e27e549f
Fixed: Removed compiler warnings in test case
2021-09-21 11:11:57 +02:00
Martin Carlberg
9f14dac5d2
Fixed: Cleanup of the output from our test cases
2021-09-21 11:11:25 +02:00
Martin Carlberg
d70199ca58
Fixed: Asynchronous and output changes from the new Terser compressor
2021-09-21 11:09:09 +02:00
Martin Carlberg
6b1cdbd19c
Fixed: Removed compiler warnings from test cases
2021-09-21 10:58:03 +02:00
Martin Carlberg
5b99757a0d
Fixed: The compiler might inline the 'message send' call so we do it manually in these test cases.
2021-09-21 10:56:10 +02:00
Martin Carlberg
6c49116c68
Fixed: Use date string that is not as old as the previous one.
...
JavaScript now handles time a lot better. Times from before around 1900 is different in different
parts of the world so we just changed this test case to be a bit more modern.
2021-09-21 10:55:16 +02:00
Martin Carlberg
68f0cf27df
Fixed: Bundle test cases must run asynchronous as a bundle will also load asynchronous in Node.
...
Also removed some compilation warnings from the test cases.
2021-09-21 10:51:17 +02:00
Martin Carlberg
89757e35e6
Fixed: Class Swapper should convert NSView -> CPView.
...
This is needed when a plain NSView is use without a Custom class name as it will otherwise try to create a NSView.
Also the Class Swapper is only used when the 'Instantiation' is check for 'Prefer code' under
the 'Runtime Behavior' header in the Document tab in Xcode. If this is not checked the '_CPCibCustomView'
is used instead of the Class Swapper.
2021-09-21 10:46:18 +02:00
Martin Carlberg
24bf09b70c
Fixed: Abbreviation for a timezone is not handled in JavaScript. This changes makes it better but not perfect.
2021-09-21 10:30:26 +02:00
Martin Carlberg
a835202db1
Fixed: Adjusted test cases for Node. XMLHttpRequest now demands a protocol.
2021-09-20 11:00:37 +02:00
Martin Carlberg
830fbbab26
Fixed: Removed old Rhino adjustments in test cases
2021-09-20 10:51:14 +02:00
Martin Carlberg
511e18b44f
Fixed: Wait for the bundle load to finish with the new async bundle load function
2021-09-17 21:55:48 +02:00
Martin Carlberg
2a0a6449e5
Fixed: Converting the test cases in ToolTest.j to Node
2021-09-15 17:33:21 +02:00
Martin Carlberg
ab4c87e69f
Fixed: Removed warnings and cleanup for test cases when converting to Node
2021-09-15 17:31:20 +02:00
Martin Carlberg
e608e0dbf3
Fixed: Partly adapted Tooltest for Node
2021-09-10 15:56:12 +02:00
Martin Carlberg
51ffa256ca
Fixed: Preprocessor Output test adapted for Node
2021-09-10 15:55:01 +02:00
Martin Carlberg
a893f3f5c1
Fixed: The tool ojtest now works with the new Node version.
2021-09-03 14:31:11 +02:00
daboe01
677076b89d
fixed: some cib files have been outdated
2021-04-01 18:04:06 +02:00
cacaodev
77c9b99f74
Manual test exposing issue #2970
2021-03-07 20:46:44 +01:00
Martin Carlberg
01e295084c
New: Unit test to illustrate multiple value bindings on radio buttons
2020-12-14 13:11:24 +01:00
Didier Korthoudt and GitHub
ef779c346e
New: Support modern Cocoa behavior regarding radio buttons groups. ( #2941 )
2020-10-09 09:35:56 +02:00
Didier Korthoudt and GitHub
7bde091f1b
FIXED: when using a custom view with subviews, subviews were presented in the reversed order ( #2913 )
2020-10-02 13:31:45 +02:00
Didier Korthoudt and GitHub
6c7d8df565
Aristo3: CPButton ( #2920 )
2020-10-02 12:59:32 +02:00
daboe01
9c95c9c6e9
formatting
2020-07-13 20:37:52 +02:00
daboe01
4b052e74f1
test whether range restriction works
2020-07-05 16:06:04 +02:00
daboe01
bd6b8e4b7f
fixed: comparison between wrong objects
2020-07-03 21:27:48 +02:00
daboe01
26e8432bb0
debugging
2020-07-03 19:55:51 +02:00
daboe01
05f9fd22fe
formatting
2020-07-03 19:36:06 +02:00
daboe01
8f5bde2797
new: unittest for replaceOccurrencesOfString:withString:options:range:
2020-07-02 19:38:34 +02:00
daboe01 and GitHub
77fe16faec
Fixed: background color attribute was ignored by CPTextView ( #2899 )
2020-07-01 16:33:07 +02:00
Didier Korthoudt and GitHub
ba6350e24d
NEW: CPSplitView modern Cocoa behavior implementation ( #2876 )
2020-02-21 14:32:53 +01:00
Martin Carlberg and GitHub
1c866931f3
New: The compiler will now create warnings for variables that are never read ( #2871 )
...
This new warning adds a lot of warnings in the Cappuccino frameworks. I have turned off
the warning in the Jakefiles when compiling most of the Cappuccino frameworks. But it is
on as default for any user projects.
So there is also a new feature to turn off/on warnings as a compiler flag.
These flags are (all flags are on as default):
-Wunused-but-set-variable Warning when a local variable is never read.
-Wshadow-ivar Warning when a local variable is shadowing an instance variable for the class.
-Wcreate-global-inside-function-or-method Warning when creating a global variable inside a function or method.
-Wunknown-class-or-global Warning when a class or global variable is not known.
-Wunknown-ivar-type Warning when the type for an instance variable is not known.
To turn off a flag add a 'no-' prefix. Example: -Wno-unused-but-set-variable
For an example how to use it in a Jakefile please look at the Jakefiles in this commit.
2020-02-21 14:29:48 +01:00
Martin Carlberg
f5937a6fad
Fixed: CPComparisonPredicate does never evaluate to true for a predicate like 'something != nil'
...
An example:
var array = @[ @{@"Name": @"1"},
@{@"Name": @"2", @"approveTime": @"Now"}
];
var predicate = [CPPredicate predicateWithFormat:@"approveTime != nil"];
CPLog(@"result: %@", [array filteredArrayUsingPredicate:predicate]); // result: <empty array>
If I run this in Cappuccino I get an empty array
If I run it in Cocoa on a Mac I get:
result: (
{
Name = 2;
approveTime = Now;
}
2020-01-31 14:24:29 +01:00
Martin Carlberg and GitHub
7dc77ed609
Fixed: Make sure we handle undefined when testing for nil values ( #2862 )
2020-01-31 13:43:58 +01:00
daboe01 and Martin Carlberg
9e289574ff
Fixed: attachment support was missing in CPTextView ( #2872 )
2019-12-19 09:08:33 +01:00
cacaodev and GitHub
0c706cfed2
Merge pull request #2866 from mrcarlberg/cpset_enumerator_use_stop_variable
...
Fixed: CPSet enumerateObjectsUsingBlock: will honor the stop variable
2019-12-16 11:27:37 +01:00
jasperdeb and Martin Carlberg
58c08cebd7
Fixed: Added underline support in CPTextView ( #2875 )
2019-12-06 09:12:31 +01:00
cacaodev and Martin Carlberg
623ad2b1dc
Fixed: Previoulsly, clearsFilterPredicateOnInsertion was applied (removes filter predicate) when setting content or on content binding. ( #2860 )
...
With Tests: Foundation unit test.
Solves #2791
2019-11-12 14:02:35 +01:00
Martin Carlberg
dad49354aa
Fixed: CPSet enumerateObjectsUsingBlock: will honor the stop variable
...
Test case also added.
Deprecated the very old behaviour that the block could return YES to abort the enumeration.
2019-10-18 13:01:04 +02:00
cacaodev and GitHub
78cbc3871e
Merge pull request #2852 from mrcarlberg/msg_send_return_undefined_when_receiver_is_undefined
...
New: msgSend will return undefined instead of nil when the receiver is undefined.
2019-08-31 11:28:17 +02:00