Lines Matching defs:test
14 function test(data, only, expected) {
30 test(null, 'null\n');
31 test(undefined, 'undefined\n');
32 test(false, 'false\n');
33 test('hi', 'hi\n');
34 test(Symbol(), 'Symbol()\n');
35 test(function() {}, '[Function (anonymous)]\n');
37 test([1, 2, 3], `
47 test([Symbol(), 5, [10]], `
57 test([null, 5], `
66 test([undefined, 5], `
75 test({ a: 1, b: Symbol(), c: [10] }, `
85 test(new Map([ ['a', 1], [Symbol(), [2]] ]), `
94 test(new Set([1, 2, Symbol()]), `
104 test({ a: 1, b: 2 }, ['a'], `
113 test([{ a: 1, b: 2 }, { a: 3, c: 4 }], ['a'], `
122 test(new Map([[1, 1], [2, 2], [3, 3]]).entries(), `
132 test(new Map([[1, 1], [2, 2], [3, 3]]).values(), `
142 test(new Map([[1, 1], [2, 2], [3, 3]]).keys(), `
152 test(new Set([1, 2, 3]).values(), `
163 test({ a: { a: 1, b: 2, c: 3 } }, `
171 test({ a: { a: { a: 1, b: 2, c: 3 } } }, `
179 test({ a: [1, 2] }, `
187 test({ a: [1, 2, 3, 4, 5], b: 5, c: { e: 5 } }, `
197 test(new Uint8Array([1, 2, 3]), `
207 test(Buffer.from([1, 2, 3]), `
217 test({ a: undefined }, ['x'], `
225 test([], `
232 test(new Map(), `
239 test([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }], `
253 test([{ name }], `
262 test({ foo: '¥', bar: '¥' }, `
271 test({ foo: '你好', bar: 'hello' }, `
280 // Regression test for prototype pollution via console.table. Earlier versions
284 test([{ foo: 10 }, { foo: 20 }], ['__proto__'], `