test262/test/built-ins
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
..
Array Improve assertions comparing values to NaN (#690) 2016-07-01 11:22:55 -07:00
ArrayBuffer Update tests for TypedArrays, DataView and ArrayBuffer 2016-06-13 16:17:09 -04:00
ArrayIteratorPrototype Add missing tests for "length" and "name" properties of built-in functions 2016-01-15 18:12:05 +01:00
Boolean Add missing tests for "length" and "name" properties of built-in functions 2016-01-15 18:12:05 +01:00
DataView Fix tests for DataView#setFloat when no value arg is provided 2016-07-05 16:29:21 -04:00
Date Improve assertions comparing values to NaN (#690) 2016-07-01 11:22:55 -07:00
Error Remove invalid tests 2016-06-27 15:57:56 -04:00
Function Relax test for forbidden extension 2016-06-14 15:26:12 -04:00
GeneratorFunction Extend coverage for Section 25 - Generators (#700) 2016-07-01 11:24:27 -07:00
GeneratorPrototype Extend coverage for Section 25 - Generators (#700) 2016-07-01 11:24:27 -07:00
Infinity Reduce reliance on `fnGlobalObject.js` 2016-04-25 11:09:21 -07:00
IteratorPrototype/Symbol.iterator Add tests for IteratorPrototype intrinsic 2015-07-16 13:05:17 -04:00
JSON Json whitespace (#724) 2016-07-06 23:06:58 -07:00
Map Replace duplicate description with info in map test 2016-04-29 10:01:41 -07:00
MapIteratorPrototype Add missing tests for "length" and "name" properties of built-in functions 2016-01-15 18:12:05 +01:00
Math Improve assertions comparing values to NaN (#690) 2016-07-01 11:22:55 -07:00
NaN Improve assertions comparing values to NaN (#690) 2016-07-01 11:22:55 -07:00
NativeErrors Add basic surface tests for NativeErrors 2016-01-15 18:13:36 +01:00
Number Ensure U+180E is no longer considered whitespace 2016-07-06 10:11:32 -04:00
Object Update test for distinct NaN replacement on DefineOwnProperty 2016-07-06 11:30:33 -04:00
Promise Reduce reliance on `fnGlobalObject.js` 2016-04-25 11:09:21 -07:00
Proxy s/id/esid 2016-02-22 09:47:42 -05:00
Reflect s/id/esid 2016-02-22 09:47:42 -05:00
RegExp Ensure U+180E is no longer considered whitespace 2016-07-06 10:11:32 -04:00
Set Add tests for return value of @@species accessors 2016-04-25 16:59:23 -07:00
SetIteratorPrototype Add missing tests for "length" and "name" properties of built-in functions 2016-01-15 18:12:05 +01:00
Simd Add SIMD test suite and utility functions (#442) 2016-04-18 14:26:15 -04:00
String Ensure U+180E is no longer considered whitespace 2016-07-06 10:11:32 -04:00
StringIteratorPrototype Add missing tests for "length" and "name" properties of built-in functions 2016-01-15 18:12:05 +01:00
Symbol Improve test coverage for Symbol (#645) 2016-05-30 16:55:45 -04:00
ThrowTypeError Increase coverage for %ThrowTypeError% 2016-03-01 19:13:43 +01:00
TypedArray Assert TypedArray iterators inherit from ArrayPrototypeIterator 2016-07-05 16:29:22 -04:00
TypedArrays Add tests for custom ctor returns on TypedArrays from and of 2016-07-05 16:29:23 -04:00
WeakMap Add tests for well-known Symbol: @@toStringTag 2015-08-07 20:02:44 -04:00
WeakSet Add tests for well-known Symbol: @@toStringTag 2015-08-07 20:02:44 -04:00
decodeURI Remove unused harness file 2016-02-12 13:44:18 -05:00
decodeURIComponent Remove unused harness file 2016-02-12 13:44:18 -05:00
encodeURI Add missing tests for "length" and "name" properties of built-in functions 2016-01-15 18:12:05 +01:00
encodeURIComponent Add missing tests for "length" and "name" properties of built-in functions 2016-01-15 18:12:05 +01:00
eval Re-organize tests for eval 2016-04-25 16:36:36 -04:00
global Replace runTestCase with assert, try-finally 2015-08-13 17:43:11 +02:00
isFinite Add missing tests for "length" and "name" properties of built-in functions 2016-01-15 18:12:05 +01:00
isNaN Add missing tests for "length" and "name" properties of built-in functions 2016-01-15 18:12:05 +01:00
parseFloat Ensure U+180E is no longer considered whitespace 2016-07-06 10:11:32 -04:00
parseInt Ensure U+180E is no longer considered whitespace 2016-07-06 10:11:32 -04:00
undefined Reduce reliance on `fnGlobalObject.js` 2016-04-25 11:09:21 -07:00