Martin Carlberg
530db4e904
Fixed: Merged in the same parser and compiler that is used in the objj-runtime that is running on node.
...
The life will be easier to have the same in both environments.
Warnings and errors now don’t use read only properties for line and column information. So the test cases in Toolstest.j now work in modern JS engines.
It is also easier to set options for the compiler.
2016-04-07 10:32:46 +02:00
Antoine Mercadal
3cf0d60f5d
Merge pull request #2399 from mrcarlberg/default_include_method_types
...
Default include type signatures for all kind of builds
2015-11-23 13:38:14 -08:00
Martin Carlberg
c2f95f7953
Fixed: Runtime method argument functions will now comply to how Objective-C runtime works.
2015-11-23 10:48:15 +01:00
Martin Carlberg
58aeb2e40f
Fixed: Add test cases
2015-11-20 14:54:23 +01:00
Martin Carlberg
b132a66707
Fixed: Compiler option 'IncludeTypeSignatures' is default turn on for all type of builds. It can optionally be turned off.
2015-11-20 12:33:00 +01:00
Martin Carlberg
26a123f5a8
Fixed: Added code generation unit test cases with inlined objj_msgSend functions for all tests in OutputTest.
2015-10-07 15:58:28 +02:00
Martin Carlberg
e45e31d223
Fixed: Introduce ’jake install-inline’ task to generate the cappuccino framework with objj_msgSend function inlined. Also introduced options in ’index-debug.html’ templates to allow inline of objj_msgSend function when compiling in browser.
2015-10-06 13:34:28 +02:00
Antoine Mercadal
eb883bc51e
Merge pull request #2272 from ahankinson/new-fixed-with-credentials-cpurl
...
Rework of withCredentials, CPURLRequest, and CPURLConnection
2015-01-14 11:51:14 -08:00
Antoine Mercadal
d3490f6a2e
Merge pull request #2243 from ahankinson/new-CFError-CPError
...
New: CFError and Updated CPError
2015-01-08 17:33:31 -08:00
Andrew Hankinson
cd2e9e29d4
Tests: Fixed tests for withCredentials
2014-12-04 16:37:34 -05:00
Andrew Hankinson
7e4e0567ef
Merge branch 'refs/heads/master' into new-CFError-CPError
2014-12-02 12:51:14 -05:00
Martin Carlberg
ee13978115
Fixed: @ref did not generate self.x for an ivar x
2014-12-02 13:54:02 +01:00
Antoine Mercadal
243024e232
Fix broken tests due to new objj type checks
2014-11-26 13:12:39 -08:00
Andrew Hankinson
32c252393a
Fixed: Broken unit test
2014-11-01 10:01:56 -04:00
Andrew Hankinson
6fe3054738
New: Unit tests for CFError methods
2014-11-01 09:04:57 -04:00
Antoine Mercadal
371b660b33
Merge pull request #2072 from mrcarlberg/fix_accessors_in_categories_fails
...
Fixed: Ivars with accessors in a Category failed with duplicate ivar error
2014-09-04 14:02:53 -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
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
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
Martin Carlberg
a740f60734
Fixed: Added test case
2014-04-17 16:18:21 +02: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
Alexander Ljungberg
d51f179c2d
Fixed: error when running some XML tests with rhino.
...
This problem causes error in Travis that are not errors with JSC.
2014-03-10 22:44:00 +00:00
Alexander Ljungberg
633445883e
Test: CFPropertyList.propertyListFromXML.
...
These tests validate some basic edge cases with the parsing of XML plists.
Refs #2051 .
2014-03-06 14:09:18 +00:00
Alexander Ljungberg
c1f538ece5
Formatting: whitespace.
...
Refs #1974 .
2013-11-28 18:39:01 +00:00
Martin Carlberg
8419001810
Merge branch 'master' of https://github.com/cappuccino/cappuccino into protocol
2013-11-22 14:23:52 +01:00
Alexander Ljungberg
d3ab2a0f3d
New: "//site.com/x" style URL support in CPURL and CFURL.
...
With this feature, CFURL and CPURL can now correctly transform a relative scheme URL starting with a double-slash.
For example, + CPURL URLWithString:@"//a.se/a" relativeToURL:@"ftp://b.se/c" would represent an absolute URL of "ftp://a.se/a".
2013-10-29 15:03:37 +00:00
Martin Carlberg
23fb618596
Fixed: Compiler now generates correct empty statement after 'if (a);'
...
Earlier the compiler generated the 'if' without the last ';' when a empty statement is used, with sometimes devastating result. The same if an empty statement was after the 'else'.
I have also added a test case for some different empty statement senarios.
2013-09-09 16:38:38 +02:00
Martin Carlberg
63dac5553e
Fixed: Updated test case to include '@required' and '@optional' keywords
2013-08-12 22:46:26 +02:00
Martin Carlberg
d38125db13
New: Added Objective-J protocol support
...
The Objective-J parser and compiler now handles protocol syntax. The Objective-J runtime has new functions to handle protocols. The method 'conformsToProtocol:' has been added to CPObject as an instance and a class method.
2013-08-09 19:02:45 +02:00
Martin Carlberg
595736b8c6
Fixed: When selector is only a ':' in a send message statement the new compiler crashed.
...
The program below crashed on the last line with a 'null is not an object' error message. Also added a test case.
@implementation MyObject {
- (int):(int)a {
return a;
}
@end
var a = [[MyObject alloc] init];
var b = [a:3];
2013-05-30 14:39:58 +02:00
Martin Carlberg
a2257dab8f
New: Empty loop test cases for compiler generator
2013-05-22 11:41:17 +02:00
Alexander Ljungberg
8c5015a0bc
Test: verify compiler output for return statement without space.
...
Refs #1830 .
2013-05-18 01:00:49 +01:00
Alexander Ljungberg
302138c257
Fixed: OutputTest reversed expectation and test value in error messages.
...
The message would read "expected x but was y", where y would actually be the correct expected value and x the wrong one.
2013-05-18 00:59:20 +01:00
Alexander Ljungberg
de1d6aad9c
Test: check compiler output for selectors with keywords in them.
...
Refs #1929 .
2013-05-16 14:17:31 -07:00
Alexander Ljungberg
1d1016f08e
Test: reactivate the regex-simple-char-classes test.
...
This test failed with the old preprocessor but works fine now with the new compiler.
Refs #1929 .
2013-05-16 11:15:03 -07:00
Martin Carlberg
392aafb360
Revert "Revert "New: Added test cases for some preprocess directives in OutputTest.j""
...
This reverts commit 5e6c89ca8b .
Conflicts:
Tests/Objective-J/Preprocessor/OutputTests/OutputTest.j
2013-05-16 12:05:57 +02:00
Martin Carlberg
256c5b83da
Fixed: Typo, changed comma to semicolon
2013-05-15 15:35:03 +02:00
Martin Carlberg
5e6c89ca8b
Revert "New: Added test cases for some preprocess directives in OutputTest.j"
...
This reverts commit 9b709b85a9 .
2013-05-15 15:21:49 +02:00
Martin Carlberg
9b709b85a9
New: Added test cases for some preprocess directives in OutputTest.j
...
Also fixed so OutputTest.j now uses the new compiler instead of the old.
2013-05-14 10:31:29 +02:00
Alexander Ljungberg
b53616ead3
New: @deref(<any idempotent expression>).
...
This change makes it possible to @deref any expression, such as a conditional expression, as long as the expression doesn't have side effects.
The reason not to allow dereferencing of expressions with side effects is that we might need to evaluate the expression twice in certain uses of deref, which is not obvious when you look at the deref operator in plain code.
2013-03-10 17:32:28 +00:00
Alexander Ljungberg
f201ab0721
New: update operators on references, such as @deref(x)++.
...
This fix implements support for both prefix and postfix update operators on a dereference.
2013-03-10 14:02:37 +00:00
Alexander Ljungberg
9b4c126534
Unit test @ref and @deref.
2013-03-10 12:17:59 +00:00
Alexander Ljungberg
5200f945fe
New: dictionary literals in Objective-J 2.0.
2013-02-25 14:24:29 +00:00
Aparajita Fishman
1f98dbdf65
Fixed test cases
2013-01-24 09:01:54 +08:00
Alexander Ljungberg
5ec9cf7faf
Fixed: "in" could not be a parameter in a message.
...
With the new compiler, messages such as `[a in:b]` could not be sent, the "in:" parameter throwing an unexpected token error. This was true both if "in" was the first argument or any of the subsequent parameters (such as in `[a something:X in:Y]`).
2013-01-21 02:11:51 +00:00