diff options
author | Robin Templeton <robin@igalia.com> | 2017-10-24 11:48:34 -0400 |
---|---|---|
committer | Robin Templeton <robin@igalia.com> | 2017-10-24 11:48:34 -0400 |
commit | cca387688109482e2532b44dca6f61447e58f934 (patch) | |
tree | 02d4207e11c0b9421e54d521a84c8cdf5b8d5dbf /harness | |
parent | a456b0a390bb0f70b4cb8d38cb5ab0ecb557a851 (diff) | |
download | qtdeclarative-testsuites-cca387688109482e2532b44dca6f61447e58f934.tar.gz |
getBigInt64
Diffstat (limited to 'harness')
-rw-r--r-- | harness/typeCoercion.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/harness/typeCoercion.js b/harness/typeCoercion.js index ed03805d7..26599d216 100644 --- a/harness/typeCoercion.js +++ b/harness/typeCoercion.js @@ -323,6 +323,24 @@ function testNotCoercibleToString(test) { testNotCoercibleToPrimitive("string", test); } +function testCoercibleToBooleanTrue(test) { + test(true); + test(1); + test("string"); + test(Symbol("1")); + test({}); +} + +function testCoercibleToBooleanFalse(test) { + test(undefined); + test(null); + test(false); + test(0); + test(-0); + test(NaN); + test(""); +} + function testCoercibleToBigIntZero(test) { function testPrimitiveValue(value) { test(value); |