/external/webkit/Source/JavaScriptCore/tests/mozilla/js1_2/regexp/ |
RegExp_rightContext.js | 39 var testcases = new Array(); 43 testcases[count++] = new TestCase ( SECTION, "'abc123xyz'.match(/123/); RegExp.rightContext", 48 testcases[count++] = new TestCase ( SECTION, "'abc123xyz'.match(/456/); RegExp.rightContext", 53 testcases[count++] = new TestCase ( SECTION, "'abc123xyz'.match(/abc123xyz/); RegExp.rightContext", 58 testcases[count++] = new TestCase ( SECTION, "'xxxx'.match(/$/); RegExp.rightContext", 63 testcases[count++] = new TestCase ( SECTION, "'test'.match(/^/); RegExp.rightContext", 68 testcases[count++] = new TestCase ( SECTION, "'xxxx'.match(new RegExp('$')); RegExp.rightContext", 73 testcases[count++] = new TestCase ( SECTION, "'test'.match(new RegExp('^')); RegExp.rightContext", 78 for ( tc=0; tc < testcases.length; tc++ ) { 79 testcases[tc].passed = writeTestCaseResult [all...] |
asterisk.js | 39 var testcases = new Array(); 42 testcases[count++] = new TestCase ( SECTION, "'abcddddefg'.match(new RegExp('d*'))", 46 testcases[count++] = new TestCase ( SECTION, "'abcddddefg'.match(new RegExp('cd*'))", 50 testcases[count++] = new TestCase ( SECTION, "'abcdefg'.match(new RegExp('cx*d'))", 54 testcases[count++] = new TestCase ( SECTION, "'xxxxxxx'.match(new RegExp('(x*)(x+)'))", 58 testcases[count++] = new TestCase ( SECTION, "'1234567890'.match(new RegExp('(\\d*)(\\d+)'))", 63 testcases[count++] = new TestCase ( SECTION, "'1234567890'.match(new RegExp('(\\d*)\\d(\\d+)'))", 68 testcases[count++] = new TestCase ( SECTION, "'xxxxxxx'.match(new RegExp('(x+)(x*)'))", 72 testcases[count++] = new TestCase ( SECTION, "'xxxxxxyyyyyy'.match(new RegExp('x*y+$'))", 76 testcases[count++] = new TestCase ( SECTION, "'abcdef'.match(/[\\d]*[\\s]*bc./)" [all...] |
question_mark.js | 39 var testcases = new Array(); 42 testcases[count++] = new TestCase ( SECTION, "'abcdef'.match(new RegExp('cd?e'))", 46 testcases[count++] = new TestCase ( SECTION, "'abcdef'.match(new RegExp('cdx?e'))", 50 testcases[count++] = new TestCase ( SECTION, "'pqrstuvw'.match(new RegExp('o?pqrst'))", 54 testcases[count++] = new TestCase ( SECTION, "'abcd'.match(new RegExp('x?y?z?'))", 58 testcases[count++] = new TestCase ( SECTION, "'abcd'.match(new RegExp('x?ay?bz?c'))", 62 testcases[count++] = new TestCase ( SECTION, "'abcd'.match(/x?ay?bz?c/)", 66 testcases[count++] = new TestCase ( SECTION, "'abbbbc'.match(new RegExp('b?b?b?b'))", 70 testcases[count++] = new TestCase ( SECTION, "'123az789'.match(new RegExp('ab?c?d?x?y?z'))", 74 testcases[count++] = new TestCase ( SECTION, "'123az789'.match(/ab?c?d?x?y?z/)" [all...] |
RegExp_lastIndex.js | 40 var testcases = new Array(); 45 testcases[count++] = new TestCase ( SECTION, "re=/x./g; re.lastIndex=4; re.exec('xyabcdxa')", 49 testcases[count++] = new TestCase ( SECTION, "re.lastIndex", 53 testcases[count++] = new TestCase ( SECTION, "re.exec('xyabcdef')", 57 testcases[count++] = new TestCase ( SECTION, "re.lastIndex", 61 testcases[count++] = new TestCase ( SECTION, "re.exec('xyabcdef')", 66 testcases[count++] = new TestCase ( SECTION, "re.lastIndex=30; re.exec('123xaxbxc456')", 71 for ( tc=0; tc < testcases.length; tc++ ) { 72 testcases[tc].passed = writeTestCaseResult( 73 testcases[tc].expect [all...] |
RegExp_lastMatch.js | 39 var testcases = new Array(); 43 testcases[count++] = new TestCase ( SECTION, "'foo'.match(/foo/); RegExp.lastMatch", 48 testcases[count++] = new TestCase ( SECTION, "'foo'.match(new RegExp('foo')); RegExp.lastMatch", 53 testcases[count++] = new TestCase ( SECTION, "'xxx'.match(/bar/); RegExp.lastMatch", 58 testcases[count++] = new TestCase ( SECTION, "'xxx'.match(/$/); RegExp.lastMatch", 63 testcases[count++] = new TestCase ( SECTION, "'abcdefg'.match(/^..(cd)[a-z]+/); RegExp.lastMatch", 68 testcases[count++] = new TestCase ( SECTION, "'abcdefgabcdefg'.match(/(a(b(c(d)e)f)g)\\1/); RegExp.lastMatch", 73 for ( tc=0; tc < testcases.length; tc++ ) { 74 testcases[tc].passed = writeTestCaseResult( 75 testcases[tc].expect [all...] |
RegExp_lastMatch_as_array.js | 39 var testcases = new Array(); 43 testcases[count++] = new TestCase ( SECTION, "'foo'.match(/foo/); RegExp['$&']", 48 testcases[count++] = new TestCase ( SECTION, "'foo'.match(new RegExp('foo')); RegExp['$&']", 53 testcases[count++] = new TestCase ( SECTION, "'xxx'.match(/bar/); RegExp['$&']", 58 testcases[count++] = new TestCase ( SECTION, "'xxx'.match(/$/); RegExp['$&']", 63 testcases[count++] = new TestCase ( SECTION, "'abcdefg'.match(/^..(cd)[a-z]+/); RegExp['$&']", 68 testcases[count++] = new TestCase ( SECTION, "'abcdefgabcdefg'.match(/(a(b(c(d)e)f)g)\\1/); RegExp['$&']", 73 for ( tc=0; tc < testcases.length; tc++ ) { 74 testcases[tc].passed = writeTestCaseResult( 75 testcases[tc].expect [all...] |
backspace.js | 39 var testcases = new Array(); 42 testcases[count++] = new TestCase ( SECTION, "'abc\bdef'.match(new RegExp('.[\\b].'))", 46 testcases[count++] = new TestCase ( SECTION, "'abc\\bdef'.match(new RegExp('.[\\b].'))", 50 testcases[count++] = new TestCase ( SECTION, "'abc\b\b\bdef'.match(new RegExp('c[\\b]{3}d'))", 54 testcases[count++] = new TestCase ( SECTION, "'abc\bdef'.match(new RegExp('[^\\[\\b\\]]+'))", 58 testcases[count++] = new TestCase ( SECTION, "'abcdef'.match(new RegExp('[^\\[\\b\\]]+'))", 62 testcases[count++] = new TestCase ( SECTION, "'abcdef'.match(/[^\\[\\b\\]]+/)", 67 for ( tc=0; tc < testcases.length; tc++ ) { 68 testcases[tc].passed = writeTestCaseResult( 69 testcases[tc].expect [all...] |
beginLine.js | 39 var testcases = new Array(); 42 testcases[count++] = new TestCase ( SECTION, "'abcde'.match(new RegExp('^ab'))", 46 testcases[count++] = new TestCase ( SECTION, "'ab\ncde'.match(new RegExp('^..^e'))", 50 testcases[count++] = new TestCase ( SECTION, "'yyyyy'.match(new RegExp('^xxx'))", 54 testcases[count++] = new TestCase ( SECTION, "'^^^x'.match(new RegExp('^\\^+'))", 58 testcases[count++] = new TestCase ( SECTION, "'^^^x'.match(/^\\^+/)", 63 testcases[count++] = new TestCase ( SECTION, "'abc\n123xyz'.match(new RegExp('^\\d+'))", 68 for ( tc=0; tc < testcases.length; tc++ ) { 69 testcases[tc].passed = writeTestCaseResult( 70 testcases[tc].expect [all...] |
endLine.js | 39 var testcases = new Array(); 42 testcases[count++] = new TestCase ( SECTION, "'abcde'.match(new RegExp('de$'))", 46 testcases[count++] = new TestCase ( SECTION, "'ab\ncde'.match(new RegExp('..$e$'))", 50 testcases[count++] = new TestCase ( SECTION, "'yyyyy'.match(new RegExp('xxx$'))", 54 testcases[count++] = new TestCase ( SECTION, "'a$$$'.match(new RegExp('\\$+$'))", 58 testcases[count++] = new TestCase ( SECTION, "'a$$$'.match(/\\$+$/)", 63 testcases[count++] = new TestCase ( SECTION, "'abc\n123xyz890\nxyz'.match(new RegExp('\\d+$'))", 68 for ( tc=0; tc < testcases.length; tc++ ) { 69 testcases[tc].passed = writeTestCaseResult( 70 testcases[tc].expect [all...] |
string_replace.js | 39 var testcases = new Array(); 42 testcases[count++] = new TestCase ( SECTION, "'adddb'.replace(/ddd/,'XX')", 46 testcases[count++] = new TestCase ( SECTION, "'adddb'.replace(/eee/,'XX')", 50 testcases[count++] = new TestCase ( SECTION, "'34 56 78b 12'.replace(new RegExp('[0-9]+b'),'**')", 54 testcases[count++] = new TestCase ( SECTION, "'34 56 78b 12'.replace(new RegExp('[0-9]+c'),'XX')", 58 testcases[count++] = new TestCase ( SECTION, "'original'.replace(new RegExp(),'XX')", 62 testcases[count++] = new TestCase ( SECTION, "'qwe ert x\t\n 345654AB'.replace(new RegExp('x\\s*\\d+(..)$'),'****')", 68 for ( tc=0; tc < testcases.length; tc++ ) { 69 testcases[tc].passed = writeTestCaseResult( 70 testcases[tc].expect [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/GlobalObject/ |
15.1.2.2-2.js | 42 var testcases = new Array(); 44 testcases[tc++] = new TestCase( SECTION, 49 testcases[tc++] = new TestCase( SECTION, 54 testcases[tc++] = new TestCase( SECTION, 59 testcases[tc++] = new TestCase( SECTION, 64 testcases[tc++] = new TestCase( SECTION, 69 testcases[tc++] = new TestCase( SECTION, 74 testcases[tc++] = new TestCase( SECTION, 79 testcases[tc++] = new TestCase( SECTION, 84 testcases[tc++] = new TestCase( SECTION [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/ExecutionContexts/ |
10.2.2-1.js | 54 var testcases = new Array(); 58 testcases[tc++] = new TestCase( SECTION, 71 testcases[tc++] = new TestCase( SECTION, 81 testcases[tc++] = new TestCase( SECTION, 88 testcases[tc++] = new TestCase( SECTION, 94 testcases[tc++] = new TestCase( SECTION, 99 testcases[tc++] = new TestCase( SECTION, 108 for ( tc=0; tc < testcases.length; tc++ ) { 109 testcases[tc].passed = writeTestCaseResult( 110 testcases[tc].expect [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Math/ |
15.8.2.14.js | 43 var testcases = getTestCases(); variable 58 testcases[caseno].reason = Math.random(); 59 testcases[caseno].actual = "pass"; 61 if ( ! ( testcases[caseno].reason >= 0) ) { 62 testcases[caseno].actual = "fail"; 65 if ( ! (testcases[caseno].reason < 1) ) { 66 testcases[caseno].actual = "fail"; 71 for ( tc=0; tc < testcases.length; tc++ ) { 73 testcases[tc].passed = writeTestCaseResult( 74 testcases[tc].expect [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/js1_2/function/ |
Function_object.js | 39 var testcases = new Array(); 50 testcases[count++] = new TestCase( SECTION, "f.name", 53 testcases[count++] = new TestCase( SECTION, "f.length", 56 testcases[count++] = new TestCase( SECTION, "f.arity", 59 testcases[count++] = new TestCase( SECTION, "f(2,3,4)", 64 testcases[count++] = new TestCase( SECTION, "(new Function()).name", 67 testcases[count++] = new TestCase( SECTION, "(new Function()).toString()", 72 for ( tc=0; tc < testcases.length; tc++ ) { 73 testcases[tc].passed = writeTestCaseResult( 74 testcases[tc].expect [all...] |
nesting.js | 39 var testcases = new Array(); 46 testcases[count++] = new TestCase( SECTION, "outer:x ", 48 testcases[count++] = new TestCase( SECTION, "outer:y ", 53 testcases[count++] = new TestCase( SECTION, "inner:x ", 55 testcases[count++] = new TestCase( SECTION, "inner:y ", 60 testcases[count++] = new TestCase( SECTION, "outer:x ", 62 testcases[count++] = new TestCase( SECTION, "outer:y ", 70 for ( tc=0; tc < testcases.length; tc++ ) { 71 testcases[tc].passed = writeTestCaseResult( 72 testcases[tc].expect [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Statements/ |
12.6.3-4.js | 66 var testcases = new Array(); 78 testcases[testcases.length] = new TestCase( SECTION, 89 testcases[testcases.length] = new TestCase( SECTION, 100 testcases[testcases.length] = new TestCase( SECTION, 111 testcases[testcases.length] = new TestCase( SECTION, 123 testcases[testcases.length] = new TestCase( SECTION [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/js1_2/statements/ |
switch2.js | 42 var testcases = new Array(); 59 testcases[count++] = new TestCase(SECTION, 'switch statement', 62 testcases[count++] = new TestCase(SECTION, 'switch statement', 65 testcases[count++] = new TestCase(SECTION, 'switch statement', 68 testcases[count++] = new TestCase(SECTION, 'switch statement', 71 testcases[count++] = new TestCase(SECTION, 'switch statement', 88 testcases[count++] = new TestCase(SECTION, 'switch statement', 91 testcases[count++] = new TestCase(SECTION, 'switch statement', 94 testcases[count++] = new TestCase(SECTION, 'switch statement', 97 testcases[count++] = new TestCase(SECTION, 'switch statement' [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Array/ |
15.4.1.3.js | 45 var testcases = getTestCases(); variable 77 for ( tc=0; tc < testcases.length; tc++ ) { 78 testcases[tc].passed = writeTestCaseResult( 79 testcases[tc].expect, 80 testcases[tc].actual, 81 testcases[tc].description +" = "+ testcases[tc].actual ); 82 testcases[tc].reason += ( testcases[tc].passed ) ? "" : "wrong value "; 85 return ( testcases ); [all...] |
15.4.3.1-2.js | 39 var testcases = getTestCases(); variable 57 for ( tc=0; tc < testcases.length; tc++ ) { 58 testcases[tc].passed = writeTestCaseResult( 59 testcases[tc].expect, 60 testcases[tc].actual, 61 testcases[tc].description +" = "+ testcases[tc].actual ); 62 testcases[tc].reason += ( testcases[tc].passed ) ? "" : "wrong value "; 65 return ( testcases ); [all...] |
15.4.3.2.js | 38 var testcases = getTestCases(); variable 48 for ( tc=0; tc < testcases.length; tc++ ) { 49 testcases[tc].passed = writeTestCaseResult( 50 testcases[tc].expect, 51 testcases[tc].actual, 52 testcases[tc].description +" = "+ testcases[tc].actual ); 53 testcases[tc].reason += ( testcases[tc].passed ) ? "" : "wrong value "; 56 return ( testcases ); [all...] |
15.4.3.js | 39 var testcases = getTestCases(); variable 51 for (tc=0 ; tc < testcases.length; tc++ ) { 52 testcases[tc].passed = writeTestCaseResult( 53 testcases[tc].expect, 54 testcases[tc].actual, 55 testcases[tc].description +" = "+ testcases[tc].actual ); 57 testcases[tc].reason += ( testcases[tc].passed ) ? "" : "wrong value "; 62 return ( testcases ); [all...] |
15.4.4.1.js | 38 var testcases = getTestCases(); variable 48 for (tc=0 ; tc < testcases.length; tc++ ) { 49 testcases[tc].passed = writeTestCaseResult( 50 testcases[tc].expect, 51 testcases[tc].actual, 52 testcases[tc].description +" = "+ testcases[tc].actual ); 53 testcases[tc].reason += ( testcases[tc].passed ) ? "" : "wrong value "; 56 return ( testcases ); [all...] |
15.4.4.js | 44 var testcases = getTestCases(); variable 51 // these testcases are ECMA_2 68 for ( tc=0; tc < testcases.length; tc++ ) { 69 testcases[tc].passed = writeTestCaseResult( 70 testcases[tc].expect, 71 testcases[tc].actual, 72 testcases[tc].description +" = "+ testcases[tc].actual ); 73 testcases[tc].reason += ( testcases[tc].passed ) ? "" : "wrong value " [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Boolean/ |
15.6.3.1-1.js | 45 var testcases = getTestCases(); variable 61 for ( tc=0; tc < testcases.length; tc++ ) { 62 testcases[tc].passed = writeTestCaseResult( 63 testcases[tc].expect, 64 testcases[tc].actual, 65 testcases[tc].description +" = "+ 66 testcases[tc].actual ); 68 testcases[tc].reason += ( testcases[tc].passed ) ? "" : "wrong value "; 71 return ( testcases ); [all...] |
15.6.3.1-2.js | 44 var testcases = getTestCases(); variable 58 for ( tc=0; tc < testcases.length; tc++ ) { 59 testcases[tc].passed = writeTestCaseResult( 60 testcases[tc].expect, 61 testcases[tc].actual, 62 testcases[tc].description +" = "+ 63 testcases[tc].actual ); 65 testcases[tc].reason += ( testcases[tc].passed ) ? "" : "wrong value "; 68 return ( testcases ); [all...] |