mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-05 10:23:39 +00:00
Foundation/CPException.j: _CPRaiseRangeException and _CPRaiseInvalidArgumentException called METHOD_CALL_STRING(), undefined anywhere. Every out-of-bounds CPArray access threw an uncatchable JS ReferenceError instead of CPRangeException/ CPInvalidArgumentException. Fixed to call the existing _CPMethodCallString(anObject, aSelector). Tests/Foundation/CPArrayTest.j, CPMutableArrayTest.j: the defect was invisible because test_objectAtIndex_ and test_objectsAtIndexes_ checked only that something was thrown, not what. Added exception-identity checks, and fixed ConcreteArray/ConcreteMutableArray's objectAtIndex: overrides, which threw a plain string and would have failed the new checks.
Requires objj be installed, as well as ojunit, located at http://github.com/cappuccino/ojunit
Run individual tests using a command similar to the following:
objj ojunit/OJTestRunnerText.j cappuccino/Tests/Foundation/CPDateTest.j