/external/v8/test/mjsunit/ |
D | math-pow.js | 39 assertEquals(NaN, Math.pow(2, NaN)); 40 assertEquals(NaN, Math.pow(+0, NaN)); 41 assertEquals(NaN, Math.pow(-0, NaN)); 42 assertEquals(NaN, Math.pow(Infinity, NaN)); 43 assertEquals(NaN, Math.pow(-Infinity, NaN)); 45 assertEquals(1, Math.pow(NaN, +0)); 46 assertEquals(1, Math.pow(NaN, -0)); 48 assertEquals(NaN, Math.pow(NaN, NaN)); 49 assertEquals(NaN, Math.pow(NaN, 2.2)); 50 assertEquals(NaN, Math.pow(NaN, 1)); [all …]
|
D | compare-nan.js | 28 var a = [NaN, -1, 0, 1, 1.2, -7.9, true, false, 'foo', '0', 'NaN' ]; 31 assertFalse(NaN == x, "NaN == " + x); 32 assertFalse(NaN === x, "NaN === " + x); 33 assertFalse(NaN < x, "NaN < " + x); 34 assertFalse(NaN > x, "NaN > " + x); 35 assertFalse(NaN <= x, "NaN <= " + x); 36 assertFalse(NaN >= x, "NaN >= " + x); 38 assertFalse(x == NaN, "" + x + " == NaN"); 39 assertFalse(x === NaN, "" + x + " === NaN"); 40 assertFalse(x < NaN, "" + x + " < NaN"); [all …]
|
D | samevalue.js | 44 assertTrue(natives.SameValue(NaN, NaN)); 61 assertFalse(natives.SameValue(obj1, NaN)); 67 assertFalse(natives.SameValue(undefined, NaN)); 69 assertFalse(natives.SameValue(NaN, true)); 70 assertFalse(natives.SameValue(NaN, "foo")); 71 assertFalse(natives.SameValue(NaN, 1)); 72 assertFalse(natives.SameValue(NaN, obj1)); 73 assertFalse(natives.SameValue(NaN, undefined)); 79 assertFalse(natives.SameValue("foo", NaN)); 84 assertFalse(natives.SameValue(true, NaN)); [all …]
|
D | array-reduce.js | 369 testReduce("reduce", "SparseUndefinedReduceAdd", NaN, 370 [[0, undefined, 2, undefArray, NaN], 371 [NaN, undefined, 4, undefArray, NaN], 375 testReduce("reduceRight", "SparseUndefinedReduceRightAdd", NaN, 376 [[0, undefined, 4, undefArray, NaN], 377 [NaN, undefined, 2, undefArray, NaN], 380 testReduce("reduce", "SparseUndefinedReduceAddNoInit", NaN, 381 [[undefined, undefined, 4, undefArray, NaN], 384 testReduce("reduceRight", "SparseUndefinedReduceRightAddNoInit", NaN, 385 [[undefined, undefined, 2, undefArray, NaN], [all …]
|
D | double-equals.js | 36 assertFalse(NaN == NaN, "NaN == NaN"); 37 assertFalse(NaN == 0, "NaN == 0"); 38 assertFalse(0 == NaN, "0 == NaN"); 39 assertFalse(NaN == Infinity, "NaN == Inf"); 40 assertFalse(Infinity == NaN, "Inf == NaN");
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Expressions/ |
D | 11.5.3.js | 84 … new TestCase( SECTION, "Number.NaN % Number.NaN", Number.NaN, Number.NaN % Number.NaN ); 85 …item++] = new TestCase( SECTION, "Number.NaN % 1", Number.NaN, Number.NaN % 1 ); 86 …item++] = new TestCase( SECTION, "1 % Number.NaN", Number.NaN, 1 % Number.NaN ); 88 … "Number.POSITIVE_INFINITY % Number.NaN", Number.NaN, Number.POSITIVE_INFINITY % Number.Na… 89 … "Number.NEGATIVE_INFINITY % Number.NaN", Number.NaN, Number.NEGATIVE_INFINITY % Number.Na… 94 …CTION, "Number.NEGATIVE_INFINITY % Number.NEGATIVE_INFINITY", Number.NaN, Number.NEGATIVE_… 95 …CTION, "Number.POSITIVE_INFINITY % Number.NEGATIVE_INFINITY", Number.NaN, Number.POSITIVE_… 96 …CTION, "Number.NEGATIVE_INFINITY % Number.POSITIVE_INFINITY", Number.NaN, Number.NEGATIVE_… 97 …CTION, "Number.POSITIVE_INFINITY % Number.POSITIVE_INFINITY", Number.NaN, Number.POSITIVE_… 99 …array[item++] = new TestCase( SECTION, "Number.POSITIVE_INFINITY % 0", Number.NaN, Number… [all …]
|
D | 11.13.2-3.js | 60 …array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=1; VAR1 %= VAR2", Number.NaN, ev… 61 …array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=1; VAR1 %= VAR2; VAR1", Number.NaN, ev… 62 …array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=0; VAR1 %= VAR2", Number.NaN, ev… 63 …array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=0; VAR1 %= VAR2; VAR1", Number.NaN, ev… 64 …array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2=NaN; VAR1 %= VAR2", Number.NaN, ev… 65 …array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2=NaN; VAR1 %= VAR2; VAR1", Number.NaN, ev… 69 …ECTION, "VAR1 = Infinity; VAR2= Infinity; VAR1 %= VAR2; VAR1", Number.NaN, eval("VAR1 = … 70 …ECTION, "VAR1 = Infinity; VAR2= -Infinity; VAR1 %= VAR2; VAR1", Number.NaN, eval("VAR1 = … 71 …ECTION, "VAR1 =-Infinity; VAR2= Infinity; VAR1 %= VAR2; VAR1", Number.NaN, eval("VAR1 = … 72 …ECTION, "VAR1 =-Infinity; VAR2=-Infinity; VAR1 %= VAR2; VAR1", Number.NaN, eval("VAR1 = … [all …]
|
D | 11.5.2.js | 82 … new TestCase( SECTION, "Number.NaN / Number.NaN", Number.NaN, Number.NaN / Number.NaN ); 83 …item++] = new TestCase( SECTION, "Number.NaN / 1", Number.NaN, Number.NaN / 1 ); 84 …item++] = new TestCase( SECTION, "1 / Number.NaN", Number.NaN, 1 / Number.NaN ); 86 … "Number.POSITIVE_INFINITY / Number.NaN", Number.NaN, Number.POSITIVE_INFINITY / Number.Na… 87 … "Number.NEGATIVE_INFINITY / Number.NaN", Number.NaN, Number.NEGATIVE_INFINITY / Number.Na… 91 …CTION, "Number.NEGATIVE_INFINITY / Number.NEGATIVE_INFINITY", Number.NaN, Number.NEGATIVE_… 92 …CTION, "Number.POSITIVE_INFINITY / Number.NEGATIVE_INFINITY", Number.NaN, Number.POSITIVE_… 93 …CTION, "Number.NEGATIVE_INFINITY / Number.POSITIVE_INFINITY", Number.NaN, Number.NEGATIVE_… 94 …CTION, "Number.POSITIVE_INFINITY / Number.POSITIVE_INFINITY", Number.NaN, Number.POSITIVE_… 129 …array[item++] = new TestCase( SECTION, "0 / -0", Number.NaN, 0 / -0… [all …]
|
D | 11.5.1.js | 80 … new TestCase( SECTION, "Number.NaN * Number.NaN", Number.NaN, Number.NaN * Number.NaN ); 81 …item++] = new TestCase( SECTION, "Number.NaN * 1", Number.NaN, Number.NaN * 1 ); 82 …item++] = new TestCase( SECTION, "1 * Number.NaN", Number.NaN, 1 * Number.NaN ); 84 …array[item++] = new TestCase( SECTION, "Number.POSITIVE_INFINITY * 0", Number.NaN, Number.POS… 85 …array[item++] = new TestCase( SECTION, "Number.NEGATIVE_INFINITY * 0", Number.NaN, Number.NEG… 86 …array[item++] = new TestCase( SECTION, "0 * Number.POSITIVE_INFINITY", Number.NaN, 0 * Number… 87 …array[item++] = new TestCase( SECTION, "0 * Number.NEGATIVE_INFINITY", Number.NaN, 0 * Number… 89 …array[item++] = new TestCase( SECTION, "-0 * Number.POSITIVE_INFINITY", Number.NaN, -0 * Num… 90 …array[item++] = new TestCase( SECTION, "-0 * Number.NEGATIVE_INFINITY", Number.NaN, -0 * Num… 91 …array[item++] = new TestCase( SECTION, "Number.POSITIVE_INFINITY * -0", Number.NaN, Number.P… [all …]
|
D | 11.13.2-2.js | 60 …array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=1; VAR1 /= VAR2", Number.NaN, ev… 61 …array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=1; VAR1 /= VAR2; VAR1", Number.NaN, ev… 62 …array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=0; VAR1 /= VAR2", Number.NaN, ev… 63 …array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=0; VAR1 /= VAR2; VAR1", Number.NaN, ev… 64 …array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2=NaN; VAR1 /= VAR2", Number.NaN, ev… 65 …array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2=NaN; VAR1 /= VAR2; VAR1", Number.NaN, ev… 85 …ase( SECTION, "VAR1 = Infinity; VAR2= Infinity; VAR1 /= VAR2", Number.NaN, eval("VAR1 = … 86 …ase( SECTION, "VAR1 = Infinity; VAR2= -Infinity; VAR1 /= VAR2", Number.NaN, eval("VAR1 = … 87 …ase( SECTION, "VAR1 =-Infinity; VAR2= Infinity; VAR1 /= VAR2", Number.NaN, eval("VAR1 = … 88 …ase( SECTION, "VAR1 =-Infinity; VAR2=-Infinity; VAR1 /= VAR2", Number.NaN, eval("VAR1 = … [all …]
|
D | 11.6.3.js | 82 … array[item++] = new TestCase( SECTION, "Number.NaN + 1", Number.NaN, Number.NaN + 1 ); 83 … array[item++] = new TestCase( SECTION, "1 + Number.NaN", Number.NaN, 1 + Number.NaN ); 85 … array[item++] = new TestCase( SECTION, "Number.NaN - 1", Number.NaN, Number.NaN - 1 ); 86 … array[item++] = new TestCase( SECTION, "1 - Number.NaN", Number.NaN, 1 - Number.NaN ); 91 …( SECTION, "Number.POSITIVE_INFINITY + Number.NEGATIVE_INFINITY", Number.NaN, Number.POSITIV… 92 …( SECTION, "Number.NEGATIVE_INFINITY + Number.POSITIVE_INFINITY", Number.NaN, Number.NEGATIV… 94 …( SECTION, "Number.POSITIVE_INFINITY - Number.POSITIVE_INFINITY", Number.NaN, Number.POSITIVE_… 95 …( SECTION, "Number.NEGATIVE_INFINITY - Number.NEGATIVE_INFINITY", Number.NaN, Number.NEGATIVE_…
|
D | 11.13.2-1.js | 60 …array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=1; VAR1 *= VAR2", Number.NaN, ev… 61 …array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=1; VAR1 *= VAR2; VAR1", Number.NaN, ev… 71 … TestCase( SECTION, "VAR1 = 0; VAR2= Infinity; VAR1 *= VAR2", Number.NaN, eval("VAR1 = … 72 … TestCase( SECTION, "VAR1 = -0; VAR2= Infinity; VAR1 *= VAR2", Number.NaN, eval("VAR1 = … 73 … TestCase( SECTION, "VAR1 = -0; VAR2= -Infinity; VAR1 *= VAR2", Number.NaN, eval("VAR1 = … 74 … TestCase( SECTION, "VAR1 = 0; VAR2= -Infinity; VAR1 *= VAR2", Number.NaN, eval("VAR1 = … 76 … TestCase( SECTION, "VAR1 = 0; VAR2= Infinity; VAR2 *= VAR1", Number.NaN, eval("VAR1 = … 77 … TestCase( SECTION, "VAR1 = -0; VAR2= Infinity; VAR2 *= VAR1", Number.NaN, eval("VAR1 = … 78 … TestCase( SECTION, "VAR1 = -0; VAR2= -Infinity; VAR2 *= VAR1", Number.NaN, eval("VAR1 = … 79 … TestCase( SECTION, "VAR1 = 0; VAR2= -Infinity; VAR2 *= VAR1", Number.NaN, eval("VAR1 = …
|
D | 11.13.2-5.js | 60 …array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=1; VAR1 -= VAR2", Number.NaN, ev… 61 …array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=1; VAR1 -= VAR2; VAR1", Number.NaN, ev… 62 …array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=0; VAR1 -= VAR2", Number.NaN, ev… 63 …array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=0; VAR1 -= VAR2; VAR1", Number.NaN, ev… 64 …array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2=NaN; VAR1 -= VAR2", Number.NaN, ev… 65 …array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2=NaN; VAR1 -= VAR2; VAR1", Number.NaN, ev… 70 …CTION, "VAR1 = Infinity; VAR2= Infinity; VAR1 -= VAR2; VAR1", Number.NaN, ev… 73 …CTION, "VAR1 =-Infinity; VAR2=-Infinity; VAR1 -= VAR2; VAR1", Number.NaN, ev…
|
D | 11.13.2-4.js | 60 …array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=1; VAR1 += VAR2", Number.NaN, ev… 61 …array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=1; VAR1 += VAR2; VAR1", Number.NaN, ev… 62 …array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=0; VAR1 += VAR2", Number.NaN, ev… 63 …array[item++] = new TestCase( SECTION, "VAR1 = NaN; VAR2=0; VAR1 += VAR2; VAR1", Number.NaN, ev… 64 …array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2=NaN; VAR1 += VAR2", Number.NaN, ev… 65 …array[item++] = new TestCase( SECTION, "VAR1 = 0; VAR2=NaN; VAR1 += VAR2; VAR1", Number.NaN, ev… 71 …ECTION, "VAR1 = Infinity; VAR2= -Infinity; VAR1 += VAR2; VAR1", Number.NaN, … 72 …ECTION, "VAR1 =-Infinity; VAR2= Infinity; VAR1 += VAR2; VAR1", Number.NaN, …
|
/external/webkit/Source/JavaScriptCore/wtf/ |
D | DateMath.cpp | 116 #define NaN std::numeric_limits<double>::quiet_NaN() macro 384 ASSERT((year >= minYear && year <= maxYear) || (product - year == static_cast<int>(NaN))); in equivalentYearForDST() 584 return NaN; in parseES5DateFromNullTerminatedCharacters() 586 return NaN; in parseES5DateFromNullTerminatedCharacters() 591 return NaN; in parseES5DateFromNullTerminatedCharacters() 593 return NaN; in parseES5DateFromNullTerminatedCharacters() 595 return NaN; in parseES5DateFromNullTerminatedCharacters() 600 return NaN; in parseES5DateFromNullTerminatedCharacters() 602 return NaN; in parseES5DateFromNullTerminatedCharacters() 604 return NaN; in parseES5DateFromNullTerminatedCharacters() [all …]
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Math/ |
D | 15.8.2.11.js | 56 …array[item++] = new TestCase( SECTION, "Math.max(void 0, 1)", Number.NaN, Math.max( … 57 …array[item++] = new TestCase( SECTION, "Math.max(void 0, void 0)", Number.NaN, Math.max( … 64 …ew TestCase( SECTION, "Math.max(NaN, Infinity)", Number.NaN, Math.max(Number.NaN,Number.… 65 … new TestCase( SECTION, "Math.max(NaN, 0)", Number.NaN, Math.max(Number.NaN, 0) ); 66 …array[item++] = new TestCase( SECTION, "Math.max('a string', 0)", Number.NaN, Math.max("… 67 …= new TestCase( SECTION, "Math.max(NaN, 1)", Number.NaN, Math.max(Number.NaN,1) ); 68 …array[item++] = new TestCase( SECTION, "Math.max('a string',Infinity)", Number.NaN, Math.max("… 69 …SECTION, "Math.max(Infinity, NaN)", Number.NaN, Math.max( Number.POSITIVE_INFINITY, Numb… 70 …tCase( SECTION, "Math.max(NaN, NaN)", Number.NaN, Math.max(Number.NaN, Number.NaN) … 71 …= new TestCase( SECTION, "Math.max(0,NaN)", Number.NaN, Math.max(0,Number.NaN) ); [all …]
|
D | 15.8.2.12.js | 57 …array[item++] = new TestCase( SECTION, "Math.min(void 0, 1)", Number.NaN, Math.min( … 58 …array[item++] = new TestCase( SECTION, "Math.min(void 0, void 0)", Number.NaN, Math.min( … 65 …array[item++] = new TestCase( SECTION, "Math.min(NaN,0)", Number.NaN, Math.min(Number.NaN,0)… 66 …array[item++] = new TestCase( SECTION, "Math.min(NaN,1)", Number.NaN, Math.min(Number.NaN,1)… 67 …array[item++] = new TestCase( SECTION, "Math.min(NaN,-1)", Number.NaN, Math.min(Number.NaN,-1… 68 …ray[item++] = new TestCase( SECTION, "Math.min(0,NaN)", Number.NaN, Math.min(0,Number.NaN) ); 69 …ray[item++] = new TestCase( SECTION, "Math.min(1,NaN)", Number.NaN, Math.min(1,Number.NaN) ); 70 …ay[item++] = new TestCase( SECTION, "Math.min(-1,NaN)", Number.NaN, Math.min(-1,Number.NaN) ); 71 …+] = new TestCase( SECTION, "Math.min(NaN,NaN)", Number.NaN, Math.min(Number.NaN,Number.NaN) );
|
D | 15.8.2.13.js | 48 …array[item++] = new TestCase( SECTION, "Math.pow()", Number.NaN, … 50 …array[item++] = new TestCase( SECTION, "Math.pow(void 0, void 0)", Number.NaN, … 55 …( SECTION, "Math.pow(1,NaN)", Number.NaN, Math.pow(1,Number.NaN)… 56 …e( SECTION, "Math.pow(0,NaN)", Number.NaN, Math.pow(0,Number.NaN)… 57 …SECTION, "Math.pow(NaN,0)", 1, Math.pow(Number.NaN,0) ); 58 …ECTION, "Math.pow(NaN,-0)", 1, Math.pow(Number.NaN,-0) ); 59 …e( SECTION, "Math.pow(NaN,1)", Number.NaN, Math.pow(Number.NaN, … 60 …e( SECTION, "Math.pow(NaN,.5)", Number.NaN, Math.pow(Number.NaN, … 65 …array[item++] = new TestCase( SECTION, "Math.pow(1, Infinity)", Number.NaN, … 66 …array[item++] = new TestCase( SECTION, "Math.pow(1, -Infinity)", Number.NaN, … [all …]
|
D | 15.8.2.10.js | 54 … array[item++] = new TestCase( SECTION, "Math.log()", Number.NaN, Math.log() ); 55 …array[item++] = new TestCase( SECTION, "Math.log(void 0)", Number.NaN, Math.log(void … 63 …em++] = new TestCase( SECTION, "Math.log(NaN)", Number.NaN, Math.log(Number.NaN) ); 64 …array[item++] = new TestCase( SECTION, "Math.log(-0.0000001)", Number.NaN, Math.log(-0.00… 65 …array[item++] = new TestCase( SECTION, "Math.log(-1)", Number.NaN, Math.log(-1) … 70 …array[item++] = new TestCase( SECTION, "Math.log(-Infinity)", Number.NaN, Math.log(Numbe…
|
D | 15.8.2.2.js | 51 …array[item++] = new TestCase( SECTION, "Math.acos(void 0)", Number.NaN, Math.acos(void… 52 … array[item++] = new TestCase( SECTION, "Math.acos()", Number.NaN, Math.acos() ); 54 …m++] = new TestCase( SECTION, "Math.acos(NaN)", Number.NaN, Math.acos(Number.NaN) ); 56 …array[item++] = new TestCase( SECTION, "Math.acos(a string)", Number.NaN, Math.acos("a s… 61 …array[item++] = new TestCase( SECTION, "Math.acos(1.00000001)", Number.NaN, Math.acos(1.00… 62 …array[item++] = new TestCase( SECTION, "Math.acos(11.00000001)", Number.NaN, Math.acos(-1.0…
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Date/ |
D | 15.9.4.3.js | 64 d.year = Number.NaN; 65 d.month = Number.NaN; 66 d.date = Number.NaN; 67 d.hours = Number.NaN; 68 d.minutes = Number.NaN; 69 d.seconds = Number.NaN; 70 d.ms = Number.NaN; 71 d.value = Number.NaN; 72 d.time = Number.NaN; 73 d.day =Number.NaN; [all …]
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
D | MathTest.java | 124 .cbrt(Double.NaN))); in test_cbrt_D() 191 magnitude, Double.NaN))); in test_copySign_DD() 193 Double.NaN, magnitude))); in test_copySign_DD() 215 Double.NaN, Double.NaN))); in test_copySign_DD() 263 magnitude, Float.NaN))); in test_copySign_FF() 265 Float.NaN, magnitude))); in test_copySign_FF() 286 Float.NaN, Float.NaN))); 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() 405 Double.toString(Double.NaN), Double.toString(Math.floor(Double.NaN))); in test_floorD() [all …]
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/String/ |
D | 15.5.4.5-5.js | 77 …n(true); x.charCodeAt=String.prototype.charCodeAt;x.charCodeAt(4)", Number.NaN, eval("x = new … 78 …(true); x.charCodeAt=String.prototype.charCodeAt;x.charCodeAt(-1)", Number.NaN, eval("x = new B… 83 …array[item++] = new TestCase( SECTION, "x = new String(); x.charCodeAt(0)", Number.NaN, … 84 …array[item++] = new TestCase( SECTION, "x = new String(); x.charCodeAt(1)", Number.NaN, … 85 …array[item++] = new TestCase( SECTION, "x = new String(); x.charCodeAt(-1)", Number.NaN, … 87 …array[item++] = new TestCase( SECTION, "x = new String(); x.charCodeAt(NaN)", Number.NaN, … 88 …, "x = new String(); x.charCodeAt(Number.POSITIVE_INFINITY)", Number.NaN, eval("x=new St… 89 …, "x = new String(); x.charCodeAt(Number.NEGATIVE_INFINITY)", Number.NaN, eval("x=new St…
|
D | 15.5.4.5-2.js | 75 …n(true); x.charCodeAt=String.prototype.charCodeAt;x.charCodeAt(4)", Number.NaN, eval("x = new … 76 …(true); x.charCodeAt=String.prototype.charCodeAt;x.charCodeAt(-1)", Number.NaN, eval("x = new B… 81 …array[item++] = new TestCase( SECTION, "x = new String(); x.charCodeAt(0)", Number.NaN, … 82 …array[item++] = new TestCase( SECTION, "x = new String(); x.charCodeAt(1)", Number.NaN, … 83 …array[item++] = new TestCase( SECTION, "x = new String(); x.charCodeAt(-1)", Number.NaN, … 85 …N, "x = new String(); x.charCodeAt(NaN)", Number.NaN, eval("x=new St… 86 …N, "x = new String(); x.charCodeAt(Number.POSITIVE_INFINITY)", Number.NaN, eval("x=new St… 87 …N, "x = new String(); x.charCodeAt(Number.NEGATIVE_INFINITY)", Number.NaN, eval("x=new St… 94 …y(1,2,3); x.charCodeAt = String.prototype.charCodeAt; x.charCodeAt(5)", NaN, eval("x = new Ar…
|
/external/webkit/LayoutTests/fast/xpath/ |
D | substring-nan-position-expected.txt | 1 Test for bug 41862: XPath substring function is broken when passing NaN as the position parameter. 3 PASS document.evaluate("substring('12345', number('NaN'))", document, null, XPathResult.STRING_TYPE… 4 PASS document.evaluate("substring('12345', number('NaN'), 3)", document, null, XPathResult.STRING_T… 5 PASS document.evaluate("substring('12345', number('NaN'), -2147483645)", document, null, XPathResul… 6 PASS document.evaluate("substring('12345', number('NaN'), number('NaN'))", document, null, XPathRes…
|