Home
last modified time | relevance | path

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

123

/external/webkit/JavaScriptCore/tests/mozilla/ecma/GlobalObject/
D15.1.2.6.js51 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/
Dstring-charcodeat.js114 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 …]
Ddate.js51 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 …]
Dstr-to-num.js53 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");
Dparse-int-float.js77 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)));
Dunicode-string-to-number.js31 assertTrue(isNaN(Number('2\u11372')), "short-string");
45 assertTrue(isNaN(Number(s)), "long-string");
Dmjsunit.js75 if (typeof a == "number" && typeof b == "number" && isNaN(a) && isNaN(b)) {
137 if (!isNaN(value)) {
Dstring-charat.js51 assertTrue(isNaN(s.charCodeAt(-1)));
52 assertTrue(isNaN(s.charCodeAt(4)));
Ddate-parse.js44 assertTrue(!isNaN(d), "parse-local-time: " + string + " is NaN.");
267 assertTrue(isNaN(Date.parse(s)), s + " is not NaN.");
/external/v8/test/mjsunit/regress/
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})()));
/external/webkit/JavaScriptCore/tests/mozilla/ecma/Date/
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/JavaScriptCore/tests/mozilla/js1_5/Expressions/
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/JavaScriptCore/tests/mozilla/ecma/
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 ) ){
Djsref.js541 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/
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/webkit/JavaScriptCore/tests/mozilla/js1_5/Regress/
Dregress-216320.js100 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/
Djsref.js502 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/
Dwhile-003.js76 ( isNaN(object.whileExpression) && isNaN(expression) )
Dwhile-002.js75 ( isNaN(object.whileExpression) && isNaN(expression) )
/external/webkit/JavaScriptCore/tests/mozilla/ecma/String/
D15.5.4.7-3.js121 if ( isNaN( position ) ) {
156 if ( isNaN(n) ) {
/external/webkit/JavaScriptCore/API/tests/
Dminidom.js35 if (evalA == b || isNaN(evalA) && typeof evalA == 'number' && isNaN(b) && typeof b == 'number')
/external/webkit/LayoutTests/fast/js/resources/
Dstandalone-pre.js51 if (typeof(_expected) == "number" && isNaN(_expected))
52 return typeof(_actual) == "number" && isNaN(_actual);
/external/webkit/WebCore/inspector/front-end/
Dutilities.js714 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…
DTimelineGrid.js101 if (!isNaN(slice))
127 if (!isNaN(percentStyleLeft) && Math.abs(percentStyleLeft - percentLeft) < 0.1)

123