/third_party/jerryscript/tests/jerry/ |
H A D | object-literal.js | 24 assert (person.firstName === "John"); 25 assert (person["firstName"] === "John"); 26 assert (person.lastName === "Doe"); 27 assert (person["lastName"] === "Doe"); 28 assert (person.age === 50); 29 assert (person["age"] === 50); 30 assert (person.eyeColor === "blue"); 31 assert (person["eyeColor"] === "blue"); 32 assert (person.gender === "male"); 33 assert (perso [all...] |
H A D | object-get-own-property-descriptor.js | 21 assert (desc.value === 42); 22 assert (desc.configurable); 23 assert (desc.writable); 24 assert (desc.enumerable); 28 assert (desc.value === "bar"); 34 assert (desc.value === 8675309); 35 assert (!desc.configurable); 36 assert (!desc.writable); 37 assert (!desc.enumerable); 41 assert ( des [all...] |
H A D | object-define-properties.js | 39 assert (obj.foo === true); 40 assert (obj.bar === "baz"); 41 assert (obj.Hello === "world"); 42 assert (obj.inner_object.a === 1); 43 assert (obj.inner_object.b.value === "foo"); 48 assert (false); 50 assert (e instanceof TypeError); 55 assert (false); 57 assert (e instanceof TypeError); 67 assert (fals [all...] |
H A D | arithmetics-bignums.js | 18 assert(big == 2147483647); 21 assert(big == 2147483648); // overflow on 32bit numbers 24 assert(big == 2147483649); // overflow on 32bit numbers 26 assert ((1152921504606846976).toString() === "1152921504606847000"); 28 assert (1.797693134862315808e+308 === Infinity); 30 assert (9999999999999999 == 10000000000000000); 32 assert((9007199254740993).toString() === "9007199254740992"); 34 assert((9007199254740992).toString() === "9007199254740992"); 36 assert((9007199254740994).toString() === "9007199254740994"); 38 assert((1.0051 [all...] |
H A D | array-prototype-concat.js | 18 assert(new_arr.length === array.length) 20 assert(array[i] === new_arr[i]); 28 assert(new_array.length === 4); 29 assert(new_array[0] === obj); 30 assert(new_array[1] === "Apple"); 31 assert(new_array[2] === 6); 32 assert(new_array[3] === "Peach"); 36 assert(new_array.length === 8); 37 assert(new_array[0] === "Apple"); 38 assert(new_arra [all...] |
H A D | object-prototype-propertyisenumerable.js | 21 assert (false); 23 assert (e.message === "foo"); 24 assert (e instanceof ReferenceError); 32 assert (false); 34 assert (e instanceof TypeError); 41 assert (obj.propertyIsEnumerable('prop') === true); 42 assert (array.propertyIsEnumerable(0) === true); 44 assert (obj.propertyIsEnumerable('length') === false); 45 assert (array.propertyIsEnumerable('length') === false); 46 assert (Mat [all...] |
H A D | string-prototype-match.js | 26 assert(Object.getOwnPropertyDescriptor(String.prototype.match, 'length').configurable === length_configurable()); 27 assert(Object.getOwnPropertyDescriptor(String.prototype.match, 'length').enumerable === false); 28 assert(Object.getOwnPropertyDescriptor(String.prototype.match, 'length').writable === false); 48 assert (match_equals ("hello".match("o"), ["o"])); 49 assert ("hello".match(/ /g) == void 0); 51 assert (match_equals ("hello".match(/o/), ["o"])); 53 assert (match_equals ("hello".match(/l/), ["l"])); 54 assert (match_equals ("hello".match(/l/g), ["l", "l"])); 56 assert ("".match(/a/g) == void 0); 58 assert ("" [all...] |
H A D | array-prototype-lastindexof.js | 21 assert(index === 4); 22 assert(array[index] === "foo"); 24 assert(array.lastIndexOf("foo", 3) === 0); 25 assert(array.lastIndexOf("foo", -8) === -1); 28 assert(index === 6); 29 assert(array[index] === "baz"); 31 assert(array.lastIndexOf("baz", -2) === -1); 34 assert(index === 3); 35 assert(array[index] === obj); 37 assert(arra [all...] |
/third_party/node/test/parallel/ |
H A D | test-internal-util-objects.js | 7 const assert = require('assert'); 16 assert.strictEqual( 20 assert.strictEqual( 24 assert.strictEqual( 28 assert.deepStrictEqual( 33 assert.throws( 37 assert.throws( 41 assert.throws( 45 assert [all...] |
H A D | test-repl-tab-complete.js | 30 const assert = require('assert'); 50 assert.deepStrictEqual(data[0], []); 64 testMe._domain.on('error', assert.ifError); 74 assert.deepStrictEqual(data, [['console.log'], 'console.lo']); 78 assert.deepStrictEqual(data, [['console?.log'], 'console?.lo']); 82 assert.deepStrictEqual(data, [[], 'console?.zzz']); 86 assert(data[0].includes('console?.log')); 87 assert.strictEqual(data[1], 'console?.'); 93 assert [all...] |
H A D | test-stream-inheritance.js | 3 const assert = require('assert'); 11 assert.ok(readable instanceof Readable); 12 assert.ok(!(writable instanceof Readable)); 13 assert.ok(duplex instanceof Readable); 14 assert.ok(transform instanceof Readable); 16 assert.ok(!(readable instanceof Writable)); 17 assert.ok(writable instanceof Writable); 18 assert.ok(duplex instanceof Writable); 19 assert [all...] |
H A D | test-fs-copyfile.js | 6 const assert = require('assert'); 31 assert.strictEqual(srcData, destData); 32 assert.strictEqual(srcStat.mode, destStat.mode); 33 assert.strictEqual(srcStat.size, destStat.size); 39 assert.strictEqual(typeof COPYFILE_EXCL, 'number'); 40 assert.strictEqual(typeof COPYFILE_FICLONE, 'number'); 41 assert.strictEqual(typeof COPYFILE_FICLONE_FORCE, 'number'); 42 assert.strictEqual(typeof UV_FS_COPYFILE_EXCL, 'number'); 43 assert [all...] |
H A D | test-vm-global-setter.js | 3 const assert = require('assert'); 17 assert.strictEqual(typeof descriptor1.get, 'function'); 18 assert.strictEqual(typeof descriptor1.set, 'function'); 19 assert.strictEqual(descriptor1.configurable, true); 25 assert.strictEqual(typeof descriptor2.get, 'function'); 26 assert.strictEqual(typeof descriptor2.set, 'function'); 27 assert.strictEqual(descriptor2.configurable, true); 33 assert.strictEqual(descriptor3.value, 44); 39 assert [all...] |
H A D | test-source-map-enable.js | 6 const assert = require('assert'); 31 assert.strictEqual(output.status, 0); 32 assert.strictEqual(output.stderr.toString(), ''); 34 assert.strictEqual(sourceMap.url, 'https://ci.nodejs.org/418'); 47 assert.strictEqual(output.signal, 'SIGINT'); 49 assert.strictEqual(output.stderr.toString(), ''); 51 assert.strictEqual(sourceMap.url, 'https://ci.nodejs.org/402'); 60 assert.strictEqual(output.stderr.toString(), ''); 62 assert [all...] |
H A D | test-string-decoder.js | 24 const assert = require('assert'); 30 assert.strictEqual(decoder.encoding, 'utf8'); 35 assert.strictEqual(decoder2.encoding, 'utf8'); 91 assert.strictEqual(decoder.write(Buffer.from('E1', 'hex')), ''); 94 assert(decoder.lastChar.equals(new Uint8Array([0xe1, 0, 0, 0]))); 95 assert.strictEqual(decoder.lastNeed, 2); 96 assert.strictEqual(decoder.lastTotal, 3); 98 assert.strictEqual(decoder.end(), '\ufffd'); 104 assert [all...] |
/third_party/pulseaudio/src/tests/ |
H A D | alsa-time-test.c | 5 #include <assert.h> 56 assert(r == 0); in main() 63 assert(fillrate > 0); in main() 66 assert(samples); in main() 72 assert(r == 0); in main() 75 assert(r == 0); in main() 78 assert(r == 0); in main() 81 assert(r == 0); in main() 84 assert(r == 0); in main() 87 assert( in main() [all...] |
/third_party/alsa-lib/src/seq/ |
H A D | seq.c | 802 assert(seq); in snd_seq_name() 817 assert(seq); in snd_seq_type() 980 assert(seqp && name); in snd_seq_open() 1013 assert(seqp && name && lconf); in snd_seq_open_lconf() 1023 assert(seqp && name && lconf); in _snd_seq_open_lconf() 1046 assert(seq); in snd_seq_close() 1073 assert(seq); in snd_seq_poll_descriptors_count() 1075 assert(seq->streams & SND_SEQ_OPEN_INPUT); in snd_seq_poll_descriptors_count() 1079 assert(seq->streams & SND_SEQ_OPEN_OUTPUT); in snd_seq_poll_descriptors_count() 1107 assert(se in snd_seq_poll_descriptors() [all...] |
/third_party/jerryscript/tests/jerry/es2015/ |
H A D | typedarray-from.js | 49 assert(constructor.from.length === 1); 54 assert(e instanceof TypeError); 57 assert(constructor.from(set).toString() === '1,2,3'); 58 assert(constructor.from(weak_set).toString() === ''); 62 assert(constructor.from(map).toString() === 'NaN,NaN'); 66 assert(constructor.from(map).toString() === '0,0'); 69 assert(constructor.from(weak_map).toString() === ''); 70 assert(constructor.from(string).toString() === '1,2,3'); 75 assert(e instanceof TypeError); 81 assert( [all...] |
H A D | set-iterators.js | 20 assert(false); 22 assert(e instanceof TypeError); 29 assert(false); 31 assert(e instanceof TypeError); 38 assert(s[method]().toString() === '[object Set Iterator]'); 44 assert(false); 46 assert(e instanceof TypeError); 53 assert(false); 55 assert(e instanceof TypeError); 60 assert(setFromSe [all...] |
H A D | proxy_get.js | 29 assert(false); 31 assert(e === 42); 37 assert(false); 39 assert(e === 42); 45 assert(false); 47 assert(e === 42); 59 assert(proxy.prop === "value"); 60 assert(proxy.nothing === undefined); 61 assert(proxy.handler === undefined); 65 assert(prox [all...] |
H A D | object-assign.js | 23 assert (JSON.stringify (object2) === '{"c":3,"d":5,"a":1,"b":2}'); 24 assert (object2.c === 3); 25 assert (object2.d === 5); 30 assert (JSON.stringify (copy) === '{"a":1}'); // { a: 1 } 38 assert (JSON.stringify (obj2) === '{"a":0,"b":{"c":0}}'); 41 assert (JSON.stringify (obj1) === '{"a":1,"b":{"c":0}}'); 42 assert (JSON.stringify (obj2) === '{"a":0,"b":{"c":0}}'); 45 assert (JSON.stringify (obj1) === '{"a":1,"b":{"c":0}}'); 46 assert (JSON.stringify (obj2) === '{"a":2,"b":{"c":0}}'); 49 assert (JSO [all...] |
H A D | string-prototype-codepointat.js | 19 assert(str.codePointAt(0) === 65); 20 assert(str.codePointAt(1) === 127747); 21 assert(str.codePointAt(2) === 57091); 22 assert(str.codePointAt(3) === 66); 23 assert(str.codePointAt(4) === 55296); 26 assert(str.codePointAt("a") === 65); 27 assert(str.codePointAt("B") === 65); 30 assert(str.codePointAt(obj) === 65); 33 assert(str.codePointAt(NaN) === 65); 36 assert(st [all...] |
H A D | regexp-prototype-source.js | 16 assert(regexp.source === 'fooBar'); 18 assert(new RegExp().source === '(?:)'); 20 assert(new RegExp('/foo/').source === '\\/foo\\/'); 21 assert(new RegExp('/foo/').source.length === 7); 23 assert(new RegExp('bar', 'ug').source === 'bar'); 25 assert(new RegExp('/\?/').source === '\\/?\\/'); 26 assert(new RegExp('/\?/').source.length === 5); 28 assert(new RegExp('\n').source === '\\n'); 30 assert(new RegExp('\r').source === '\\r'); 32 assert(ne [all...] |
H A D | class-inheritance-builtin-array.js | 17 assert (instance instanceof C); 18 assert (instance instanceof B); 19 assert (instance instanceof A); 20 assert (instance instanceof Array); 45 assert (c.length === 7); 46 assert (c.f () === 5); 47 assert (c.g () === 5); 48 assert (c.h () === 5); 55 assert (mapped[i] == c[i] * 2); 62 assert (concate [all...] |
H A D | function-if.js | 20 assert (false) 22 assert (e instanceof SyntaxError) 39 assert(g === undefined) 40 assert(h === undefined) 50 assert(g() === 3) 51 assert(h === undefined) 53 assert(g === undefined) 54 assert(h() === 4) 63 assert(g() === 2) 66 assert( [all...] |