1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/tests/ecma_5/JSON/parse-syntax-errors-01.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,15 @@ 1.4 +// Ported from dom/src/json/test/unit/test_syntax_errors.js 1.5 + 1.6 +testJSON("{}...", true); 1.7 +testJSON('{"foo": truBBBB}', true); 1.8 +testJSON('{foo: truBBBB}', true); 1.9 +testJSON('{"foo": undefined}', true); 1.10 +testJSON('{"foo": ]', true); 1.11 +testJSON('{"foo', true); 1.12 + 1.13 +/******************************************************************************/ 1.14 + 1.15 +if (typeof reportCompare === "function") 1.16 + reportCompare(true, true); 1.17 + 1.18 +print("Tests complete");