D | test-internal-webidl-converttoint.js | 34 assert.strictEqual(convertToInt('x', NaN, 64, { clamp: true }), 0); property 35 assert.strictEqual(convertToInt('x', Infinity, 64, { clamp: true }), Number.MAX_SAFE_INTEGER); property 36 assert.strictEqual(convertToInt('x', -Infinity, 64, { clamp: true }), 0); property 37 assert.strictEqual(convertToInt('x', -Infinity, 64, { signed: true, clamp: true }), Number.MIN_SAFE… property 38 assert.strictEqual(convertToInt('x', 0x1_0000_0000, 32, { clamp: true }), 0xFFFF_FFFF); property 39 assert.strictEqual(convertToInt('x', 0xFFFF_FFFF, 32, { clamp: true }), 0xFFFF_FFFF); property 40 assert.strictEqual(convertToInt('x', 0x8000_0000, 32, { clamp: true, signed: true }), 0x7FFF_FFFF); property 41 assert.strictEqual(convertToInt('x', 0xFFFF_FFFF, 32, { clamp: true, signed: true }), 0x7FFF_FFFF); property 42 assert.strictEqual(convertToInt('x', 0.5, 64, { clamp: true }), 0); property 43 assert.strictEqual(convertToInt('x', 1.5, 64, { clamp: true }), 2); property [all …]
|