/third_party/jerryscript/tests/jerry/es2015/ |
H A D | function-rest-parameter.js | 19 assert (false); 21 assert (e instanceof SyntaxError); 27 assert (false); 29 assert (e instanceof SyntaxError); 44 assert (a[i] == rest_params[i]); 49 assert (f (1, 2, rest_params[0], rest_params[1], rest_params[2]) === 9); 50 assert (f.length === 2); 56 assert (g (1, 2, 3, 4) === 10); 62 assert (h (1, 2, 3, 4) === 4); 65 assert (JSO [all...] |
H A D | typedarray-prototype-lastindexof.js | 29 assert (false); 31 assert (e instanceof TypeError); 35 assert(index === 4); 36 assert(e[index] === 0); 39 assert(e.lastIndexOf(0, 3) === 0); 40 assert(e.lastIndexOf(0, -8) === -1); 41 assert(e.lastIndexOf(2) === 2); 42 assert(e.lastIndexOf(5, 3) === -1); 43 assert(e.lastIndexOf(3, 6) === 3); 46 assert( [all...] |
H A D | typedarray-prototype-indexof.js | 31 assert (false); 33 assert (e instanceof TypeError); 37 assert(index === 0); 38 assert(e[index] === 0); 41 assert(e.indexOf(0, 1) === 4); 42 assert(e.indexOf(0, 5) === -1); 43 assert(e.indexOf(3, -2) === -1); 44 assert(e.indexOf(5, -6) === 5); 45 assert(e.indexOf(2, -2) === -1); 48 assert( [all...] |
H A D | array-prototype-find-index.js | 18 assert (eval ("(f => 5) ()") === 5); 21 assert (e instanceof SyntaxError); 30 assert (array1.findIndex (bigger_than_10) === 1); 41 assert (false); 43 assert (e instanceof Error); 44 assert (e.message === "zero"); 57 assert (JSON.stringify (inventory.findIndex (isCherries)) === "2"); 60 assert (eval ("inventory.findIndex (fruit => fruit.name === 'bananas')") === 1); 68 assert (array_index++ === index); 69 assert (arra [all...] |
H A D | object-get-own-property-symbols.js | 25 assert (props.indexOf ('0') === -1); 26 assert (props.indexOf ('1') === -1); 27 assert (props.indexOf ('2') === -1); 28 assert (props.indexOf ('length') === -1); 29 assert (props.length === 0); 39 assert (props.indexOf(a) !== -1); 40 assert (props.indexOf(b) !== -1); 41 assert (props.indexOf(c) !== -1); 42 assert (props.indexOf(d) !== -1); 43 assert (prop [all...] |
H A D | proxy_is_extensible.js | 30 assert(false); 32 assert(e === 42); 38 assert(false); 40 assert(e === 42); 46 assert(false); 48 assert(e === 42); 55 assert(Object.isExtensible(target) === true) 56 assert(Object.isExtensible(proxy) === true); 58 assert(Object.isExtensible(target) === false); 59 assert(Objec [all...] |
H A D | generator-function.js | 22 assert(ownProto === generatorFn.prototype); 23 assert(sharedProto !== Object.prototype); 24 assert(sharedProto === Object.getPrototypeOf(function*(){}.prototype)); 25 assert(sharedProto.hasOwnProperty('next')); 36 assert(ownProto === generatorFn.prototype); 37 assert(iterProto.hasOwnProperty(Symbol.iterator)); 38 assert(!sharedProto.hasOwnProperty(Symbol.iterator)); 39 assert(!ownProto.hasOwnProperty(Symbol.iterator)); 40 assert(g[Symbol.iterator]() === g); 49 assert(ite [all...] |
H A D | regexp-construct.js | 19 assert(r2.source === 'a'); 20 assert(r2.global === true); 21 assert(r2.ignoreCase === true); 22 assert(r2.multiline === true); 24 assert(r3.source === 'a'); 25 assert(r3.global === true); 26 assert(r3.ignoreCase === true); 27 assert(r3.multiline === true); 33 assert(false) 35 assert( [all...] |
H A D | class-inheritance-core-8.js | 29 assert (++order === 2); 33 assert (false); 35 assert (e instanceof ReferenceError) 38 assert (this.g ()()()() === 10); 39 assert (eval ("eval ('this.g ()')()")()() === 10); 40 assert (eval ("eval ('this.g ()')")()()() === 10); 41 assert (eval ("eval ('this.g ()()()')")() === 10); 42 assert (eval ("eval ('this.g')")()()()() === 10); 44 assert (this.length === 5) 46 assert (thi [all...] |
H A D | array-prototype-copywithin.js | 19 assert(array.copyWithin(2,0,6).toString() === "foo,1,foo,1,bar,[object Object]"); 20 assert(array.copyWithin(0,1,3).toString() === "1,foo,foo,1,bar,[object Object]"); 21 assert(array.copyWithin(3,0,4).toString() === "1,foo,foo,1,foo,foo"); 25 assert(array.copyWithin().toString() === "foo,1,bar,[object Object],2,baz"); 26 assert(array.copyWithin(2).toString() === "foo,1,foo,1,bar,[object Object]"); 27 assert(array.copyWithin(1,4).toString() === "foo,bar,[object Object],1,bar,[object Object]"); 31 assert(array.copyWithin(12,3,-3).toString() === "foo,1,bar,[object Object],2,baz"); 32 assert(array.copyWithin(-2,-4,3).toString() === "foo,1,bar,[object Object],bar,baz"); 33 assert(array.copyWithin(1,-5,30).toString() === "foo,1,bar,[object Object],bar,baz"); 37 assert(arra [all...] |
/third_party/node/test/parallel/ |
H A D | test-console.js | 24 const assert = require('assert'); 34 assert.ok(process.stdout.writable); 35 assert.ok(process.stderr.writable); 38 assert.strictEqual(typeof process.stdout.fd, 'number'); 39 assert.strictEqual(typeof process.stderr.fd, 'number'); 76 assert.throws(() => console.time(Symbol('test')), 78 assert.throws(() => console.timeEnd(Symbol('test')), 182 assert.deepStrictEqual(console._times.get('test'), time); 192 console.assert(fals [all...] |
H A D | test-fs-access.js | 14 const assert = require('assert'); 67 assert.strictEqual(typeof fs.F_OK, 'number'); 68 assert.strictEqual(typeof fs.R_OK, 'number'); 69 assert.strictEqual(typeof fs.W_OK, 'number'); 70 assert.strictEqual(typeof fs.X_OK, 'number'); 75 assert.deepStrictEqual(args, [null]); 81 assert.deepStrictEqual(args, [null]); 87 assert.deepStrictEqual(args, [null]); 95 assert [all...] |
H A D | test-vm-basic.js | 24 const assert = require('assert'); 34 assert.deepStrictEqual(sandbox, { 38 assert.strictEqual(result, 'function'); 49 assert.deepStrictEqual(sandbox, { 54 assert.strictEqual(result, 'function'); 62 assert.strictEqual(global.vmResult, 'foo'); 63 assert.strictEqual(result, '[object process]'); 72 assert.strictEqual(global.vmResult, undefined); 73 assert [all...] |
H A D | test-event-emitter-listeners.js | 25 const assert = require('assert'); 44 assert.deepStrictEqual(ee.listeners('foo'), [listener]); 46 assert.deepStrictEqual(ee.listeners('foo'), []); 47 assert.deepStrictEqual(fooListeners, [listener]); 54 assert.deepStrictEqual(eeListenersCopy, [listener]); 55 assert.deepStrictEqual(ee.listeners('foo'), [listener]); 57 assert.deepStrictEqual(ee.listeners('foo'), [listener]); 58 assert.deepStrictEqual(eeListenersCopy, [listener, listener2]); 66 assert [all...] |
H A D | test-stream-pipe-cleanup.js | 27 const assert = require('assert'); 70 assert.strictEqual(r.listeners('end').length, 0); 71 assert.strictEqual(w.endCalls, limit); 80 assert.strictEqual(r.listeners('close').length, 0); 81 assert.strictEqual(w.endCalls, limit); 92 assert.strictEqual(w.listeners('close').length, 0); 99 assert.strictEqual(r.listeners('end').length, 2); // A.onend, A.cleanup 100 assert.strictEqual(r.listeners('close').length, 2); // A.onclose, A.cleanup 101 assert [all...] |
H A D | test-whatwg-url-custom-searchparams-constructor.js | 6 const assert = require('assert'); 30 assert.strictEqual(params.toString(), ''); 32 assert.strictEqual(params.toString(), ''); 36 assert.strictEqual(params.toString(), 'key=val&key2=val2'); 40 assert.strictEqual(params.toString(), 'key=val&key2=val2'); 42 assert.strictEqual(params.get('hasOwnProperty'), '1'); 43 assert.strictEqual(params.toString(), 'hasOwnProperty=1'); 44 assert.throws(() => new URLSearchParams([[1]]), tupleError); 45 assert [all...] |
H A D | test-event-emitter-remove-listeners.js | 24 const assert = require('assert'); 35 assert.strictEqual(name, 'hello'); 36 assert.strictEqual(cb, listener1); 39 assert.deepStrictEqual([], ee.listeners('hello')); 47 assert.deepStrictEqual([listener1], ee.listeners('hello')); 55 assert.strictEqual(name, 'hello'); 56 assert.strictEqual(cb, listener1); 57 assert.deepStrictEqual([listener2], ee.listeners('hello')); 60 assert [all...] |
H A D | test-stream-duplex-from.js | 4 const assert = require('assert'); 18 assert.strictEqual(d.readable, true); 19 assert.strictEqual(d.writable, false); 21 assert.strictEqual(d.read().toString(), 'asd'); 24 assert.strictEqual(d.readable, false); 35 assert.strictEqual(d.readable, true); 36 assert.strictEqual(d.writable, false); 38 assert.strictEqual(d.read().toString(), 'asd'); 41 assert [all...] |
H A D | test-whatwg-webstreams-transfer.js | 40 const assert = require('assert'); 90 assert(isReadableStream(data)); 94 assert.deepStrictEqual(chunk, { done: false, value: theData }); 101 assert(isReadableStream(data)); 102 assert(!data.locked); 104 assert(data.locked); 107 assert.throws(() => port2.postMessage(readable), { 112 assert(readable.locked); 135 assert(isReadableByteStreamControlle [all...] |
H A D | test-file.js | 4 const assert = require('assert'); 10 assert.deepStrictEqual(Object.getPrototypeOf(File.prototype), Blob.prototype); 14 assert.throws(() => new File(), TypeError); 15 assert.throws(() => new File([]), TypeError); 23 assert.notStrictEqual(desc, undefined); 25 assert.strictEqual(desc.get?.name, `get ${prop}`); 26 assert.strictEqual(desc.set, undefined); 27 assert.strictEqual(desc.enumerable, true); 28 assert [all...] |
/third_party/jerryscript/tests/jerry/ |
H A D | function-construct.js | 16 assert (f () === undefined); 19 assert (f () === undefined && f === undefined); 25 assert (false); 29 assert (e instanceof ReferenceError); 34 assert (singleArgFunction (5) === 5); 52 assert (check_value++ === value); 62 assert (value == check_value + m * n); 70 assert (f (1,2,3) === 6); 73 assert (f (1,2,3,4) === 10); 76 assert ( [all...] |
H A D | string-prototype-localecompare.js | 17 assert (str1.localeCompare(str1) === 0); 18 assert (str1.localeCompare(str2) === -1); 19 assert (str2.localeCompare(str1) === 1); 23 assert (y.localeCompare(-31) === 1); 24 assert (y.localeCompare("") === 1); 25 assert (y.localeCompare(-32) === 0); 26 assert (x.localeCompare(33) === -1); 27 assert (x.localeCompare() === -1); 28 assert (x.localeCompare(null) === -1); 29 assert ( [all...] |
H A D | array-prototype-join.js | 15 assert ([].join() === ""); 16 assert ([1].join() === "1"); 17 assert ([1, 2].join() === "1,2"); 20 assert ([].join('--') === ""); 21 assert ([1].join("--") === "1"); 22 assert ([1, 2].join('--') === "1--2"); 24 assert ([1,2,3].join({toString: function() { return "--"; }}) === "1--2--3"); 30 assert (lst.join() === [1,2,3].join()); 40 assert (false); 42 assert ( [all...] |
H A D | array-prototype-reduce-right.js | 24 assert(false); 26 assert(e instanceof TypeError); 32 assert(false); 34 assert(e instanceof TypeError); 41 assert (false); 43 assert (e instanceof TypeError) 47 assert([].reduceRight(func, 1) === 1); 49 assert([].reduceRight(func, undefined) === undefined); 51 assert([0].reduceRight(func) === 0); 53 assert([ [all...] |
/third_party/rust/crates/clap/tests/builder/ |
H A D | propagate_globals.rs | 78 assert!(top_can_access_arg(&m, "some_value")); in global_arg_used_top_level() 79 assert!(inner_can_access_arg(&m, "some_value")); in global_arg_used_top_level() 80 assert!(outer_can_access_arg(&m, "some_value")); in global_arg_used_top_level() 87 assert!(top_can_access_arg(&m, "some_value")); in global_arg_used_outer() 88 assert!(inner_can_access_arg(&m, "some_value")); in global_arg_used_outer() 89 assert!(outer_can_access_arg(&m, "some_value")); in global_arg_used_outer() 96 assert!(top_can_access_arg(&m, "some_value")); in global_arg_used_inner() 97 assert!(inner_can_access_arg(&m, "some_value")); in global_arg_used_inner() 98 assert!(outer_can_access_arg(&m, "some_value")); in global_arg_used_inner() 105 assert!(top_can_access_ar in global_arg_default_value() [all...] |