/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/GlobalObject/ |
D | 15.1.2.6.js | 51 array[item++] = new TestCase( SECTION, "isNaN.length", 1, isNaN.length ); 54 …tem++] = new TestCase( SECTION, "delete isNaN.length", false, delete isNaN.length ); 59 array[item++] = new TestCase( SECTION, "isNaN()", true, isNaN() ); 60 array[item++] = new TestCase( SECTION, "isNaN( null )", false, isNaN(null) ); 61 array[item++] = new TestCase( SECTION, "isNaN( void 0 )", true, isNaN(void 0) ); 62 array[item++] = new TestCase( SECTION, "isNaN( true )", false, isNaN(true) ); 63 array[item++] = new TestCase( SECTION, "isNaN( false)", false, isNaN(false) ); 64 array[item++] = new TestCase( SECTION, "isNaN( ' ' )", false, isNaN( " " ) ); 66 array[item++] = new TestCase( SECTION, "isNaN( 0 )", false, isNaN(0) ); 67 array[item++] = new TestCase( SECTION, "isNaN( 1 )", false, isNaN(1) ); [all …]
|
/external/v8/test/mjsunit/ |
D | date.js | 54 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(h.getUTCHours())); [all …]
|
D | string-charcodeat.js | 116 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 …]
|
D | parse-int-float.js | 45 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)));
|
D | str-to-num.js | 69 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(toNumber("1" + repeat('0', 1000) + 'junk')), "1e1000 junk");
|
D | string-charat.js | 74 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)));
|
D | date-parse.js | 44 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.");
|
D | unicode-string-to-number.js | 31 assertTrue(isNaN(Number('2\u11372')), "short-string"); 45 assertTrue(isNaN(Number(s)), "long-string");
|
D | sum-0-plus-undefined-is-NaN.js | 38 assertEquals(expectNaN, isNaN(sum(x, y))); 41 assertEquals(expectNaN, isNaN(sum(x, y)));
|
D | mjsunit.js | 128 if (typeof a == "number" && typeof b == "number" && isNaN(a) && isNaN(b)) { 197 if (!isNaN(value)) {
|
/external/v8/test/mjsunit/regress/ |
D | regress-416.js | 32 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()),
|
D | regress-392.js | 31 assertTrue(isNaN((function(){return arguments++})())); 32 assertTrue(isNaN((function(){return ++arguments})())); 33 assertTrue(isNaN((function(){return arguments--})())); 34 assertTrue(isNaN((function(){return --arguments})()));
|
D | regress-696.js | 33 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/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Date/ |
D | 15.9.4.3.js | 58 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/js1_5/Expressions/ |
D | regress-192288.js | 61 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/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
D | StrictMathTest.java | 130 assertTrue("Should return Double.NaN", Double.isNaN(StrictMath in test_cbrt_D() 195 assertTrue("The result should be NaN.", Double.isNaN(StrictMath in test_copySign_DD() 217 assertTrue("The result should be NaN.", Double.isNaN(StrictMath in test_copySign_DD() 260 assertTrue("The result should be NaN.", Float.isNaN(StrictMath in test_copySign_FF() 281 assertTrue("The result should be NaN.", Float.isNaN(StrictMath in test_copySign_FF() 323 assertTrue("Should return NaN", Double.isNaN(StrictMath in test_cosh_D() 369 assertTrue("Should return NaN", Double.isNaN(StrictMath.expm1(Double.NaN))); in test_expm1_D() 471 assertTrue("Should return NaN",Double.isNaN(StrictMath.hypot(Double.NaN, in test_hypot_DD() 473 assertTrue("Should return NaN",Double.isNaN(StrictMath.hypot(-345.2680, in test_hypot_DD() 521 assertTrue("Should return NaN", Double.isNaN(StrictMath in test_log10_D() [all …]
|
D | MathTest.java | 123 assertTrue("Should return Double.NaN", Double.isNaN(Math in test_cbrt_D() 192 assertTrue("The result should be NaN.", Double.isNaN(Math.copySign( in test_copySign_DD() 214 assertTrue("The result should be NaN.", Double.isNaN(Math.copySign( in test_copySign_DD() 264 assertTrue("The result should be NaN.", Float.isNaN(Math.copySign( in test_copySign_FF() 285 assertTrue("The result should be NaN.", Float.isNaN(Math.copySign( in test_copySign_FF() 322 assertTrue(Double.isNaN(Math.cosh(Double.NaN))); in test_cosh_D() 363 assertTrue("Should return NaN", Double.isNaN(Math.expm1(Double.NaN))); in test_expm1_D() 528 assertTrue("Should be NaN", Double.isNaN(Math.hypot(Double.NaN, in test_hypot_DD() 530 assertTrue("Should be NaN", Double.isNaN(Math.hypot(-345.2680, in test_hypot_DD() 574 assertTrue(Double.isNaN(Math.log10(Double.NaN))); in test_log10_D() [all …]
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/ |
D | shell.js | 584 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 ) ){
|
D | jsref.js | 541 if ( isNaN( hour ) || isNaN( min ) || isNaN( sec ) || isNaN( ms ) ) { 554 if ( isNaN(year) || isNaN(month) || isNaN(date) ) { 628 if ( isNaN( t ) ) { 640 if ( isNaN( t ) ){
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_3/Date/ |
D | shell.js | 533 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/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/ |
D | jsref.js | 502 if ( isNaN( hour ) || isNaN( min ) || isNaN( sec ) || isNaN( ms ) ) { 515 if ( isNaN(year) || isNaN(month) || isNaN(date) ) { 589 if ( isNaN( t ) ) { 601 if ( isNaN( t ) ){
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/js1_5/Regress/ |
D | regress-216320.js | 100 if(month>12||day>31||month<=0||day<=0||(isNaN(month)==true)||(isNaN(day)==true)||(isNaN(year)==true… 137 if(month>12||day>31||month<=0||day<=0||(isNaN(month)==true)||(isNaN(day)==true)||(isNaN(year)==true… 215 if(smon>12||sdy>31||smon<=0||sdy<=0||(isNaN(smon)==true)||(isNaN(sdy)==true)||(isNaN(syr)==true)){ 220 if(emon>12||edy>31||emon<=0||edy<=0||(isNaN(emon)==true)||(isNaN(edy)==true)||(isNaN(eyr)==true)){ 531 if(smon>12||sdy>31||smon<=0||sdy<=0||(isNaN(smon)==true)||(isNaN(sdy)==true)||(isNaN(syr)==true)){ 536 if(emon>12||edy>31||emon<=0||edy<=0||(isNaN(emon)==true)||(isNaN(edy)==true)||(isNaN(eyr)==true)){
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/Statements/ |
D | while-003.js | 76 ( isNaN(object.whileExpression) && isNaN(expression) )
|
D | while-002.js | 75 ( isNaN(object.whileExpression) && isNaN(expression) )
|
/external/webkit/Source/JavaScriptCore/API/tests/ |
D | minidom.js | 35 if (evalA == b || isNaN(evalA) && typeof evalA == 'number' && isNaN(b) && typeof b == 'number')
|