Home
last modified time | relevance | path

Searched refs:isNaN (Results 1 – 25 of 206) sorted by relevance

123456789

/external/chromium_org/v8/test/mjsunit/
Dnans.js46 assertTrue(isNaN(doubles[0]));
47 assertTrue(isNaN(doubles[0]*2.0));
48 assertTrue(isNaN(doubles[0] + 0.5));
61 assertTrue(isNaN(doubles[0]));
62 assertTrue(isNaN(doubles[0]*2.0));
63 assertTrue(isNaN(doubles[0] + 0.5));
76 assertTrue(isNaN(floats[0]));
77 assertTrue(isNaN(floats[0]*2.0));
78 assertTrue(isNaN(floats[0] + 0.5));
91 assertTrue(isNaN(floats[0]));
[all …]
Dnumber-is.js50 assertFalse(Number.isNaN(0));
51 assertFalse(Number.isNaN(Number.MIN_VALUE));
52 assertFalse(Number.isNaN(Number.MAX_VALUE));
53 assertFalse(Number.isNaN(Number.MIN_SAFE_INTEGER - 13));
54 assertFalse(Number.isNaN(Number.MAX_SAFE_INTEGER + 23));
55 assertTrue(Number.isNaN(Number.NaN));
56 assertFalse(Number.isNaN(Number.POSITIVE_INFINITY));
57 assertFalse(Number.isNaN(Number.NEGATIVE_INFINITY));
58 assertFalse(Number.isNaN(Number.EPSILON));
59 assertFalse(Number.isNaN(new Number(0)));
[all …]
Dstring-charcodeat.js116 assertTrue(isNaN(g().charCodeAt(-1e19)), 1 + t);
117 assertTrue(isNaN(g().charCodeAt(-0x80000001)), 2 + t);
118 assertTrue(isNaN(g().charCodeAt(-0x80000000)), 3 + t);
119 assertTrue(isNaN(g().charCodeAt(-0x40000000)), 4 + t);
120 assertTrue(isNaN(g().charCodeAt(-1)), 5 + t);
121 assertTrue(isNaN(g().charCodeAt(len)), 6 + t);
122 assertTrue(isNaN(g().charCodeAt(len + 1)), 7 + t);
123 assertTrue(isNaN(g().charCodeAt(0x3fffffff)), 8 + t);
124 assertTrue(isNaN(g().charCodeAt(0x7fffffff)), 9 + t);
125 assertTrue(isNaN(g().charCodeAt(0x80000000)), 10 + t);
[all …]
Ddate.js56 assertTrue(isNaN(dOverflow.getTime()));
65 assertTrue(isNaN(dUnderflow.getTime()));
85 assertTrue(isNaN(c.getMonth()));
90 assertTrue(isNaN(d.getUTCMonth()));
96 assertTrue(isNaN(e.getDate()));
101 assertTrue(isNaN(f.getUTCDate()));
107 assertTrue(isNaN(g.getHours()));
112 assertTrue(isNaN(h.getUTCHours()));
118 assertTrue(isNaN(g.getMinutes()));
123 assertTrue(isNaN(h.getUTCHours()));
[all …]
Dstr-to-num.js69 assertTrue(isNaN(toNumber(" NaN ")));
195 assertTrue(isNaN(toNumber("junk")), "junk");
196 assertTrue(isNaN(toNumber("100 junk")), "100 junk");
197 assertTrue(isNaN(toNumber("0x100 junk")), "0x100 junk");
198 assertTrue(isNaN(toNumber("100.0 junk")), "100.0 junk");
199 assertTrue(isNaN(toNumber(".1e4 junk")), ".1e4 junk");
200 assertTrue(isNaN(toNumber("Infinity junk")), "Infinity junk");
201 assertTrue(isNaN(toNumber("1e")), "1e");
202 assertTrue(isNaN(toNumber("1e ")), "1e_");
203 assertTrue(isNaN(toNumber("1" + repeat('0', 1000) + 'junk')), "1e1000 junk");
[all …]
Dparse-int-float.js45 assertTrue(isNaN(parseInt('0x ')));
46 assertTrue(isNaN(parseInt('0x')));
47 assertTrue(isNaN(parseInt('0x ', 16)));
48 assertTrue(isNaN(parseInt('0x', 16)));
95 assertTrue(isNaN(parseInt(0/0)));
96 assertTrue(isNaN(parseInt(1/0)), "parseInt Infinity");
97 assertTrue(isNaN(parseInt(-1/0)), "parseInt -Infinity");
99 assertTrue(isNaN(parseFloat(0/0)));
Dstring-charat.js74 assertTrue(isNaN(s().charCodeAt(-1)));
75 assertTrue(isNaN(s().charCodeAt(len)));
76 assertTrue(isNaN(s().charCodeAt(slowIndexOutOfRange)));
77 assertTrue(isNaN(s().charCodeAt(1/0)));
78 assertTrue(isNaN(s().charCodeAt(-1/0)));
122 assertTrue(isNaN(o.charCodeAt(-1)));
123 assertTrue(isNaN(o.charCodeAt(-1.4)));
124 assertTrue(isNaN(o.charCodeAt(10)));
125 assertTrue(isNaN(o.charCodeAt(slowIndexOutOfRange)));
Dsin-cos.js158 assertTrue(isNaN(Math.sin(Infinity)));
159 assertTrue(isNaN(Math.cos("-Infinity")));
182 assertFalse(isNaN(Math.sin(Math.pow(2, i))));
185 assertFalse(isNaN(Math.cos(1.57079632679489700)));
186 assertFalse(isNaN(Math.cos(-1e-100)));
187 assertFalse(isNaN(Math.cos(-1e-323)));
Ddate-parse.js44 assertTrue(!isNaN(d), "parse-local-time: " + string + " is NaN.");
274 assertTrue(isNaN(Date.parse(s)), s + " is not NaN.");
296 assertTrue(isNaN(Date.parse(s)), s + " is not NaN.");
/external/chromium_org/v8/test/mjsunit/regress/
Dregress-2596.js33 assertTrue(isNaN(doubles[0]));
45 assertTrue(isNaN(boom(0)));
46 assertTrue(isNaN(boom(0)));
47 assertTrue(isNaN(boom(0)));
51 assertTrue(isNaN(boom(0)));
52 assertTrue(isNaN(boom(0)));
53 assertTrue(isNaN(boom(0)));
Dregress-416.js32 assertTrue(isNaN(new Date(1e81).getTime()), "new Date(1e81)");
33 assertTrue(isNaN(new Date(-1e81).getTime()), "new Date(-1e81)");
34 assertTrue(isNaN(new Date(1e81, "").getTime()), "new Date(1e81, \"\")");
35 assertTrue(isNaN(new Date(-1e81, "").getTime()), "new Date(-1e81, \"\")");
36 assertTrue(isNaN(new Date(Number.NaN).getTime()), "new Date(Number.NaN)");
37 assertTrue(isNaN(new Date(Number.NaN, "").getTime()),
Dregress-392.js31 assertTrue(isNaN((function(){return arguments++})()));
32 assertTrue(isNaN((function(){return ++arguments})()));
33 assertTrue(isNaN((function(){return arguments--})()));
34 assertTrue(isNaN((function(){return --arguments})()));
Dregress-696.js33 assertTrue(isNaN(Date.parse('x')));
34 assertTrue(isNaN(Date.parse('1x')));
35 assertTrue(isNaN(Date.parse('xT10:00:00')));
36 assertTrue(isNaN(Date.parse('This is a relatively long string')));
/external/chromium_org/v8/test/mjsunit/es6/
Dmath-log2-log10.js31 assertTrue(isNaN(fun(NaN)));
32 assertTrue(isNaN(fun(fun)));
33 assertTrue(isNaN(fun({ toString: function() { return NaN; } })));
34 assertTrue(isNaN(fun({ valueOf: function() { return -1; } })));
35 assertTrue(isNaN(fun({ valueOf: function() { return "abc"; } })));
36 assertTrue(isNaN(fun(-0.1)));
37 assertTrue(isNaN(fun(-1)));
Dmath-log1p.js7 assertTrue(isNaN(Math.log1p(NaN)));
8 assertTrue(isNaN(Math.log1p(function() {})));
9 assertTrue(isNaN(Math.log1p({ toString: function() { return NaN; } })));
10 assertTrue(isNaN(Math.log1p({ valueOf: function() { return "abc"; } })));
15 assertTrue(isNaN(Math.log1p(-2)));
16 assertTrue(isNaN(Math.log1p(-Infinity)));
Dmath-hypot.js30 assertTrue(isNaN(Math.hypot({})));
31 assertTrue(isNaN(Math.hypot(undefined, 1)));
32 assertTrue(isNaN(Math.hypot(1, undefined)));
33 assertTrue(isNaN(Math.hypot(Math.hypot, 1)));
56 assertTrue(isNaN(Math.hypot(1, 2, NaN)));
57 assertTrue(isNaN(Math.hypot(NaN, NaN, 4)));
Dmath-hyperbolic.js32 assertTrue(isNaN(fun(NaN)));
33 assertTrue(isNaN(fun("abc")));
34 assertTrue(isNaN(fun({})));
36 assertTrue(isNaN(fun([1, 1])));
82 assertTrue(isNaN(Math.atanh(-x)));
83 assertTrue(isNaN(Math.atanh(x)));
97 assertTrue(isNaN(Math.acosh(x)));
Dmath-cbrt.js7 assertTrue(isNaN(Math.cbrt(NaN)));
8 assertTrue(isNaN(Math.cbrt(function() {})));
9 assertTrue(isNaN(Math.cbrt({ toString: function() { return NaN; } })));
10 assertTrue(isNaN(Math.cbrt({ valueOf: function() { return "abc"; } })));
Dmath-expm1.js7 assertTrue(isNaN(Math.expm1(NaN)));
8 assertTrue(isNaN(Math.expm1(function() {})));
9 assertTrue(isNaN(Math.expm1({ toString: function() { return NaN; } })));
10 assertTrue(isNaN(Math.expm1({ valueOf: function() { return "abc"; } })));
Dmath-sign.js35 assertTrue(isNaN(Math.sign("abc")));
36 assertTrue(isNaN(Math.sign({})));
40 assertTrue(isNaN(Math.sign([1, 1])));
Dmath-trunc.js37 assertTrue(isNaN(Math.trunc("abc")));
38 assertTrue(isNaN(Math.trunc({})));
42 assertTrue(isNaN(Math.trunc([1, 1])));
Dmath-fround.js10 assertTrue(isNaN(Math.fround(NaN)));
11 assertTrue(isNaN(Math.fround(function() {})));
12 assertTrue(isNaN(Math.fround({ toString: function() { return NaN; } })));
13 assertTrue(isNaN(Math.fround({ valueOf: function() { return "abc"; } })));
/external/chromium_org/v8/test/webkit/fast/js/kde/
DGlobalObject-expected.txt37 PASS isNaN(NaN) is true
38 PASS isNaN('NaN') is true
39 PASS isNaN('1') is false
43 PASS isNaN(parseInt("Hello", 8)) is true
44 PASS isNaN(parseInt("FFF", 10)) is true
45 PASS isNaN(parseInt(".5", 10)) is true
48 PASS isNaN(parseInt()) is true
49 PASS isNaN(parseInt('')) is true
50 PASS isNaN(parseInt(' ')) is true
51 PASS isNaN(parseInt('a')) is true
[all …]
/external/chromium_org/v8/test/webkit/
Ddate-set-to-nan.js88 if (!isNaN(setResult)) {
94 if (!isNaN(getResult)) {
282 if (!isNaN(setResult)) {
289 if (!isNaN(getResult)) {
304 if (!isNaN(setResult)) {
311 if (!isNaN(getResult)) {
335 if (!isNaN(setResult)) {
343 if (!isNaN(getResult)) {
366 if (!isNaN(setResult)) {
375 if (!isNaN(getResult)) {
[all …]
/external/chromium_org/v8/tools/profviz/
Dstdio.js36 if (isNaN(distortion)) processor.printUsageAndExit();;
42 if (!isNaN(range_start)) range_start_override = range_start;
43 if (!isNaN(range_end)) range_end_override = range_end;

123456789