Lines Matching refs:TestInvalid

164 function TestInvalid(str) {  class
168 TestInvalid('abcdef');
169 TestInvalid('isNaN()');
170 TestInvalid('{"x": [1, 2, deepObject]}');
171 TestInvalid('[1, [2, [deepObject], 3], 4]');
172 TestInvalid('function () { return 0; }');
174 TestInvalid("[1, 2");
175 TestInvalid('{"x": 3');
178 TestInvalid('[01]');
179 TestInvalid('[.1]');
180 TestInvalid('[1.]');
181 TestInvalid('[1.e1]');
182 TestInvalid('[-.1]');
183 TestInvalid('[-1.]');
186 TestInvalid('-');
187 TestInvalid('--1');
188 TestInvalid('-1e');
189 TestInvalid('1e--1]');
190 TestInvalid('1e+-1');
191 TestInvalid('1e-+1');
192 TestInvalid('1e++1');
195 TestInvalid("'single quote'"); // Valid JavaScript
196 TestInvalid('"\\a invalid escape"');
197 TestInvalid('"\\v invalid escape"'); // Valid JavaScript
198 TestInvalid('"\\\' invalid escape"'); // Valid JavaScript
199 TestInvalid('"\\x42 invalid escape"'); // Valid JavaScript
200 TestInvalid('"\\u202 invalid escape"');
201 TestInvalid('"\\012 invalid escape"');
202 TestInvalid('"Unterminated string');
203 TestInvalid('"Unterminated string\\"');
204 TestInvalid('"Unterminated string\\\\\\"');
207 TestInvalid("{true:42}");
208 TestInvalid("{false:42}");
209 TestInvalid("{null:42}");
210 TestInvalid("{'foo':42}");
211 TestInvalid("{42:42}");
212 TestInvalid("{0:42}");
213 TestInvalid("{-1:42}");
216 TestInvalid('42 px');
217 TestInvalid('42 .2');
218 TestInvalid('42 2');
219 TestInvalid('42 e1');
220 TestInvalid('"42" ""');
221 TestInvalid('"42" ""');
222 TestInvalid('"" ""');
223 TestInvalid('true ""');
224 TestInvalid('false ""');
225 TestInvalid('null ""');
226 TestInvalid('null ""');
227 TestInvalid('[] ""');
228 TestInvalid('[true] ""');
229 TestInvalid('{} ""');
230 TestInvalid('{"x":true} ""');
231 TestInvalid('"Garbage""After string"');
364 TestInvalid('1); throw "foo"; (1');
368 TestInvalid('1); x++; (1');