Searched refs:isNaN (Results 1 – 25 of 71) sorted by relevance
123
/external/webkit/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 | string-charcodeat.js | 114 assertTrue(isNaN(g().charCodeAt(-1e19)), 1 + t); 115 assertTrue(isNaN(g().charCodeAt(-0x80000001)), 2 + t); 116 assertTrue(isNaN(g().charCodeAt(-0x80000000)), 3 + t); 117 assertTrue(isNaN(g().charCodeAt(-0x40000000)), 4 + t); 118 assertTrue(isNaN(g().charCodeAt(-1)), 5 + t); 119 assertTrue(isNaN(g().charCodeAt(len)), 6 + t); 120 assertTrue(isNaN(g().charCodeAt(len + 1)), 7 + t); 121 assertTrue(isNaN(g().charCodeAt(0x3fffffff)), 8 + t); 122 assertTrue(isNaN(g().charCodeAt(0x7fffffff)), 9 + t); 123 assertTrue(isNaN(g().charCodeAt(0x80000000)), 10 + t); [all …]
|
D | date.js | 51 assertTrue(isNaN(dOverflow.getTime())); 57 assertTrue(isNaN(dUnderflow.getTime())); 77 assertTrue(isNaN(c.getMonth())); 82 assertTrue(isNaN(d.getUTCMonth())); 88 assertTrue(isNaN(e.getDate())); 93 assertTrue(isNaN(f.getUTCDate())); 99 assertTrue(isNaN(g.getHours())); 104 assertTrue(isNaN(h.getUTCHours())); 110 assertTrue(isNaN(g.getMinutes())); 115 assertTrue(isNaN(h.getUTCHours())); [all …]
|
D | str-to-num.js | 53 assertTrue(isNaN(toNumber(" NaN "))); 153 assertTrue(isNaN(toNumber("junk")), "junk"); 154 assertTrue(isNaN(toNumber("100 junk")), "100 junk"); 155 assertTrue(isNaN(toNumber("0x100 junk")), "0x100 junk"); 156 assertTrue(isNaN(toNumber("100.0 junk")), "100.0 junk"); 157 assertTrue(isNaN(toNumber(".1e4 junk")), ".1e4 junk"); 158 assertTrue(isNaN(toNumber("Infinity junk")), "Infinity junk");
|
D | parse-int-float.js | 77 assertTrue(isNaN(parseInt(0/0))); 78 assertTrue(isNaN(parseInt(1/0)), "parseInt Infinity"); 79 assertTrue(isNaN(parseInt(-1/0)), "parseInt -Infinity"); 81 assertTrue(isNaN(parseFloat(0/0)));
|
D | unicode-string-to-number.js | 31 assertTrue(isNaN(Number('2\u11372')), "short-string"); 45 assertTrue(isNaN(Number(s)), "long-string");
|
D | mjsunit.js | 75 if (typeof a == "number" && typeof b == "number" && isNaN(a) && isNaN(b)) { 137 if (!isNaN(value)) {
|
D | string-charat.js | 51 assertTrue(isNaN(s.charCodeAt(-1))); 52 assertTrue(isNaN(s.charCodeAt(4)));
|
D | date-parse.js | 44 assertTrue(!isNaN(d), "parse-local-time: " + string + " is NaN."); 267 assertTrue(isNaN(Date.parse(s)), s + " is not NaN.");
|
/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})()));
|
/external/webkit/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/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/webkit/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/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/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/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/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/JavaScriptCore/tests/mozilla/ecma/String/ |
D | 15.5.4.7-3.js | 121 if ( isNaN( position ) ) { 156 if ( isNaN(n) ) {
|
/external/webkit/JavaScriptCore/API/tests/ |
D | minidom.js | 35 if (evalA == b || isNaN(evalA) && typeof evalA == 'number' && isNaN(b) && typeof b == 'number')
|
/external/webkit/LayoutTests/fast/js/resources/ |
D | standalone-pre.js | 51 if (typeof(_expected) == "number" && isNaN(_expected)) 52 return typeof(_actual) == "number" && isNaN(_actual);
|
/external/webkit/WebCore/inspector/front-end/ |
D | utilities.js | 714 if (!isNaN(format[index])) { 717 while (!isNaN(format[index])) 733 if (isNaN(precision)) 735 while (!isNaN(format[index])) 756 return !isNaN(substitution) ? substitution : 0; 766 …return !isNaN(substitution) ? substitution : (token.precision > -1 ? Number(0).toFixed(token.preci…
|
D | TimelineGrid.js | 101 if (!isNaN(slice)) 127 if (!isNaN(percentStyleLeft) && Math.abs(percentStyleLeft - percentLeft) < 0.1)
|
123