/external/webkit/JavaScriptCore/tests/mozilla/ecma/TypeConversion/ |
9.4-1.js | 24 ECMA Section: 9.4 ToInteger 54 var SECTION = "9.4-1"; 59 writeHeaderToLog( SECTION + " "+ TITLE); 89 array[item++] = new TestCase( SECTION, "td = new Date(Number.NaN); td.valueOf()", Number.NaN, eval("td = new Date(Number.NaN); td.valueOf()") ); 90 array[item++] = new TestCase( SECTION, "td = new Date(Infinity); td.valueOf()", Number.NaN, eval("td = new Date(Number.POSITIVE_INFINITY); td.valueOf()") ); 91 array[item++] = new TestCase( SECTION, "td = new Date(-Infinity); td.valueOf()", Number.NaN, eval("td = new Date(Number.NEGATIVE_INFINITY); td.valueOf()") ); 92 array[item++] = new TestCase( SECTION, "td = new Date(-0); td.valueOf()", -0, eval("td = new Date(-0); td.valueOf()" ) ); 93 array[item++] = new TestCase( SECTION, "td = new Date(0); td.valueOf()", 0, eval("td = new Date(0); td.valueOf()") ); 97 array[item++] = new TestCase( SECTION, "td = new Date(3.14159); td.valueOf()", 3, eval("td = new Date(3.14159); td.valueOf()") ); 98 array[item++] = new TestCase( SECTION, "td = new Date(Math.PI); td.valueOf()", 3, eval("td = new Date(Math.PI); td.valueOf (…) [all...] |
9.4-2.js | 24 ECMA Section: 9.4 ToInteger 54 var SECTION = "9.4-1"; 59 writeHeaderToLog( SECTION + " "+ TITLE); 89 array[item++] = new TestCase( SECTION, "td = new Date(Number.NaN); td.valueOf()", Number.NaN, eval("td = new Date(Number.NaN); td.valueOf()") ); 90 array[item++] = new TestCase( SECTION, "td = new Date(Infinity); td.valueOf()", Number.NaN, eval("td = new Date(Number.POSITIVE_INFINITY); td.valueOf()") ); 91 array[item++] = new TestCase( SECTION, "td = new Date(-Infinity); td.valueOf()", Number.NaN, eval("td = new Date(Number.NEGATIVE_INFINITY); td.valueOf()") ); 92 array[item++] = new TestCase( SECTION, "td = new Date(-0); td.valueOf()", -0, eval("td = new Date(-0); td.valueOf()" ) ); 93 array[item++] = new TestCase( SECTION, "td = new Date(0); td.valueOf()", 0, eval("td = new Date(0); td.valueOf()") ); 97 array[item++] = new TestCase( SECTION, "td = new Date(3.14159); td.valueOf()", 3, eval("td = new Date(3.14159); td.valueOf()") ); 98 array[item++] = new TestCase( SECTION, "td = new Date(Math.PI); td.valueOf()", 3, eval("td = new Date(Math.PI); td.valueOf (…) [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma/Expressions/ |
11.5.2.js | 24 ECMA Section: 11.5.2 Applying the / operator 54 var SECTION = "11.5.2"; 60 writeHeaderToLog( SECTION + " Applying the / operator"); 82 array[item++] = new TestCase( SECTION, "Number.NaN / Number.NaN", Number.NaN, Number.NaN / Number.NaN ); 83 array[item++] = new TestCase( SECTION, "Number.NaN / 1", Number.NaN, Number.NaN / 1 ); 84 array[item++] = new TestCase( SECTION, "1 / Number.NaN", Number.NaN, 1 / Number.NaN ); 86 array[item++] = new TestCase( SECTION, "Number.POSITIVE_INFINITY / Number.NaN", Number.NaN, Number.POSITIVE_INFINITY / Number.NaN ); 87 array[item++] = new TestCase( SECTION, "Number.NEGATIVE_INFINITY / Number.NaN", Number.NaN, Number.NEGATIVE_INFINITY / Number.NaN ); 91 array[item++] = new TestCase( SECTION, "Number.NEGATIVE_INFINITY / Number.NEGATIVE_INFINITY", Number.NaN, Number.NEGATIVE_INFINITY / Number.NEGATIVE_INFINITY ); 92 array[item++] = new TestCase( SECTION, "Number.POSITIVE_INFINITY / Number.NEGATIVE_INFINITY", Number.NaN, Number.POSITIVE_INFINI (…) [all...] |
11.5.1.js | 24 ECMA Section: 11.5.1 Applying the * operator 55 var SECTION = "11.5.1"; 60 writeHeaderToLog( SECTION + " Applying the * operator"); 80 array[item++] = new TestCase( SECTION, "Number.NaN * Number.NaN", Number.NaN, Number.NaN * Number.NaN ); 81 array[item++] = new TestCase( SECTION, "Number.NaN * 1", Number.NaN, Number.NaN * 1 ); 82 array[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.POSITIVE_INFINITY * 0 ); 85 array[item++] = new TestCase( SECTION, "Number.NEGATIVE_INFINITY * 0", Number.NaN, Number.NEGATIVE_INFINITY * 0 ); 86 array[item++] = new TestCase( SECTION, "0 * Number.POSITIVE_INFINITY", Number.NaN, 0 * Number.POSITIVE_INFINITY ); 87 array[item++] = new TestCase( SECTION, "0 * Number.NEGATIVE_INFINITY", Number.NaN, 0 * Number.NEGATIVE_INFINITY ) [all...] |
11.6.2-1.js | 24 ECMA Section: 11.6.2 The Subtraction operator ( - ) 43 var SECTION = "11.6.2-1"; 48 writeHeaderToLog( SECTION + " The subtraction operator ( - )"); 72 array[item++] = new TestCase( SECTION, 77 array[item++] = new TestCase( SECTION, 82 array[item++] = new TestCase( SECTION, 87 array[item++] = new TestCase( SECTION, 92 array[item++] = new TestCase( SECTION, 97 array[item++] = new TestCase( SECTION, 102 array[item++] = new TestCase( SECTION, [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma/Math/ |
15.8.2.7.js | 24 ECMA Section: 15.8.2.7 cos( x ) 32 var SECTION = "15.8.2.7"; 37 writeHeaderToLog( SECTION + " "+ TITLE); 46 array[item++] = new TestCase( SECTION, "Math.cos.length", 1, Math.cos.length ); 48 array[item++] = new TestCase( SECTION, "Math.cos()", Number.NaN, Math.cos() ); 49 array[item++] = new TestCase( SECTION, "Math.cos(void 0)", Number.NaN, Math.cos(void 0) ); 50 array[item++] = new TestCase( SECTION, "Math.cos(false)", 1, Math.cos(false) ); 51 array[item++] = new TestCase( SECTION, "Math.cos(null)", 1, Math.cos(null) ); 53 array[item++] = new TestCase( SECTION, "Math.cos('0')", 1, Math.cos('0') ); 54 array[item++] = new TestCase( SECTION, "Math.cos('Infinity')", Number.NaN, Math.cos("Infinity") ) [all...] |
15.8.2.11.js | 24 ECMA Section: 15.8.2.11 Math.max(x, y) 38 var SECTION = "15.8.2.11"; 44 writeHeaderToLog( SECTION + " "+ TITLE); 53 array[item++] = new TestCase( SECTION, "Math.max.length", 2, Math.max.length ); 55 array[item++] = new TestCase( SECTION, "Math.max()", -Infinity, Math.max() ); 56 array[item++] = new TestCase( SECTION, "Math.max(void 0, 1)", Number.NaN, Math.max( void 0, 1 ) ); 57 array[item++] = new TestCase( SECTION, "Math.max(void 0, void 0)", Number.NaN, Math.max( void 0, void 0 ) ); 58 array[item++] = new TestCase( SECTION, "Math.max(null, 1)", 1, Math.max( null, 1 ) ); 59 array[item++] = new TestCase( SECTION, "Math.max(-1, null)", 0, Math.max( -1, null ) ); 60 array[item++] = new TestCase( SECTION, "Math.max(true, false)", 1, Math.max(true,false) ) [all...] |
15.8.2.18.js | 24 ECMA Section: 15.8.2.18 tan( x ) 36 var SECTION = "15.8.2.18"; 42 writeHeaderToLog( SECTION + " "+ TITLE); 51 array[item++] = new TestCase( SECTION, "Math.tan.length", 1, Math.tan.length ); 53 array[item++] = new TestCase( SECTION, "Math.tan()", Number.NaN, Math.tan() ); 54 array[item++] = new TestCase( SECTION, "Math.tan(void 0)", Number.NaN, Math.tan(void 0)); 55 array[item++] = new TestCase( SECTION, "Math.tan(null)", 0, Math.tan(null) ); 56 array[item++] = new TestCase( SECTION, "Math.tan(false)", 0, Math.tan(false) ); 58 array[item++] = new TestCase( SECTION, "Math.tan(NaN)", Number.NaN, Math.tan(Number.NaN) ); 59 array[item++] = new TestCase( SECTION, "Math.tan(0)", 0, Math.tan(0)) [all...] |
15.8.2.2.js | 24 ECMA Section: 15.8.2.2 acos( x ) 35 var SECTION = "15.8.2.2"; 40 writeHeaderToLog( SECTION + " "+ TITLE); 49 array[item++] = new TestCase( SECTION, "Math.acos.length", 1, Math.acos.length ); 51 array[item++] = new TestCase( SECTION, "Math.acos(void 0)", Number.NaN, Math.acos(void 0) ); 52 array[item++] = new TestCase( SECTION, "Math.acos()", Number.NaN, Math.acos() ); 53 array[item++] = new TestCase( SECTION, "Math.acos(null)", Math.PI/2, Math.acos(null) ); 54 array[item++] = 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 string") ); 57 array[item++] = new TestCase( SECTION, "Math.acos('0')", Math.PI/2, Math.acos('0') ) [all...] |
15.8.2.4.js | 24 ECMA Section: 15.8.2.4 atan( x ) 38 var SECTION = "15.8.2.4"; 44 writeHeaderToLog( SECTION + " "+ TITLE); 53 array[item++] = new TestCase( SECTION, "Math.atan.length", 1, Math.atan.length ); 55 array[item++] = new TestCase( SECTION, "Math.atan()", Number.NaN, Math.atan() ); 56 array[item++] = new TestCase( SECTION, "Math.atan(void 0)", Number.NaN, Math.atan(void 0) ); 57 array[item++] = new TestCase( SECTION, "Math.atan(null)", 0, Math.atan(null) ); 58 array[item++] = new TestCase( SECTION, "Math.atan(NaN)", Number.NaN, Math.atan(Number.NaN) ); 60 array[item++] = new TestCase( SECTION, "Math.atan('a string')", Number.NaN, Math.atan("a string") ); 61 array[item++] = new TestCase( SECTION, "Math.atan('0')", 0, Math.atan('0') ) [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma/String/ |
15.5.4.5-3.js | 24 ECMA Section: 15.5.4.5 String.prototype.charCodeAt(pos) 52 var SECTION = "15.5.4.5-3"; 57 writeHeaderToLog( SECTION + " "+ TITLE); 76 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello');foo.charCodeAt(0)", 0x0068, foo.charCodeAt(0) ); 77 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello');foo.charCodeAt(1)", 0x0065, foo.charCodeAt(1) ); 78 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello');foo.charCodeAt(2)", 0x006c, foo.charCodeAt(2) ); 79 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello');foo.charCodeAt(3)", 0x006c, foo.charCodeAt(3) ); 80 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello');foo.charCodeAt(4)", 0x006f, foo.charCodeAt(4) ); 81 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello');foo.charCodeAt(-1)", Number.NaN, foo.charCodeAt(-1) ); 82 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello');foo.charCodeAt(5)", Number.NaN, foo.charCodeAt(5) ) [all...] |
15.5.4.6-2.js | 24 ECMA Section: 15.5.4.6 String.prototype.indexOf( searchString, pos) 63 ECMA-262 Ed.3 Section 15.5.4.7 67 var SECTION = "15.5.4.6-2"; 73 writeHeaderToLog( SECTION + " "+ TITLE); 101 array[item++] = new TestCase( SECTION, "function f() { return this; }; function g() { var h = f; return h(); }; g().toString()", GLOBAL, g().toString() ); 104 array[item++] = new TestCase( SECTION, "String.prototype.indexOf.length", 1, String.prototype.indexOf.length ); 105 array[item++] = new TestCase( SECTION, "String.prototype.indexOf.length = null; String.prototype.indexOf.length", 1, eval("String.prototype.indexOf.length = null; String.prototype.indexOf.length") ); 106 array[item++] = new TestCase( SECTION, "delete String.prototype.indexOf.length", false, delete String.prototype.indexOf.length ); 107 array[item++] = new TestCase( SECTION, "delete String.prototype.indexOf.length; String.prototype.indexOf.length", 1, eval("delete String.prototype.indexOf.length; String.prototype.indexOf.length") ); 109 array[item++] = new TestCase( SECTION, "var s = new String(); s.indexOf()", -1, eval("var s = new String(); s.indexOf()") ) [all...] |
15.5.4.4-3.js | 24 ECMA Section: 15.5.4.4 String.prototype.charAt(pos) 50 var SECTION = "15.5.4.4-3"; 55 writeHeaderToLog( SECTION + " "+ TITLE); 73 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello'); ", "h", foo.charAt(0) ); 74 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello'); ", "e", foo.charAt(1) ); 75 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello'); ", "l", foo.charAt(2) ); 76 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello'); ", "l", foo.charAt(3) ); 77 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello'); ", "o", foo.charAt(4) ); 78 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello'); ", "", foo.charAt(-1) ); 79 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello'); ", "", foo.charAt(5) ) [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma/Number/ |
15.7.2.js | 24 ECMA Section: 15.7.2 The Number Constructor 49 var SECTION = "15.7.2"; 54 writeHeaderToLog( SECTION + " "+ TITLE); 66 array[item++] = new TestCase(SECTION, "(new Number()).constructor", Number.prototype.constructor, (new Number()).constructor ); 68 array[item++] = new TestCase(SECTION, "typeof (new Number())", "object", typeof (new Number()) ); 69 array[item++] = new TestCase(SECTION, "(new Number()).valueOf()", 0, (new Number()).valueOf() ); 70 array[item++] = new TestCase(SECTION, 75 array[item++] = new TestCase(SECTION, "(new Number(0)).constructor", Number.prototype.constructor, (new Number(0)).constructor ); 76 array[item++] = new TestCase(SECTION, "typeof (new Number(0))", "object", typeof (new Number(0)) ); 77 array[item++] = new TestCase(SECTION, "(new Number(0)).valueOf()", 0, (new Number(0)).valueOf() ) [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma/FunctionObjects/ |
15.3.1.1-1.js | 24 ECMA Section: 15.3.1.1 The Function Constructor Called as a Function 38 var SECTION = "15.3.1.1-1"; 43 writeHeaderToLog( SECTION + " "+ TITLE); 58 // array[item++] = new TestCase( SECTION, "myfunc.toString()", "function anonymous() { }", myfunc.toString() ); 61 array[item++] = new TestCase( SECTION, 65 array[item++] = new TestCase( SECTION, "myfunc.length", 0, myfunc.length ); 66 array[item++] = new TestCase( SECTION, "myfunc.prototype.toString()", "[object Object]", myfunc.prototype.toString() ); 67 array[item++] = new TestCase( SECTION, "myfunc.prototype.constructor", myfunc, myfunc.prototype.constructor ); 68 array[item++] = new TestCase( SECTION, "myfunc.arguments", null, myfunc.arguments ); 69 array[item++] = new TestCase( SECTION, "var OBJ = new MyObject(true); OBJ.valueOf()", true, eval("var OBJ = new MyObject (…) [all...] |
15.3.2.1-1.js | 24 ECMA Section: 15.3.2.1 The Function Constructor 31 See the text for description of this section. 39 var SECTION = "15.3.2.1"; 44 writeHeaderToLog( SECTION + " "+ TITLE); 58 // array[item++] = new TestCase( SECTION, "myfunc.toString()", "function anonymous() { }", myfunc.toString() ); 62 array[item++] = new TestCase( SECTION, "myfunc = new Function(); myfunc.toString = Object.prototype.toString; myfunc.toString()", 65 array[item++] = new TestCase( SECTION, "myfunc.length", 0, myfunc.length ); 66 array[item++] = new TestCase( SECTION, "myfunc.prototype.toString()", "[object Object]", myfunc.prototype.toString() ); 68 array[item++] = new TestCase( SECTION, "myfunc.prototype.constructor", myfunc, myfunc.prototype.constructor ); 69 array[item++] = new TestCase( SECTION, "myfunc.arguments", null, myfunc.arguments ) [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/js1_2/regexp/ |
character_class.js | 30 var SECTION = 'As described in Netscape doc "Whats new in JavaScript 1.2"'; 36 writeHeaderToLog( SECTION + " "+ TITLE); 42 testcases[count++] = new TestCase ( SECTION, "'abcde'.match(new RegExp('ab[ercst]de'))", 46 testcases[count++] = new TestCase ( SECTION, "'abcde'.match(new RegExp('ab[erst]de'))", 50 testcases[count++] = new TestCase ( SECTION, "'abcdefghijkl'.match(new RegExp('[d-h]+'))", 54 testcases[count++] = new TestCase ( SECTION, "'abc6defghijkl'.match(new RegExp('[1234567].{2}'))", 58 testcases[count++] = new TestCase ( SECTION, "'\n\n\abc324234\n'.match(new RegExp('[a-c\\d]+'))", 62 testcases[count++] = new TestCase ( SECTION, "'abc'.match(new RegExp('ab[.]?c'))", 66 testcases[count++] = new TestCase ( SECTION, "'abc'.match(new RegExp('a[b]c'))", 70 testcases[count++] = new TestCase ( SECTION, "'a1b b2c c3d def f4g'.match(new RegExp('[a-z][^1-9][a-z]'))" [all...] |
parentheses.js | 30 var SECTION = 'As described in Netscape doc "Whats new in JavaScript 1.2"'; 36 writeHeaderToLog( SECTION + " "+ TITLE); 42 testcases[count++] = new TestCase ( SECTION, "'abc'.match(new RegExp('(abc)'))", 46 testcases[count++] = new TestCase ( SECTION, "'abcdefg'.match(new RegExp('a(bc)d(ef)g'))", 50 testcases[count++] = new TestCase ( SECTION, "'abcdefg'.match(new RegExp('(.{3})(.{4})'))", 54 testcases[count++] = new TestCase ( SECTION, "'aabcdaabcd'.match(new RegExp('(aa)bcd\\1'))", 58 testcases[count++] = new TestCase ( SECTION, "'aabcdaabcd'.match(new RegExp('(aa).+\\1'))", 62 testcases[count++] = new TestCase ( SECTION, "'aabcdaabcd'.match(new RegExp('(.{2}).+\\1'))", 66 testcases[count++] = new TestCase ( SECTION, "'123456123456'.match(new RegExp('(\\d{3})(\\d{3})\\1\\2'))", 70 testcases[count++] = new TestCase ( SECTION, "'abcdefg'.match(new RegExp('a(..(..)..)'))" [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma/ObjectObjects/ |
15.2.2.1.js | 24 ECMA Section: 15.2.2.1 The Object Constructor: new Object( value ) 44 var SECTION = "15.2.2.1"; 49 writeHeaderToLog( SECTION + " "+ TITLE); 58 array[item++] = new TestCase( SECTION, "typeof new Object(null)", "object", typeof new Object(null) ); 59 array[item++] = new TestCase( SECTION, "MYOB = new Object(null); MYOB.toString = Object.prototype.toString; MYOB.toString()", "[object Object]", eval("MYOB = new Object(null); MYOB.toString = Object.prototype.toString; MYOB.toString()") ); 61 array[item++] = new TestCase( SECTION, "typeof new Object(void 0)", "object", typeof new Object(void 0) ); 62 array[item++] = new TestCase( SECTION, "MYOB = new Object(new Object(void 0)); MYOB.toString = Object.prototype.toString; MYOB.toString()", "[object Object]", eval("MYOB = new Object(new Object(void 0)); MYOB.toString = Object.prototype.toString; MYOB.toString()") ); 64 array[item++] = new TestCase( SECTION, "typeof new Object('string')", "object", typeof new Object('string') ); 65 array[item++] = new TestCase( SECTION, "MYOB = (new Object('string'); MYOB.toString = Object.prototype.toString; MYOB.toString()", "[object String]", eval("MYOB = new Object('string'); MYOB.toString = Object.prototype.toString; MYOB.toString()") ); 66 array[item++] = new TestCase( SECTION, "(new Object('string').valueOf()", "string", (new Object('string')).valueOf() ) [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma_2/FunctionObjects/ |
call-1.js | 3 Section: Function.prototype.call 10 var SECTION = "call-1"; 15 writeHeaderToLog( SECTION + " "+ TITLE); 21 testcases[tc++] = new TestCase( SECTION, 26 testcases[tc++] = new TestCase( SECTION, 31 testcases[tc++] = new TestCase( SECTION,
|
/external/webkit/JavaScriptCore/tests/mozilla/ecma_2/Statements/ |
dowhile-002.js | 3 * ECMA Section: 13 var SECTION = "dowhile-002"; 18 writeHeaderToLog( SECTION + " "+ TITLE); 51 SECTION, 57 SECTION, 64 SECTION,
|
dowhile-004.js | 3 * ECMA Section: 12 var SECTION = "dowhile-004"; 17 writeHeaderToLog( SECTION + " "+ TITLE); 47 SECTION, 53 SECTION, 60 SECTION,
|
dowhile-005.js | 3 * ECMA Section: 15 var SECTION = "dowhile-005"; 21 writeHeaderToLog( SECTION + " "+ TITLE); 54 SECTION, 60 SECTION, 66 SECTION,
|
try-003.js | 3 * ECMA Section: 11 var SECTION = "try-003"; 17 writeHeaderToLog( SECTION + " "+ TITLE); 63 SECTION, 68 SECTION, 73 SECTION,
|
try-012.js | 3 * ECMA Section: 12 var SECTION = "try-012"; 18 writeHeaderToLog( SECTION + " "+ TITLE); 78 SECTION, 83 SECTION, 88 SECTION,
|