test262/test/built-ins/JSON
jugglinmike 96c4e7730b Json whitespace (#724)
* Express JSON syntax tests with multiple assertions

When written with a single assertion, this test verifies only that "one
or more" of the Unicode points produces a SyntaxError. Re-factor the
test so that parsing behavior for each code point can be tested in
isolation.

* Re-introduce assertion

ECMAScript edition 2016 relies on the Unicode standard at version 8.0.0.
As part of a larger effort to update Test262 accordingly, the assertion
for the SyntaxError resulting from the use of the Mongolian Vowel
Separator (U+180E) was removed. However, ECMA-401 (The JSON Data
Interchange Format) continues to describe "insignificant whitespace" as
follows:

> Insignificant  whitespace  is  allowed  before  or  after  any  token.
> The  whitespace  characters  are:  character  tabulation  (U+0009),
> line  feed  (U+000A),  carriage  return (U+000D),  and  space
> (U+0020)

And because ECMA262 specifies step 2 of the `JSON.parse` algorithm as
follows:

> 2. Parse JText interpreted as UTF-16 encoded Unicode points (6.1.4) as
>    a JSON text as specified in ECMA-404. Throw a SyntaxError exception
>    if JText is not a valid JSON text as defined in that specification.

...the use of U+180E between JSON tokens should continue to produce a
SyntaxError, regardless of ECMA262's updated Unicode standard.

* fixup! Express JSON syntax tests with multiple assertions
2016-07-06 23:06:58 -07:00
..
parse Json whitespace (#724) 2016-07-06 23:06:58 -07:00
stringify Add tests for usage of IsArray (#667) 2016-06-10 15:07:40 -04:00
15.12-0-1.js Replace runTestCase with assert helpers [test/built-ins/JSON] 2015-08-06 18:25:42 +02:00
15.12-0-2.js Replace runTestCase with assert.throws [test/built-ins] 2015-08-11 17:44:37 +02:00
15.12-0-3.js Replace runTestCase with assert.throws [test/built-ins] 2015-08-11 17:44:37 +02:00
15.12-0-4.js Replace runTestCase with assert helpers [test/built-ins/JSON] 2015-08-06 18:25:42 +02:00
Symbol.toStringTag.js Add tests for well-known Symbol: @@toStringTag 2015-08-07 20:02:44 -04:00