/external/v8/test/mjsunit/ |
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)));
|
sum-0-plus-undefined-is-NaN.js | 38 assertEquals(expectNaN, isNaN(sum(x, y))); 41 assertEquals(expectNaN, isNaN(sum(x, y)));
|
unicode-string-to-number.js | 31 assertTrue(isNaN(Number('2\u11372')), "short-string"); 45 assertTrue(isNaN(Number(s)), "long-string");
|
external-array.js | 330 assertTrue(isNaN(float32_array[0])); 333 assertTrue(isNaN(float32_array[0])); 337 assertTrue(isNaN(float32_array[0])); 346 assertTrue(isNaN(float64_array[0])); 349 assertTrue(isNaN(float64_array[0])); 353 assertTrue(isNaN(float64_array[0]));
|
/libcore/luni/src/test/java/libcore/java/lang/ |
OldAndroidMathTest.java | 115 assertTrue("Should return Double.NaN", Double.isNaN(Math 161 assertTrue(Double.isNaN(Math.cosh(Double.NaN))); 196 assertTrue("Should return NaN", Double.isNaN(Math.expm1(Double.NaN))); 249 assertTrue("Should be NaN", Double.isNaN(Math.hypot(Double.NaN, 251 assertTrue("Should be NaN", Double.isNaN(Math.hypot(-345.2680, 286 assertTrue(Double.isNaN(Math.log10(Double.NaN))); 287 assertTrue(Double.isNaN(Math.log10(-2541.05745687234187532))); 288 assertTrue(Double.isNaN(Math.log10(-0.1))); 305 assertTrue("Should return NaN", Double.isNaN(Math.log1p(Double.NaN))); 306 assertTrue("Should return NaN", Double.isNaN(Math.log1p(-32.0482175))) [all...] |
OldAndroidStrictMathTest.java | 95 assertTrue("Should return Double.NaN", Double.isNaN(StrictMath 150 assertTrue("Should return NaN", Double.isNaN(StrictMath 190 assertTrue("Should return NaN", Double.isNaN(StrictMath.expm1(Double.NaN))); 245 assertTrue("Should return NaN", Double.isNaN(StrictMath.hypot(Double.NaN, 247 assertTrue("Should return NaN", Double.isNaN(StrictMath.hypot(-345.2680, 286 assertTrue("Should return NaN", Double.isNaN(StrictMath 288 assertTrue("Should return NaN", Double.isNaN(StrictMath 317 assertTrue("Should return NaN", Double.isNaN(StrictMath 319 assertTrue("Should return NaN", Double.isNaN(StrictMath 437 assertTrue("Failed to round properly - NaN", Double.isNaN(StrictMat [all...] |
OldDoubleTest.java | 66 assertFalse("Doesn't return false value", Double.isNaN(new Double(Double.MAX_VALUE)));
|
/external/apache-xml/src/main/java/org/apache/xpath/functions/ |
FuncSubstring.java | 60 if (Double.isNaN(start))
|
/external/chromium_org/v8/test/mjsunit/ |
sum-0-plus-undefined-is-NaN.js | 38 assertEquals(expectNaN, isNaN(sum(x, y))); 41 assertEquals(expectNaN, isNaN(sum(x, y)));
|
unicode-string-to-number.js | 31 assertTrue(isNaN(Number('2\u11372')), "short-string"); 45 assertTrue(isNaN(Number(s)), "long-string");
|
sin-cos.js | 158 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)));
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
MathTest.java | 123 assertTrue("Should return Double.NaN", Double.isNaN(Math 192 assertTrue("The result should be NaN.", Double.isNaN(Math.copySign( 214 assertTrue("The result should be NaN.", Double.isNaN(Math.copySign( 264 assertTrue("The result should be NaN.", Float.isNaN(Math.copySign( 285 assertTrue("The result should be NaN.", Float.isNaN(Math.copySign( 322 assertTrue(Double.isNaN(Math.cosh(Double.NaN))); 363 assertTrue("Should return NaN", Double.isNaN(Math.expm1(Double.NaN))); 528 assertTrue("Should be NaN", Double.isNaN(Math.hypot(Double.NaN, 530 assertTrue("Should be NaN", Double.isNaN(Math.hypot(-345.2680, 574 assertTrue(Double.isNaN(Math.log10(Double.NaN))) [all...] |
/external/chromium_org/v8/test/webkit/ |
date-set-to-nan.js | 88 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/third_party/WebKit/Source/devtools/front_end/ |
GoToLineDialog.js | 106 if (!isNaN(lineNumber) && lineNumber >= 0)
|
StyleSheetOutlineDialog.js | 148 if (!isNaN(lineNumber) && lineNumber >= 0)
|
CSSSourceFrame.js | 64 if (isNaN(unitValue))
|
/external/chromium_org/v8/test/mjsunit/regress/ |
regress-put-prototype-transition.js | 7 function deepEquals(a, b) { if (a === b) { if (a === 0) return (1 / a) === (1 / b); return true; } if (typeof a != typeof b) return false; if (typeof a == "number") return isNaN(a) && isNaN(b); if (typeof a !== "object" && typeof a !== "function") return false; var objectClass = classOf(a); if (objectClass !== classOf(b)) return false; if (objectClass === "RegExp") { return (a.toString() === b.toString()); } if (objectClass === "Function") return false; if (objectClass === "Array") { var elementCount = 0; if (a.length != b.length) { return false; } for (var i = 0; i < a.length; i++) { if (!deepEquals(a[i], b[i])) return false; } return true; } if (objectClass == "String" || objectClass == "Number" || objectClass == "Boolean" || objectClass == "Date") { if (a.valueOf() !== b.valueOf()) return false; } return deepObjectEquals(a, b); }
|
/libcore/json/src/main/java/org/json/ |
JSON.java | 24 if (Double.isInfinite(d) || Double.isNaN(d)) {
|
/external/apache-xml/src/main/java/org/apache/xalan/transformer/ |
NodeSorter.java | 167 //n1Num = Double.isNaN(d) ? 0.0 : d; 169 //n2Num = Double.isNaN(d) ? 0.0 : d; 179 if (Double.isNaN(n1Num)) 181 if (Double.isNaN(n2Num)) 186 else if (Double.isNaN(n2Num))
|
/frameworks/base/core/java/android/view/ |
ScaleGestureDetector.java | 229 final boolean hasLastAccepted = !Float.isNaN(mTouchHistoryLastAccepted); 242 if (Float.isNaN(mTouchUpper) || major > mTouchUpper) { 245 if (Float.isNaN(mTouchLower) || major < mTouchLower) {
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/add_float/ |
Test_add_float.java | 63 assertTrue(Float.isNaN(t.run(Float.POSITIVE_INFINITY,
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/add_float_2addr/ |
Test_add_float_2addr.java | 63 assertTrue(Float.isNaN(t.run(Float.POSITIVE_INFINITY,
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/double_to_float/ |
Test_double_to_float.java | 78 assertTrue(Float.isNaN(t.run(Double.NaN)));
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/float_to_double/ |
Test_float_to_double.java | 80 assertTrue(Double.isNaN(t.run(Float.NaN)));
|
/external/chromium_org/content/test/data/indexeddb/ |
common.js | 93 if (typeof(_expected) == "number" && isNaN(_expected)) 94 return typeof(_actual) == "number" && isNaN(_actual);
|