Searched refs:isNaN (Results 1 - 25 of 120) sorted by relevance

12345

/external/v8/test/mjsunit/regress/
H A 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})()));
H A 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')));
H A 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()),
H A Dregress-944.js46 assertTrue(isNaN(Date.parse("2010-11-25T22:02:30.Z")));
/external/v8/test/mjsunit/
H A Dnumber-is.js28 // Test Harmony Number.isFinite() and Number.isNaN() functions.
45 assertFalse(Number.isNaN(0));
46 assertFalse(Number.isNaN(Number.MIN_VALUE));
47 assertFalse(Number.isNaN(Number.MAX_VALUE));
48 assertTrue(Number.isNaN(Number.NaN));
49 assertFalse(Number.isNaN(Number.POSITIVE_INFINITY));
50 assertFalse(Number.isNaN(Number.NEGATIVE_INFINITY));
51 assertFalse(Number.isNaN(new Number(0)));
52 assertFalse(Number.isNaN(1/0));
53 assertFalse(Number.isNaN(
[all...]
H A Dsum-0-plus-undefined-is-NaN.js38 assertEquals(expectNaN, isNaN(sum(x, y)));
41 assertEquals(expectNaN, isNaN(sum(x, y)));
H A Dunicode-string-to-number.js31 assertTrue(isNaN(Number('2\u11372')), "short-string");
45 assertTrue(isNaN(Number(s)), "long-string");
H A 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)));
H A Ddate.js54 assertTrue(isNaN(dOverflow.getTime()));
63 assertTrue(isNaN(dUnderflow.getTime()));
83 assertTrue(isNaN(c.getMonth()));
88 assertTrue(isNaN(d.getUTCMonth()));
94 assertTrue(isNaN(e.getDate()));
99 assertTrue(isNaN(f.getUTCDate()));
105 assertTrue(isNaN(g.getHours()));
110 assertTrue(isNaN(h.getUTCHours()));
116 assertTrue(isNaN(g.getMinutes()));
121 assertTrue(isNaN(
[all...]
H A 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(
[all...]
H A Ddate-parse.js44 assertTrue(!isNaN(d), "parse-local-time: " + string + " is NaN.");
274 assertTrue(isNaN(Date.parse(s)), s + " is not NaN.");
293 assertTrue(isNaN(Date.parse(s)), s + " is not NaN.");
H A Dstr-to-num.js69 assertTrue(isNaN(toNumber(" NaN ")));
197 assertTrue(isNaN(toNumber("junk")), "junk");
198 assertTrue(isNaN(toNumber("100 junk")), "100 junk");
199 assertTrue(isNaN(toNumber("0x100 junk")), "0x100 junk");
200 assertTrue(isNaN(toNumber("100.0 junk")), "100.0 junk");
201 assertTrue(isNaN(toNumber(".1e4 junk")), ".1e4 junk");
202 assertTrue(isNaN(toNumber("Infinity junk")), "Infinity junk");
203 assertTrue(isNaN(toNumber("1e")), "1e");
204 assertTrue(isNaN(toNumber("1e ")), "1e_");
205 assertTrue(isNaN(toNumbe
[all...]
H A 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)));
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/GlobalObject/
H A D15.1.2.6.js24 ECMA Section: 15.1.2.6 isNaN( x )
27 the result isNaN and otherwise returns false.
36 var TITLE = "isNaN( x )";
51 array[item++] = new TestCase( SECTION, "isNaN.length", 1, isNaN.length );
52 array[item++] = new TestCase( SECTION, "var MYPROPS=''; for ( var p in isNaN ) { MYPROPS+= p }; MYPROPS", "", eval("var MYPROPS=''; for ( var p in isNaN ) { MYPROPS+= p }; MYPROPS") );
53 array[item++] = new TestCase( SECTION, "isNaN.length = null; isNaN.length", 1, eval("isNaN
[all...]
/external/webkit/Source/JavaScriptCore/tests/mozilla/js1_5/Expressions/
H A Dregress-192288.js61 actual = isNaN(f());
66 actual = isNaN(f.apply(this));
71 actual = isNaN(eval("f.apply(this)"));
76 actual = isNaN(Function('return 0/0;')());
81 actual = isNaN(eval("Function('return 0/0;')()"));
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Date/
H A D15.9.4.3.js58 if ( isNaN(d.year) && 0 <= ToInteger(d.year) && d.year <= 99 ) {
62 if (isNaN(month) || isNaN(year) || isNaN(date) || isNaN(hours) ||
63 isNaN(minutes) || isNaN(seconds) || isNaN(ms) ) {
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/Statements/
H A Dwhile-002.js75 ( isNaN(object.whileExpression) && isNaN(expression) )
H A Dwhile-003.js76 ( isNaN(object.whileExpression) && isNaN(expression) )
H A Dtry-008.js39 if ( Math.floor(value) != value || isNaN(value) ) {
H A Dtry-001.js45 if ( Math.floor(value) != value || isNaN(value) ) {
/external/webkit/Source/JavaScriptCore/API/tests/
H A Dminidom.js35 if (evalA == b || isNaN(evalA) && typeof evalA == 'number' && isNaN(b) && typeof b == 'number')
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/String/
H A D15.5.4.7-3.js121 if ( isNaN( position ) ) {
156 if ( isNaN(n) ) {
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/
H A Dshell.js584 if ( isNaN( hour ) || isNaN( min ) || isNaN( sec ) || isNaN( ms ) ) {
597 if ( isNaN(year) || isNaN(month) || isNaN(date) ) {
671 if ( isNaN( t ) ) {
683 if ( isNaN( t ) ){
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_3/Date/
H A Dshell.js533 if ( isNaN(hour) || isNaN(min) || isNaN(sec) || isNaN(ms) ){return Number.NaN;}
546 if ( isNaN(year) || isNaN(month) || isNaN(date)) {return Number.NaN;}
627 if ( isNaN( t )) {return ( Number.NaN);}
638 if ( isNaN( t )) {return ( Number.NaN);}
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/
H A DStrictMathTest.java130 assertTrue("Should return Double.NaN", Double.isNaN(StrictMath
195 assertTrue("The result should be NaN.", Double.isNaN(StrictMath
217 assertTrue("The result should be NaN.", Double.isNaN(StrictMath
260 assertTrue("The result should be NaN.", Float.isNaN(StrictMath
281 assertTrue("The result should be NaN.", Float.isNaN(StrictMath
323 assertTrue("Should return NaN", Double.isNaN(StrictMath
369 assertTrue("Should return NaN", Double.isNaN(StrictMath.expm1(Double.NaN)));
471 assertTrue("Should return NaN",Double.isNaN(StrictMath.hypot(Double.NaN,
473 assertTrue("Should return NaN",Double.isNaN(StrictMath.hypot(-345.2680,
521 assertTrue("Should return NaN", Double.isNaN(StrictMat
[all...]

Completed in 285 milliseconds

12345