/external/v8/test/webkit/ |
function-apply-aliased.js | 51 shouldBe("myObject.apply()", '[myObject, "myObject.apply"]'); 52 shouldBe("forwarder(myObject)", '[myObject, "myObject.apply"]'); 53 shouldBe("myFunction('arg1')", '[this, "myFunction", "arg1"]'); 54 shouldBe("forwarder(myFunction, null, ['arg1'])", '[this, "myFunction", "arg1"]'); 55 shouldBe("myFunction.apply(myObject, ['arg1'])", '[myObject, "myFunction", "arg1"]'); 56 shouldBe("myFunction.apply(myObject, arg1Array)", '[myObject, "myFunction", "arg1"]'); 57 shouldBe("forwarder(myFunction, myObject, arg1Array)", '[myObject, "myFunction", "arg1"]'); 58 shouldBe("myFunction.apply()", '[this, "myFunction", undefined]'); 59 shouldBe("myFunction.apply(null)", '[this, "myFunction", undefined]'); 60 shouldBe("myFunction.apply(undefined)", '[this, "myFunction", undefined]') [all...] |
codegen-temporaries.js | 50 shouldBe("assign_test1()", "'PASS'"); 60 shouldBe("assign_test2()", "'PASS'"); 70 shouldBe("assign_test3()", "'PASS'"); 76 shouldBe("testObject4.test", "'PASS'"); 82 shouldBe("testObject5.test", "'PASS'"); 92 shouldBe("assign_test6()", "'PASS'"); 102 shouldBe("assign_test7()", "'PASS'"); 112 shouldBe("assign_test8()", "'PASS'"); 122 shouldBe("assign_test9()", "'PASS'"); 128 shouldBe("testObject10.test", "'PASS'") [all...] |
dfg-convert-this-dom-window.js | 35 shouldBe("myObject.call()", '[myObject, "myObject.call"]'); 36 shouldBe("myFunction('arg1')", '[this, "myFunction", "arg1"]'); 37 shouldBe("myFunction.call(myObject, 'arg1')", '[myObject, "myFunction", "arg1"]'); 38 shouldBe("myFunction.call()", '[this, "myFunction", undefined]'); 39 shouldBe("myFunction.call(null)", '[this, "myFunction", undefined]'); 40 shouldBe("myFunction.call(undefined)", '[this, "myFunction", undefined]'); 41 shouldBe("myFunction.aliasedCall(myObject, 'arg1')", '[myObject, "myFunction", "arg1"]'); 42 shouldBe("myFunction.aliasedCall()", '[this, "myFunction", undefined]'); 43 shouldBe("myFunction.aliasedCall(null)", '[this, "myFunction", undefined]'); 44 shouldBe("myFunction.aliasedCall(undefined)", '[this, "myFunction", undefined]') [all...] |
function-call-aliased.js | 34 shouldBe("myObject.call()", '[myObject, "myObject.call"]'); 35 shouldBe("myFunction('arg1')", '[this, "myFunction", "arg1"]'); 36 shouldBe("myFunction.call(myObject, 'arg1')", '[myObject, "myFunction", "arg1"]'); 37 shouldBe("myFunction.call()", '[this, "myFunction", undefined]'); 38 shouldBe("myFunction.call(null)", '[this, "myFunction", undefined]'); 39 shouldBe("myFunction.call(undefined)", '[this, "myFunction", undefined]'); 40 shouldBe("myFunction.aliasedCall(myObject, 'arg1')", '[myObject, "myFunction", "arg1"]'); 41 shouldBe("myFunction.aliasedCall()", '[this, "myFunction", undefined]'); 42 shouldBe("myFunction.aliasedCall(null)", '[this, "myFunction", undefined]'); 43 shouldBe("myFunction.aliasedCall(undefined)", '[this, "myFunction", undefined]') [all...] |
function-toString-object-literals.js | 39 shouldBe("compileAndSerialize('a = { 1: null }')", "'a = { 1: null }'"); 40 shouldBe("compileAndSerialize('a = { 0: null }')", "'a = { 0: null }'"); 41 shouldBe("compileAndSerialize('a = { 1.0: null }')", "'a = { 1.0: null }'"); 42 shouldBe("compileAndSerialize('a = { \"1.0\": null }')", "'a = { \"1.0\": null }'"); 43 shouldBe("compileAndSerialize('a = { 1e-500: null }')", "'a = { 1e-500: null }'"); 44 shouldBe("compileAndSerialize('a = { 1e-300: null }')", "'a = { 1e-300: null }'"); 45 shouldBe("compileAndSerialize('a = { 1e300: null }')", "'a = { 1e300: null }'"); 46 shouldBe("compileAndSerialize('a = { 1e500: null }')", "'a = { 1e500: null }'"); 48 shouldBe("compileAndSerialize('a = { NaN: null }')", "'a = { NaN: null }'"); 49 shouldBe("compileAndSerialize('a = { Infinity: null }')", "'a = { Infinity: null }'") [all...] |
eval-throw-return.js | 39 shouldBe('eval("1;")', "1"); 40 shouldBe('eval("1; try { 2; throwFunc(); } catch (e){3;} finally {}")', "3"); 41 shouldBe('eval("1; try { 2; throwFunc(); } catch (e){3;} finally {4;}")', "3"); 42 shouldBe('eval("function blah() { 1; }\\n blah();")', "undefined"); 43 shouldBe('eval("var x = 1;")', "undefined"); 44 shouldBe('eval("if (true) { 1; } else { 2; }")', "1"); 45 shouldBe('eval("if (false) { 1; } else { 2; }")', "2"); 46 shouldBe('eval("try{1; if (true) { 2; throw \\"\\"; } else { 2; }} catch(e){}")', "undefined"); 47 shouldBe('eval("1; var i = 0; do { ++i; 2; } while(i!=1);")', "2"); 48 shouldBe('eval("1; twoFunc();")', "undefined") [all...] |
exception-with-handler-inside-eval-with-dynamic-scope.js | 29 eval("try { throw ''; } catch (e) { result = test; shouldBe('result', '\"inner scope\"'); }"); 31 eval("try { with({test:'innermost scope'}) throw ''; } catch (e) { result = test; shouldBe('result', '\"inner scope\"'); }"); 33 eval("with ({test:'innermost scope'}) try { throw ''; } catch (e) { result = test; shouldBe('result', '\"innermost scope\"'); }"); 35 with ({test:'innermost scope'}) eval("try { throw ''; } catch (e) { result = test; shouldBe('result', '\"innermost scope\"'); }"); 38 eval("try { throw ''; } finally { result = test; shouldBe('result', '\"inner scope\"'); result = null; undeclared; }"); 41 shouldBe('result', '"inner scope"'); 43 eval("try { with({test:'innermost scope'}) throw ''; } catch (e) { result = test; shouldBe('result', '\"inner scope\"'); }"); 45 eval("with ({test:'innermost scope'}) try { throw ''; } catch (e) { result = test; shouldBe('result', '\"innermost scope\"'); }"); 47 with ({test:'innermost scope'}) eval("try { throw ''; } catch (e) { result = test; shouldBe('result', '\"innermost scope\"'); }"); 51 eval("try { throw ''; } catch (e) { result = test; shouldBe('result', '\"outer scope\"'); }") [all...] |
regexp-extended-characters-match.js | 30 shouldBe('(new RegExp("[\u0100-\u0101]")).exec("a")', 'null'); 31 shouldBe('(new RegExp("[\u0100]")).exec("a")', 'null'); 32 shouldBe('(new RegExp("\u0100")).exec("a")', 'null'); 33 shouldBe('(new RegExp("[\u0061]")).exec("a").toString()', '"a"'); 34 shouldBe('(new RegExp("[\u0100-\u0101a]")).exec("a").toString()', '"a"'); 35 shouldBe('(new RegExp("[\u0100a]")).exec("a").toString()', '"a"'); 36 shouldBe('(new RegExp("\u0061")).exec("a").toString()', '"a"'); 37 shouldBe('(new RegExp("[a-\u0100]")).exec("a").toString()', '"a"'); 38 shouldBe('(new RegExp("[\u0100]")).exec("\u0100").toString()', '"\u0100"'); 39 shouldBe('(new RegExp("[\u0100-\u0101]")).exec("\u0100").toString()', '"\u0100"') [all...] |
array-filter.js | 70 shouldBe("[undefined].filter(passUndefined)", "[undefined]"); 71 shouldBe("(new Array(20)).filter(passUndefined)", "[]"); 72 shouldBe("[0,1,2,3,4,5,6,7,8,9].filter(passEven)", "[0,2,4,6,8]"); 73 shouldBe("[0,1,2,3,4,5,6,7,8,9].filter(passAfter5)", "[5,6,7,8,9]"); 74 shouldBe("mixPartialAndFast.filter(passAfter5)", "[5,6,7,8,9,sparseArrayLength-1]"); 77 shouldBe("toObject([undefined]).filter(passUndefined)", "[undefined]"); 78 shouldBe("toObject(new Array(20)).filter(passUndefined)", "[]"); 79 shouldBe("toObject([0,1,2,3,4,5,6,7,8,9]).filter(passEven)", "[0,2,4,6,8]"); 80 shouldBe("toObject([0,1,2,3,4,5,6,7,8,9]).filter(passAfter5)", "[5,6,7,8,9]"); 81 shouldBe("toObject(mixPartialAndFast).filter(passAfter5)", "[5,6,7,8,9,sparseArrayLength-1]") [all...] |
math-transforms.js | 52 shouldBe("values." + name + " * 1", "+values." + name); 53 shouldBe("values." + name + " * 1", stringify(values[numForStr])); 55 shouldBe("1 * values." + name, "+values." + name); 56 shouldBe("1 * values." + name, stringify(values[numForStr])); 64 shouldBe("+values." + name1 + " * values." + name2, "values." + name1 + " * values." + name2); 65 shouldBe("+values." + name1 + " * values." + name2, stringify(values[name1] * values[name2])); 66 shouldBe("values." + name1 + " * +values." + name2, "values." + name1 + " * values." + name2); 67 shouldBe("values." + name1 + " * +values." + name2, stringify(values[name1] * values[name2])); 68 shouldBe("+values." + name1 + " * +values." + name2, "values." + name1 + " * values." + name2); 69 shouldBe("+values." + name1 + " * +values." + name2, stringify(values[name1] * values[name2])) [all...] |
class-syntax-declaration.js | 43 shouldBe("constructorCallCount", "0"); 44 shouldBe("A.someStaticMethod()", "staticMethodValue"); 45 shouldBe("A.someStaticGetter", "getterValue"); 46 shouldBe("setterValue = undefined; A.someStaticSetter = 123; setterValue", "123"); 47 shouldBe("(new A).someInstanceMethod()", "instanceMethodValue"); 48 shouldBe("constructorCallCount", "1"); 49 shouldBe("(new A).someGetter", "getterValue"); 50 shouldBe("constructorCallCount", "2"); 51 shouldBe("(new A).someGetter", "getterValue"); 52 shouldBe("setterValue = undefined; (new A).someSetter = 789; setterValue", "789") [all...] |
class-syntax-expression.js | 43 shouldBe("constructorCallCount", "0"); 44 shouldBe("A.someStaticMethod()", "staticMethodValue"); 45 shouldBe("A.someStaticGetter", "getterValue"); 46 shouldBe("setterValue = undefined; A.someStaticSetter = 123; setterValue", "123"); 47 shouldBe("(new A).someInstanceMethod()", "instanceMethodValue"); 48 shouldBe("constructorCallCount", "1"); 49 shouldBe("(new A).someGetter", "getterValue"); 50 shouldBe("constructorCallCount", "2"); 51 shouldBe("(new A).someGetter", "getterValue"); 52 shouldBe("setterValue = undefined; (new A).someSetter = 789; setterValue", "789") [all...] |
dfg-put-by-id-allocate-storage.js | 42 shouldBe("o.a", "1"); 43 shouldBe("o.b", "2"); 44 shouldBe("o.c", "3"); 45 shouldBe("o.d", "4"); 46 shouldBe("o.e", "5"); 47 shouldBe("o.f", "6"); 48 shouldBe("o.g", "7");
|
/external/v8/test/webkit/fast/js/kde/ |
statements.js | 41 shouldBe("testSwitch(0)", "'abcd'"); 42 shouldBe("testSwitch(1)", "'bcd'"); // IE agrees, NS disagrees 43 shouldBe("testSwitch(2)", "'d'"); 44 shouldBe("testSwitch(false)", "''"); 64 shouldBe("testSwitch2(1)", "'a'"); 65 shouldBe("testSwitch2(2)", "'b'"); 66 shouldBe("testSwitch2(3)", "'d'"); 67 shouldBe("testSwitch2(-1)", "'cd'"); 68 shouldBe("testSwitch2('x')", "'cd'"); 84 shouldBe("testSwitch3(0)", "'cde'") [all...] |
Date-setYear.js | 28 shouldBe("d.setYear(-1), d.getFullYear()", "-1"); 29 shouldBe("d.setYear(0), d.getFullYear()", "1900"); 30 shouldBe("d.setYear(1), d.getFullYear()", "1901"); 31 shouldBe("d.setYear(99), d.getFullYear()", "1999"); 32 shouldBe("d.setYear(100), d.getFullYear()", "100"); 33 shouldBe("d.setYear(2050), d.getFullYear()", "2050"); 34 shouldBe("d.setYear(1899), d.getFullYear()", "1899"); 35 shouldBe("d.setYear(2000), d.getFullYear()", "2000"); 36 shouldBe("d.setYear(2100), d.getFullYear()", "2100");
|
prototype_proto.js | 25 shouldBe("Object.prototype.__proto__ == Object.prototype","false"); 26 shouldBe("Function.prototype.__proto__","Object.prototype"); 27 shouldBe("Array.prototype.__proto__","Object.prototype"); 28 shouldBe("String.prototype.__proto__","Object.prototype"); 29 shouldBe("Boolean.prototype.__proto__","Object.prototype"); 30 shouldBe("Number.prototype.__proto__","Object.prototype"); 31 shouldBe("Date.prototype.__proto__","Object.prototype"); 32 shouldBe("RegExp.prototype.__proto__","Object.prototype"); 33 shouldBe("Error.prototype.__proto__","Object.prototype");
|
assignments.js | 26 shouldBe("var i = 1; i", "1"); 27 shouldBe("j = k = 2", "2"); 31 shouldBe("var i = 1; i <<= 2", "4"); 32 shouldBe("var i = 8; i >>= 1", "4"); 33 shouldBe("var i = 1; i >>= 2", "0"); 34 shouldBe("var i = -8; i >>= 24", "-1"); 35 shouldBe("var i = 8; i >>>= 2", "2"); 36 shouldBe("var i = -8; i >>>= 24", "255");
|
literals.js | 27 shouldBe("x", "1"); 30 shouldBe("0x0", "0"); 31 shouldBe("0xF", "15"); 32 shouldBe("0xFF", "255"); 35 shouldBe("01", "1"); 36 shouldBe("010", "8"); 37 shouldBe("09", "9"); 38 shouldBe("019", "19");
|
parse.js | 26 shouldBe("function test() { return;}; lab: 1", "1"); 27 shouldBe("function test() { while(0) break; } lab: 1", "1"); 28 shouldBe("function test() { while(0) continue; } lab: 1", "1"); 30 shouldBe("function test() { return lab;} lab: 1", "1"); 34 shouldBe("function test() { return } lab: 1", "1"); 35 shouldBe("function test() { while(0) break } lab: 1", "1"); 36 shouldBe("function test() { while(0) continue } lab: 1", "1"); 38 shouldBe("function test() { return 0 } lab: 1", "1"); 49 shouldBe("var \u00E9\u0100\u02AF\u0388\u18A8 = 101; \u00E9\u0100\u02AF\u0388\u18A8;", "101"); 55 shouldBe("var \\u0061 = 102; a", "102") [all...] |
/external/v8/test/webkit/fast/regex/ |
parentheses.js | 27 shouldBe("regexp1.exec('abc')", "['ab','a','b']"); 30 shouldBe("regexp2.exec('abacadabe')", "['abe','ab','b','b']"); 33 shouldBe("regexp3.exec('abacadabe')", "['abe','ab','b',undefined]"); 36 shouldBe("regexp4.exec('abacadabe')", "['abe','ab','b',undefined]"); 39 shouldBe("regexp5.exec('abacadabe')", "['abe','ab','b','b',undefined,undefined]"); 42 shouldBe("regexp6.exec('abcde')", "['ab','ab','b','b',undefined,undefined]"); 45 shouldBe("regexp7.exec('abc')", "['abc','ab','b']"); 48 shouldBe("regexp8.exec('bcaddxqy')" , "['qy','q','q','y']"); 51 shouldBe("regexp9.exec('asdfjejgsdflaksdfjkeljghkjea')", "['a','a',undefined]"); 54 shouldBe("regexp10.exec('asdfjejgsdflaksdfjkeljghat')", "['at']") [all...] |
ecma-regex-examples.js | 29 shouldBe('regex01.exec("abc")', '["a"]'); 32 shouldBe('regex02.exec("abc")', '["abc", "a", "a", undefined, "bc", undefined, "bc"]'); 35 shouldBe('regex03.exec("abcdefghi")', '["abcde"]'); 38 shouldBe('regex04.exec("abcdefghi")', '["abc"]'); 41 shouldBe('regex05.exec("aabaac")', '["aaba", "ba"]'); 44 shouldBe('"aaaaaaaaaa,aaaaaaaaaaaaaaa".replace(regex06,"$1")', '"aaaaa"'); 47 shouldBe('regex07.exec("zaacbbbcac")', '["zaacbbbcac", "z", "ac", "a", undefined, "c"]'); 50 shouldBe('regex08.exec("b")', '["", undefined]'); 53 shouldBe('regex09.exec("baaaac")', '["b", ""]'); 56 shouldBe('regex10.exec("baaabac")', '["", "aaa"]') [all...] |
/external/v8/test/webkit/fast/js/ |
regexp-bol.js | 30 shouldBe('s.match(/^abc/)', '["abc"]'); 31 shouldBe('s.match(/(^|X)abc/)', '["abc",""]'); 32 shouldBe('s.match(/^longer|123/)', '["123"]'); 33 shouldBe('s.match(/(^abc|c)123/)', '["abc123","abc"]'); 34 shouldBe('s.match(/(c|^abc)123/)', '["abc123","abc"]'); 35 shouldBe('s.match(/(^ab|abc)123/)', '["abc123","abc"]'); 36 shouldBe('s.match(/(bc|^abc)([0-9]*)a/)', '["bc789a","bc","789"]'); 40 shouldBe('/(?:(?:^|Y)X)|(X)/.exec("Xabcd")', '["X",undefined]'); 41 shouldBe('/(?:(?:^|Y)X)|(X)/.exec("aXbcd")', '["X","X"]'); 42 shouldBe('/(?:(?:^|Y)X)|(X)/.exec("abXcd")', '["X","X"]') [all...] |
function-apply.js | 71 shouldBe("argumentsApply1(1, 2, 3)", "1"); 72 shouldBe("argumentsApply2(1, 2, 3)", "2"); 73 shouldBe("argumentsApply3(1, 2, 3)", "3"); 74 shouldBe("argumentsApplyLength(1, 2, 3)", "3"); 75 shouldBe("argumentsApplyExcessArguments(1, 2, 3)", "3"); 114 shouldBe("arrayApply1([1, 2, 3])", "1"); 115 shouldBe("arrayApply2([1, 2, 3])", "2"); 116 shouldBe("arrayApply3([1, 2, 3])", "3"); 117 shouldBe("arrayApplyLength([1, 2, 3])", "3"); 160 shouldBe("argumentsApplyDelete1(1, 2, 3)", "1") [all...] |
number-tofixed.js | 31 shouldBe("(0).toFixed(0)", "'0'"); 33 shouldBe("(0.49).toFixed(0)", "'0'"); 34 shouldBe("(0.5).toFixed(0)", "'1'"); 35 shouldBe("(0.51).toFixed(0)", "'1'"); 37 shouldBe("(-0.49).toFixed(0)", "'-0'"); 38 shouldBe("(-0.5).toFixed(0)", "'-1'"); 39 shouldBe("(-0.51).toFixed(0)", "'-1'"); 41 shouldBe("(0).toFixed(1)", "'0.0'"); 43 shouldBe("(0.449).toFixed(1)", "'0.4'"); 44 shouldBe("(0.45).toFixed(1)", "'0.5'") [all...] |
/external/compiler-rt/test/BlocksRuntime/ |
byrefcopycopy.c | 21 int shouldbe = 0; local 25 b(); ++shouldbe; 31 ++shouldbe; 37 b(); ++shouldbe; 39 if (var != shouldbe) { 40 printf("Hmm, var is %d but should be %d\n", var, shouldbe);
|