/third_party/node/test/js-native-api/test_object/ |
H A D | test.js | 3 const assert = require('assert'); 19 assert.strictEqual(test_object.Get(object, 'hello'), 'world'); 20 assert.strictEqual(test_object.GetNamed(object, 'hello'), 'world'); 21 assert.deepStrictEqual(test_object.Get(object, 'array'), 23 assert.deepStrictEqual(test_object.Get(object, 'newObject'), 26 assert(test_object.Has(object, 'hello')); 27 assert(test_object.HasNamed(object, 'hello')); 28 assert(test_object.Has(object, 'array')); 29 assert(test_objec [all...] |
/third_party/jerryscript/tests/jerry/ |
H A D | function-prototype-bind.js | 21 assert (triple(20) === 60); 22 assert (triple.prototype === undefined); 25 assert (dupl() === 6); 26 assert (dupl.prototype === undefined); 31 assert (false); 33 assert (e instanceof TypeError); 43 assert (add36(24) === 60); 46 assert (appendfoo() === "36foo"); 53 assert (sum() === 72); 62 assert (_p [all...] |
H A D | eval.js | 15 assert (eval () === undefined); 16 assert (eval (undefined) === undefined); 17 assert (eval (null) === null); 18 assert (eval (true) === true); 19 assert (eval (false) === false); 20 assert (eval (1) === 1); 21 assert (eval (eval) === eval); 28 assert (v1 === 'local value'); 29 assert (typeof (this.v1) === 'undefined'); 33 assert (v [all...] |
H A D | string-prototype-charcodeat.js | 26 assert(Object.getOwnPropertyDescriptor(String.prototype.charCodeAt, 'length').configurable === length_configurable()); 28 assert(Object.getOwnPropertyDescriptor(String.prototype.charCodeAt, 'length').enumerable === false); 30 assert(Object.getOwnPropertyDescriptor(String.prototype.charCodeAt, 'length').writable === false); 32 assert(String.prototype.charCodeAt.length === 1); 35 assert(isNaN(String.prototype.charCodeAt.call(new String()))); 38 assert(String.prototype.charCodeAt.call({}) === 91); 41 assert("hello world!".charCodeAt(0) === 104); 43 assert("hello world!".charCodeAt(1) === 101); 45 assert("HELLO WORLD".charCodeAt(10) === 68); 48 assert(isNa [all...] |
H A D | string-prototype-trim.js | 26 assert(Object.getOwnPropertyDescriptor(String.prototype.trim, 'length').configurable === length_configurable()); 28 assert(Object.getOwnPropertyDescriptor(String.prototype.trim, 'length').enumerable === false); 30 assert(Object.getOwnPropertyDescriptor(String.prototype.trim, 'length').writable === false); 32 assert(String.prototype.trim.length === 0); 35 assert(String.prototype.trim.call(new String()) === ""); 37 assert(String.prototype.trim.call({}) === "[object Object]"); 42 assert(false); 44 assert(e instanceof TypeError); 50 assert(false); 52 assert( [all...] |
H A D | array-prototype-sort.js | 18 assert(array[0] === "Apple"); 19 assert(array[1] === "Apricot"); 20 assert(array[2] === "Cherry"); 21 assert(array[3] === "Grape"); 22 assert(array[4] === "Grapefruit"); 23 assert(array[5] === "Orange"); 24 assert(array[6] === "Peach"); 31 assert(array[i] === i); 47 assert(array[array.length - i - 1] === i); 56 assert(arra [all...] |
H A D | array-prototype-unshift.js | 17 assert(array.length === 0); 20 assert(array.length === 1); 21 assert(array[0] === "foo"); 24 assert(array.length === 2); 25 assert(array[0] instanceof Array); 26 assert(array[1] === "foo") 29 assert(array.length === 3); 30 assert(array[0] === Infinity); 31 assert(array[1] instanceof Array); 32 assert(arra [all...] |
H A D | global-escaping.js | 17 assert (escape ("\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f") === 19 assert (escape ("\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f") === 21 assert (escape (" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMN") === 23 assert (escape ("OPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}\x7F") === 26 assert (escape("\x80\x95\xaf\xfe\xff") === "%80%95%AF%FE%FF"); 27 assert (escape("\u0100\ud800\udc00") === "%u0100%uD800%uDC00"); 29 assert (escape({}) === "%5Bobject%20Object%5D"); 30 assert (escape(true) === "true"); 34 assert (unescape ("%00%01%02%03%04%05%06%07%08%09%0A%0B%0C%0D%0E%0F") === 36 assert (unescap [all...] |
H A D | math-trig.js | 19 assert (isNaN (Math.cos (NaN))); 20 assert ((Math.cos (+0.0)) == 1.0); 21 assert ((Math.cos (-0.0)) == 1.0); 22 assert (isNaN (Math.cos (Infinity))); 23 assert (isNaN (Math.cos (-Infinity))); 25 assert (Math.cos (Math.PI) > -1.0 * mod_p); 26 assert (Math.cos (Math.PI) < -1.0 * mod_m); 28 assert (Math.cos (Math.PI / 2) > -delta); 29 assert (Math.cos (Math.PI / 2) < +delta); 30 assert (Mat [all...] |
H A D | array-prototype-push.js | 19 assert (d.length === 0); 21 assert (d.length === 0); 22 assert (d.length === len); 24 assert (d.length === 1); 25 assert (d.length === len); 27 assert (d.length === 2); 28 assert (d.length === len); 30 assert (d.length === 3); 31 assert (d.length === len); 33 assert ( [all...] |
/third_party/node/test/parallel/ |
H A D | test-fs-error-messages.js | 27 const assert = require('assert'); 72 assert.strictEqual(nonexistentFile, err.path); 73 assert.strictEqual( 76 assert.strictEqual(err.errno, UV_ENOENT); 77 assert.strictEqual(err.code, 'ENOENT'); 78 assert.strictEqual(err.syscall, 'stat'); 84 assert.throws( 93 assert.strictEqual(nonexistentFile, err.path); 94 assert [all...] |
H A D | test-blob.js | 5 const assert = require('assert'); 12 assert.strictEqual(b.size, 0); 13 assert.strictEqual(b.type, ''); 16 assert.throws(() => new Blob(false), { 20 assert.throws(() => new Blob('hello'), { 24 assert.throws(() => new Blob({}), { 30 assert(b); 31 assert.strictEqual(b.size, 0); 32 assert [all...] |
H A D | test-crypto-key-objects.js | 7 const assert = require('assert'); 40 assert.throws(() => new KeyObject(TYPE), { 49 assert.throws(() => new KeyObject('secret', ''), { 59 assert.throws(() => KeyObject.from('invalid_key'), { 71 assert.strictEqual(key.type, 'secret'); 72 assert.strictEqual(key.toString(), '[object KeyObject]'); 73 assert.strictEqual(key.symmetricKeySize, 32); 74 assert.strictEqual(key.asymmetricKeyType, undefined); 75 assert [all...] |
H A D | test-error-serdes.js | 4 const assert = require('assert'); 13 assert.strictEqual(cycle(0), 0); 14 assert.strictEqual(cycle(-1), -1); 15 assert.strictEqual(cycle(1.4), 1.4); 16 assert.strictEqual(cycle(null), null); 17 assert.strictEqual(cycle(undefined), undefined); 18 assert.strictEqual(cycle('foo'), 'foo'); 19 assert.strictEqual(cycle(Symbol.for('foo')), Symbol.for('foo')); 20 assert [all...] |
H A D | test-http2-socket-proxy.js | 8 const assert = require('assert'); 30 assert.ok(socket instanceof net.Socket); 32 assert.strictEqual(socket.writable, true); 33 assert.strictEqual(socket.readable, true); 34 assert.strictEqual(typeof socket.address(), 'object'); 37 assert.strictEqual(session[kTimeout]._idleTimeout, 987); 41 assert(inspectedTimeout.includes(' _idlePrev: [TimersList]')); 42 assert(inspectedTimeout.includes(' _idleNext: [TimersList]')); 43 assert(!inspectedTimeou [all...] |
H A D | test-crypto-x509.js | 19 const assert = require('assert'); 30 assert.throws(() => new X509Certificate(i), { 90 assert(isX509Certificate(x509)); 92 assert(!x509.ca); 93 assert.strictEqual(x509.subject, subjectCheck); 94 assert.strictEqual(x509.subjectAltName, undefined); 95 assert.strictEqual(x509.issuer, issuerCheck); 96 assert.strictEqual(x509.infoAccess, infoAccessCheck); 97 assert [all...] |
H A D | test-perf-hooks-resourcetiming.js | 4 const assert = require('assert'); 16 assert(PerformanceObserver); 17 assert(PerformanceEntry); 18 assert.throws(() => new PerformanceEntry(), { code: 'ERR_ILLEGAL_CONSTRUCTOR' }); 19 assert(PerformanceResourceTiming); 20 assert(clearResourceTimings); 21 assert(markResourceTiming); 67 assert.throws(() => new PerformanceResourceTiming(), { 89 assert(resourc [all...] |
/third_party/jerryscript/tests/jerry/es2015/ |
H A D | object-is.js | 15 assert(Object.is(2, "foo") === false); 16 assert(Object.is(null, 2) === false); 19 assert(Object.is(x, 2) === false); 21 assert(Object.is(null, null) === true); 23 assert(Object.is(2, 8) === false); 24 assert(Object.is(8, 8) === true); 26 assert(Object.is(3.14, 6.28) === false); 27 assert(Object.is(3.14, 3.14) === true); 29 assert(Object.is('foo', 'foo') === true); 30 assert(Objec [all...] |
H A D | array-prototype-fill.js | 33 assert (1 === Array.prototype.fill.length); 35 assert (assertArrayEquals ([].fill (8), [])); 36 assert (assertArrayEquals ([0, 0, 0, 0, 0].fill (), [undefined, undefined, undefined, undefined, undefined])); 37 assert (assertArrayEquals ([0, 0, 0, 0, 0].fill (8), [8, 8, 8, 8, 8])); 38 assert (assertArrayEquals ([0, 0, 0, 0, 0].fill (8, 1), [0, 8, 8, 8, 8])); 39 assert (assertArrayEquals ([0, 0, 0, 0, 0].fill (8, 10), [0, 0, 0, 0, 0])); 40 assert (assertArrayEquals ([0, 0, 0, 0, 0].fill (8, -5), [8, 8, 8, 8, 8])); 41 assert (assertArrayEquals ([0, 0, 0, 0, 0].fill (8, 1, 4), [0, 8, 8, 8, 0])); 42 assert (assertArrayEquals ([0, 0, 0, 0, 0].fill (8, 1, -1), [0, 8, 8, 8, 0])); 43 assert (assertArrayEqual [all...] |
H A D | dataview.js | 19 assert (false); 21 assert (e instanceof TypeError); 27 assert (false); 29 assert (e instanceof TypeError); 35 assert (false); 37 assert (e instanceof TypeError); 45 assert (false); 47 assert (e instanceof ReferenceError); 48 assert (e.message === 'foo'); 54 assert (fals [all...] |
H A D | regexp-routines.js | 16 assert (r.flags === 'gimuy'); 17 assert (r.toString() === '/a/gimuy'); 21 assert (false); 23 assert (e instanceof TypeError); 34 assert(o.flags === "guy"); 35 assert (RegExp.prototype.toString.call (o) === "/str/guy"); 40 assert (false); 42 assert (e === "abrupt flag get"); 47 assert (false); 49 assert ( [all...] |
H A D | proxy_get_own_property_descriptor.js | 29 assert(false); 31 assert(e == "cat"); 37 assert(false); 39 assert(e == "cat"); 45 assert(false); 47 assert(e == "cat"); 96 assert(configurable_desc.value == configurable_obj.value); 97 assert(configurable_desc.configurable == configurable_obj.configurable); 98 assert(configurable_desc.writable == configurable_obj.writable); 99 assert(configurable_des [all...] |
H A D | reflect-own-keys.js | 49 assert (Reflect.ownKeys (object1)[0] === "property1"); 50 assert (Reflect.ownKeys (object1)[1] === "property2"); 51 assert (Reflect.ownKeys (object1).length === 2); 55 assert (2 === keys.length); 56 assert ("a" === keys[0]); 57 assert ("b" === keys[1]); 61 assert (2 === keys.length); 62 assert ("a" === keys[0]); 63 assert ("b" === keys[1]); 69 assert ( 104 assert (Array.prototype === Object.getPrototypeOf (keys)) global() class [all...] |
H A D | function-scope2.js | 21 assert(a === 5); 22 assert(b() === 6); 24 assert(x() === 3); 25 assert(y() === 4); 30 assert(a === 3); 31 assert(b() === 4); 33 assert(x() === 3); 34 assert(y() === 4); 39 assert(a === 1); 40 assert( [all...] |
/third_party/backends/testsuite/sanei/ |
H A D | sanei_constrain_test.c | 9 #include <assert.h> 147 assert (status == SANE_STATUS_GOOD); in min_int_value() 148 assert (info == 0); in min_int_value() 149 assert (value == int_range.min); in min_int_value() 162 assert (status == SANE_STATUS_GOOD); in max_int_value() 163 assert (info == 0); in max_int_value() 164 assert (value == int_range.max); in max_int_value() 177 assert (status == SANE_STATUS_GOOD); in below_min_int_value() 178 assert (info == SANE_INFO_INEXACT); in below_min_int_value() 179 assert (valu in below_min_int_value() [all...] |