/external/webkit/LayoutTests/fast/dom/Geolocation/ |
argument-types-expected.txt | 16 PASS navigator.geolocation.getCurrentPosition(Infinity) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17. 17 PASS navigator.geolocation.getCurrentPosition(-Infinity) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17. 28 PASS navigator.geolocation.getCurrentPosition(emptyFunction, Infinity) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17. 29 PASS navigator.geolocation.getCurrentPosition(emptyFunction, -Infinity) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17. 38 PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined, Infinity) did not throw exception. 39 PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined, -Infinity) did not throw exception. 48 PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined, {dummyProperty:Infinity}) did not throw exception. 49 PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined, {dummyProperty:-Infinity}) did not throw exception. 58 PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined, {enableHighAccuracy:Infinity}) did not throw exception. 59 PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined, {enableHighAccuracy:-Infinity}) did not throw exception [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/GlobalObject/ |
15.1.2.7.js | 27 the result is NaN, Infinity, or -Infinity, and otherwise 102 array[item++] = new TestCase( SECTION, "isFinite( new String('Infinity') )", false, isFinite(new String("Infinity")) ); 103 array[item++] = new TestCase( SECTION, "isFinite( new String('-Infinity') )", false, isFinite(new String("-Infinity")) ); 105 array[item++] = new TestCase( SECTION, "isFinite( 'Infinity' )", false, isFinite("Infinity") ); 106 array[item++] = new TestCase( SECTION, "isFinite( '-Infinity' )", false, isFinite("-Infinity") ); [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Expressions/ |
11.13.2-3.js | 67 // if the dividend is infinity or the divisor is zero or both, the result is NaN 69 array[item++] = new TestCase( SECTION, "VAR1 = Infinity; VAR2= Infinity; VAR1 %= VAR2; VAR1", Number.NaN, eval("VAR1 = Number.POSITIVE_INFINITY; VAR2 = Number.POSITIVE_INFINITY; VAR1 %= VAR2; VAR1") ); 70 array[item++] = new TestCase( SECTION, "VAR1 = Infinity; VAR2= -Infinity; VAR1 %= VAR2; VAR1", Number.NaN, eval("VAR1 = Number.POSITIVE_INFINITY; VAR2 = Number.NEGATIVE_INFINITY; VAR1 %= VAR2; VAR1") ); 71 array[item++] = new TestCase( SECTION, "VAR1 =-Infinity; VAR2= Infinity; VAR1 %= VAR2; VAR1", Number.NaN, eval("VAR1 = Number.NEGATIVE_INFINITY; VAR2 = Number.POSITIVE_INFINITY; VAR1 %= VAR2; VAR1") ); 72 array[item++] = new TestCase( SECTION, "VAR1 =-Infinity; VAR2=-Infinity; VAR1 %= VAR2; VAR1", Number.NaN, eval("VAR1 = Number.NEGATIVE_INFINITY; VAR2 = Number.NEGATIVE_INFINITY; VAR1 %= VAR2; VAR1") ); 74 array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2= Infinity; VAR2 %= VAR1", Number.NaN, eval("VAR1 = 0; VAR2 = Number.POSITIVE_INFINITY; VAR2 %= VAR1; (…) [all...] |
11.5.2.js | 36 Division of an infinity by an infinity results in NaN. 37 Division of an infinity by a zero results in an infinity. The sign is determined by the rule already stated above. 38 Division of an infinity by a non-zero finite value results in a signed infinity. The sign is determined by the rule 40 Division of a finite value by an infinity results in zero. The sign is determined by the rule already stated above. 43 Division of a non-zero finite value by a zero results in a signed infinity. The sign is determined by the rule 45 In the remaining cases, where neither an infinity, nor a zero, nor NaN is involved, the quotient is computed and 47 large to represent, we say the operation overflows; the result is then an infinity of appropriate sign. If th [all...] |
11.13.2-1.js | 71 array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2= Infinity; VAR1 *= VAR2", Number.NaN, eval("VAR1 = 0; VAR2 = Number.POSITIVE_INFINITY; VAR1 *= VAR2; VAR1") ); 72 array[item++] = new TestCase( SECTION, "VAR1 = -0; VAR2= Infinity; VAR1 *= VAR2", Number.NaN, eval("VAR1 = -0; VAR2 = Number.POSITIVE_INFINITY; VAR1 *= VAR2; VAR1") ); 73 array[item++] = new TestCase( SECTION, "VAR1 = -0; VAR2= -Infinity; VAR1 *= VAR2", Number.NaN, eval("VAR1 = -0; VAR2 = Number.NEGATIVE_INFINITY; VAR1 *= VAR2; VAR1") ); 74 array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2= -Infinity; VAR1 *= VAR2", Number.NaN, eval("VAR1 = 0; VAR2 = Number.NEGATIVE_INFINITY; VAR1 *= VAR2; VAR1") ); 76 array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2= Infinity; VAR2 *= VAR1", Number.NaN, eval("VAR1 = 0; VAR2 = Number.POSITIVE_INFINITY; VAR2 *= VAR1; VAR2") ); 77 array[item++] = new TestCase( SECTION, "VAR1 = -0; VAR2= Infinity; VAR2 *= VAR1", Number.NaN, eval("VAR1 = -0; VAR2 = Number.POSITIVE_INFINITY; VAR2 *= VAR1; VAR2") ); 78 array[item++] = new TestCase( SECTION, "VAR1 = -0; VAR2= -Infinity; VAR2 *= VAR1", Number.NaN, eval("VAR1 = -0; VAR2 = Number.NEGATIVE_INFINITY; VAR2 *= VAR1; VAR2") ); 79 array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2= -Infinity; VAR2 *= VAR1", Number.NaN, eval("VAR1 = 0; VAR2 = Number.NEGATIVE_INFINITY; VAR2 *= VAR1; VAR2") ); 81 array[item++] = new TestCase( SECTION, "VAR1 = Infinity; VAR2= Infinity; VAR1 *= VAR2", Number.POSITIVE_INFINITY, eval("VAR1 = Number.POSITIVE_INFINITY; VAR2 = Num (…) [all...] |
11.13.2-2.js | 75 array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2= Infinity; VAR1 /= VAR2", 0, eval("VAR1 = 0; VAR2 = Number.POSITIVE_INFINITY; VAR1 /= VAR2; VAR1") ); 76 array[item++] = new TestCase( SECTION, "VAR1 = -0; VAR2= Infinity; VAR1 /= VAR2", 0, eval("VAR1 = -0; VAR2 = Number.POSITIVE_INFINITY; VAR1 /= VAR2; VAR1") ); 77 array[item++] = new TestCase( SECTION, "VAR1 = -0; VAR2= -Infinity; VAR1 /= VAR2", 0, eval("VAR1 = -0; VAR2 = Number.NEGATIVE_INFINITY; VAR1 /= VAR2; VAR1") ); 78 array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2= -Infinity; VAR1 /= VAR2", 0, eval("VAR1 = 0; VAR2 = Number.NEGATIVE_INFINITY; VAR1 /= VAR2; VAR1") ); 80 array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2= Infinity; VAR2 /= VAR1", Number.POSITIVE_INFINITY, eval("VAR1 = 0; VAR2 = Number.POSITIVE_INFINITY; VAR2 /= VAR1; VAR2") ); 81 array[item++] = new TestCase( SECTION, "VAR1 = -0; VAR2= Infinity; VAR2 /= VAR1", Number.NEGATIVE_INFINITY, eval("VAR1 = -0; VAR2 = Number.POSITIVE_INFINITY; VAR2 /= VAR1; VAR2") ); 82 array[item++] = new TestCase( SECTION, "VAR1 = -0; VAR2= -Infinity; VAR2 /= VAR1", Number.POSITIVE_INFINITY, eval("VAR1 = -0; VAR2 = Number.NEGATIVE_INFINITY; VAR2 /= VAR1; VAR2") ); 83 array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2= -Infinity; VAR2 /= VAR1", Number.NEGATIVE_INFINITY, eval("VAR1 = 0; VAR2 = Number.NEGATIVE_INFINITY; VAR2 /= VAR1; VAR2") ); 85 array[item++] = new TestCase( SECTION, "VAR1 = Infinity; VAR2= Infinity; VAR1 /= VAR2", Number.NaN, eval("VAR1 = Number.POSITIVE_INFINITY; VAR2 = Number.POSITIVE_I (…) [all...] |
11.5.1.js | 39 Multiplication of an infinity by a zero results in NaN. 40 Multiplication of an infinity by an infinity results in an infinity. 42 Multiplication of an infinity by a finite non-zero value results in a 43 signed infinity. The sign is determined by the rule already stated above. 44 In the remaining cases, where neither an infinity or NaN is involved, the 47 the result is then an infinity of appropriate sign. If the magnitude is
|
11.13.2-4.js | 67 // the sum of two Infinities the same sign is the infinity of that sign 70 array[item++] = new TestCase( SECTION, "VAR1 = Infinity; VAR2= Infinity; VAR1 += VAR2; VAR1", Number.POSITIVE_INFINITY, eval("VAR1 = Number.POSITIVE_INFINITY; VAR2 = Number.POSITIVE_INFINITY; VAR1 += VAR2; VAR1") ); 71 array[item++] = new TestCase( SECTION, "VAR1 = Infinity; VAR2= -Infinity; VAR1 += VAR2; VAR1", Number.NaN, eval("VAR1 = Number.POSITIVE_INFINITY; VAR2 = Number.NEGATIVE_INFINITY; VAR1 += VAR2; VAR1") ); 72 array[item++] = new TestCase( SECTION, "VAR1 =-Infinity; VAR2= Infinity; VAR1 += VAR2; VAR1", Number.NaN, eval("VAR1 = Number.NEGATIVE_INFINITY; VAR2 = Number.POSITIVE_INFINITY; VAR1 += VAR2; VAR1") ); 73 array[item++] = new TestCase( SECTION, "VAR1 =-Infinity; VAR2=-Infinity; VAR1 += VAR2; VAR1", Number.NEGATIVE_INFINITY, eval("VAR1 = Number.NEGATIVE_INFINITY; VAR2 = Number.NEGATIVE_INFINITY; VAR1 += VAR2; VAR1") ); 75 // the sum of an infinity and a finite value is equal to the infinite operan [all...] |
11.13.2-5.js | 67 // the sum of two Infinities the same sign is the infinity of that sign 70 array[item++] = new TestCase( SECTION, "VAR1 = Infinity; VAR2= Infinity; VAR1 -= VAR2; VAR1", Number.NaN, eval("VAR1 = Number.POSITIVE_INFINITY; VAR2 = Number.POSITIVE_INFINITY; VAR1 -= VAR2; VAR1") ); 71 array[item++] = new TestCase( SECTION, "VAR1 = Infinity; VAR2= -Infinity; VAR1 -= VAR2; VAR1", Number.POSITIVE_INFINITY, eval("VAR1 = Number.POSITIVE_INFINITY; VAR2 = Number.NEGATIVE_INFINITY; VAR1 -= VAR2; VAR1") ); 72 array[item++] = new TestCase( SECTION, "VAR1 =-Infinity; VAR2= Infinity; VAR1 -= VAR2; VAR1", Number.NEGATIVE_INFINITY, eval("VAR1 = Number.NEGATIVE_INFINITY; VAR2 = Number.POSITIVE_INFINITY; VAR1 -= VAR2; VAR1") ); 73 array[item++] = new TestCase( SECTION, "VAR1 =-Infinity; VAR2=-Infinity; VAR1 -= VAR2; VAR1", Number.NaN, eval("VAR1 = Number.NEGATIVE_INFINITY; VAR2 = Number.NEGATIVE_INFINITY; VAR1 -= VAR2; VAR1") ); 75 // the sum of an infinity and a finite value is equal to the infinite operan [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/TypeConversion/ |
9.6.js | 32 2 if result is NaN, 0, -0, Infinity, -Infinity 40 Infinity returns 0 41 -Infinity returns 0 97 array[item++] = new TestCase( SECTION, "'Infinity' >>> 0", 0, "Infinity" >>> 0 ); 98 array[item++] = new TestCase( SECTION, "'-Infinity' >>> 0", 0, "-Infinity" >>> 0); 99 array[item++] = new TestCase( SECTION, "'+Infinity' >>> 0", 0, "+Infinity" >>> 0 ) [all...] |
/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/bits/ |
huge_val.h | 1 /* `HUGE_VAL' constant for IEEE 754 machines (where it is infinity). 26 /* IEEE positive infinity (-HUGE_VAL is negative infinity). */
|
huge_valf.h | 1 /* `HUGE_VALF' constant for IEEE 754 machines (where it is infinity). 26 /* IEEE positive infinity (-HUGE_VAL is negative infinity). */
|
/external/stlport/test/unit/ |
limits_test.cpp | 169 const _Tp infinity = lim::infinity(); local 171 * Infinity must compare as if larger than the maximum representable value. */ 178 CHECK_COND(test_float_values(val, infinity)); 182 str << "lim::max() = " << lim::max() << ", val = " << val << ", infinity = " << infinity; 190 str << ", infinity in hexa: " << showbase << hex << *((const unsigned int*)&infinity); 196 str << ", infinity in hexa: " << showbase << hex << *((const unsigned _STLP_LONG_LONG*)&infinity); [all...] |
/external/v8/test/mjsunit/ |
bit-not.js | 52 testBitNot(Infinity, "Infinity"); 54 testBitNot(-Infinity, "-Infinity");
|
touint32.js | 34 assertEquals(0, ToUInt32(Infinity), "Infinity"); 35 assertEquals(0, ToUInt32(-Infinity), "-Infinity");
|
in.js | 81 assertFalse(Infinity in a); 82 assertFalse(-Infinity in a); 123 assertFalse(Infinity in o); 124 assertFalse(-Infinity in o); 148 assertFalse(Infinity in a,"Infinity in a"); 149 assertFalse(-Infinity in a,"-Infinity in a");
|
math-abs.js | 39 assertEquals(Infinity, Math.abs(Infinity)); 40 assertEquals(Infinity, Math.abs(-Infinity)); 43 assertEquals('Infinity', Math.abs(Number('+Infinity').toString())); 44 assertEquals('Infinity', Math.abs(Number('-Infinity').toString()));
|
math-floor.js | 39 assertEquals(Infinity, Math.floor(Infinity)); 40 assertEquals(-Infinity, Math.floor(-Infinity)); 62 assertEquals(Infinity, Math.floor(Infinity)); 63 assertEquals(-Infinity, Math.floor(-Infinity));
|
math-round.js | 30 assertEquals(Infinity, Math.round(Infinity)); 31 assertEquals(-Infinity, Math.round(-Infinity)); 100 assertEquals(Infinity, Math.round(Infinity)); 101 assertEquals(-Infinity, Math.round(-Infinity));
|
array-reduce.js | 199 testReduce("reduce", "VerySparseReduceDec", Infinity, 200 [[0, 2, 2000, verySparseArray, Infinity], 201 [Infinity, 4, 5000, verySparseArray, Infinity], 202 [Infinity, 6, 9000, verySparseArray, Infinity]], 223 testReduce("reduce", "VerySparseReduceDecNoInit", Infinity, 224 [[2, 4, 5000, verySparseArray, Infinity], 225 [Infinity, 6, 9000, verySparseArray, Infinity]], [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Math/ |
15.8.2.18.js | 31 - if x is Infinity or -Infinity result is NaN 61 array[item++] = new TestCase( SECTION, "Math.tan(Infinity)", Number.NaN, Math.tan(Number.POSITIVE_INFINITY)); 62 array[item++] = new TestCase( SECTION, "Math.tan(-Infinity)", Number.NaN, Math.tan(Number.NEGATIVE_INFINITY)); 68 array[item++] = new TestCase( SECTION, "Infinity/Math.tan(-0)", -Infinity, Infinity/Math.tan(-0) ); 74 This suggests that the answer Christine is getting and a real Infinity are "adjacent" results from the tangent function. I 76 results to infinity that the algorithm can deliver.
|
15.8.2.8.js | 31 - if x is Infinity return Infinity 32 - if x is -Infinity return 0 67 array[item++] = new TestCase( SECTION, "Math.exp(Infinity)", Number.POSITIVE_INFINITY, Math.exp(Number.POSITIVE_INFINITY) ); 68 array[item++] = new TestCase( SECTION, "Math.exp(-Infinity)", 0, Math.exp(Number.NEGATIVE_INFINITY) );
|
/frameworks/compile/libbcc/runtime/lib/ |
divxc3.c | 41 __real__ z = copysignl(INFINITY, __c) * __a; 42 __imag__ z = copysignl(INFINITY, __c) * __b; 48 __real__ z = INFINITY * (__a * __c + __b * __d); 49 __imag__ z = INFINITY * (__b * __c - __a * __d);
|
/ndk/tests/device/test-gnustl-full/unit/ |
limits_test.cpp | 169 const _Tp infinity = lim::infinity(); local 171 * Infinity must compare as if larger than the maximum representable value. */ 178 CHECK_COND(test_float_values(val, infinity)); 182 str << "lim::max() = " << lim::max() << ", val = " << val << ", infinity = " << infinity; 190 str << ", infinity in hexa: " << showbase << hex << *((const unsigned int*)&infinity); 196 str << ", infinity in hexa: " << showbase << hex << *((const unsigned _STLP_LONG_LONG*)&infinity); [all...] |
/ndk/tests/device/test-stlport/unit/ |
limits_test.cpp | 169 const _Tp infinity = lim::infinity(); local 171 * Infinity must compare as if larger than the maximum representable value. */ 178 CHECK_COND(test_float_values(val, infinity)); 182 str << "lim::max() = " << lim::max() << ", val = " << val << ", infinity = " << infinity; 190 str << ", infinity in hexa: " << showbase << hex << *((const unsigned int*)&infinity); 196 str << ", infinity in hexa: " << showbase << hex << *((const unsigned _STLP_LONG_LONG*)&infinity); [all...] |