d62e296abe060ff7557e731fe70f240dbaa142e8 |
|
28-Nov-2013 |
Narayan Kamath <narayan@google.com> |
Fix JSONArrayTest. Whitespace issues. Change-Id: I12bf6134c9bdd060ab5362f97d2315471ecd7251
|
c06da90b0b7d26e68805d4944fbc5446d48fe360 |
|
25-Nov-2013 |
Elliott Hughes <enh@google.com> |
Add a test for JSONArray and enums. Bug: https://code.google.com/p/android/issues/detail?id=62539 Change-Id: If41b9afe801832ea796649d27b0af25657653684
|
609601075ec0934cb23783c0b1194ecde041b6f5 |
|
10-Jul-2013 |
Elliott Hughes <enh@google.com> |
Implement JSONArray.remove. Bug: https://code.google.com/p/android/issues/detail?id=53461 Change-Id: I2b920fa8d63bcc8f1260669d72e33833bbd81ced
|
661054f5a2f7f8f5f3ceffb97e803211b546e7fc |
|
08-Jul-2011 |
Jesse Wilson <jessewilson@google.com> |
Fix string to boolean coercsion. When we reimplemented this API I broke consistency with org.json. Bringing it back into line makes the implementation more strict (my preference) and makes us consistent with ourselves before this code was redone. Bug: http://code.google.com/p/android/issues/detail?id=16411 Change-Id: I8c1b52e382ad91932d3cf9a5b346db58df4da7c6
|
7365de1056414750d0a7d1fdd26025fd247f0d04 |
|
12-Aug-2010 |
Jesse Wilson <jessewilson@google.com> |
Sorting imports. Change-Id: I8347bc625480a1c37a1ed9976193ddfedeb00bbc
|
f33eae7e84eb6d3b0f4e86b59605bb3de73009f3 |
|
13-May-2010 |
Elliott Hughes <enh@google.com> |
Remove all trailing whitespace from the dalvik team-maintained parts of libcore. Gentlemen, you may now set your editors to "strip trailing whitespace"... Change-Id: I85b2f6c80e5fbef1af6cab11789790b078c11b1b
|
adfb1bcaae256f9bd591b90a5b05d30e777e27c6 |
|
25-Mar-2010 |
Jesse Wilson <jessewilson@google.com> |
Test and document our handling of nulls with getString(). Our behaviour is consistent with Crockford's. The test confirms that the behaviour is consistent with the report of that bug, which the submitter claims is not how it should behave. http://code.google.com/p/android/issues/detail?id=7257 Change-Id: Ibace4bd995e3cbc8fb6c9dc509f8f4491865a647
|
51a095f0bc7aadfcc7e6b3873b97c050c523d102 |
|
12-Mar-2010 |
Jesse Wilson <jessewilson@google.com> |
A cleanroom implementation of the org.json API. This implementation lacks documentation. I intend to write that after checking it into the master branch. By not waiting we'll have more time to exercise the code, if only in Google's own applications. This passes all of my tests. I rewrote some of the tests to make Crockford's implementation fail. The tests that fail on Crockford's implementation are: JSONArrayTest testEqualsAndHashCode equals() not consistent with hashCode() testTokenerConstructorParseFail StackOverflowError testStringConstructorParseFail StackOverflowError JSONObjectTest testOtherNumbers Object.put() accepted a NaN (via a custom Number class) testMapConstructorWithBogusEntries JSONObject constructor doesn't validate its input! JSONTokenerTest testNextNWithAllRemaining off-by-one error? testNext0 Returning an empty string should be valid testNextCleanCommentsTrailingSingleSlash nextClean doesn't consume a trailing slash assertNotClean The character line tabulation is not whitespace according to the JSON spec. testNextToDoesntStopOnNull nextTo() shouldn't stop after \0 characters testNextToConsumesNull nextTo shouldn't consume \0. testSkipToStopsOnNull skipTo shouldn't stop when it sees '\0' ParsingTest testParsingLargeHexValues For input "0x80000000" Hex values are parsed as Strings if their signed value is greater than Integer.MAX_VALUE. testSyntaxProblemUnterminatedArray Stack overflowed on input "[" Change-Id: I44c4a4a698a66bf043ed339d6bd804951e732cbf
|
53c13031e4b68645b0ca7c7a335aae41d0b84276 |
|
10-Mar-2010 |
Jesse Wilson <jessewilson@google.com> |
New tests for JSONObject and for JSON's self-use. Alongside development of these tests, I'm working on a new cleanroom implementation. The self use test was written to prevent me from self-using in a way that the original implementation does not. Change-Id: Ie617aca1978bd39d85b05e5c2c7bd657ed159dd6
|
73c8bbb045404420ffe4440bb1c7c5578ca160a7 |
|
17-Feb-2010 |
Jesse Wilson <jessewilson@google.com> |
Fixing packages for JSON tests
|
67f4459a2fcc50cb3378c302b6c663af48f60ff0 |
|
16-Feb-2010 |
Jesse Wilson <jessewilson@google.com> |
First round of tests for the subset of the org.json in Android.
|