/external/chromium_org/v8/test/webkit/ |
H A D | constant-folding.js | 28 shouldBe('"abc" + "2.1"', '"abc2.1"'); 29 shouldBe('"123" + "2.1"', '"1232.1"'); 30 shouldBe('"123" + "="', '"123="'); 31 shouldBe('"*" + "123"', '"*123"'); 33 shouldBe('!"abc"', 'false'); 34 shouldBe('!""', 'true'); 36 shouldBe('10.3 + 2.1', '12.4'); 37 shouldBe('10.3 + "2.1"', '"10.32.1"'); 38 shouldBe('"10.3" + 2.1 ', '"10.32.1"'); 39 shouldBe('"10. [all...] |
H A D | regexp-non-character.js | 28 shouldBe('"F".match(/[\\uD7FF]/)', 'null'); 29 shouldBe('"0".match(/[\\uD800]/)', 'null'); 30 shouldBe('"F".match(/[\\uDFFF]/)', 'null'); 31 shouldBe('"E".match(/[\\uE000]/)', 'null'); 32 shouldBe('"y".match(/[\\uFDBF]/)', 'null'); 33 shouldBe('"y".match(/[\\uFDD0]/)', 'null'); 34 shouldBe('"y".match(/[\\uFDEF]/)', 'null'); 35 shouldBe('"y".match(/[\\uFDF0]/)', 'null'); 36 shouldBe('"y".match(/[\\uFEFF]/)', 'null'); 37 shouldBe('" [all...] |
H A D | numeric-conversion.js | 28 shouldBe("Number(1152921504606847105).toString()", "'1152921504606847200'"); 29 shouldBe("parseInt('1152921504606847105').toString()", "'1152921504606847200'"); 30 shouldBe("(- (- '1152921504606847105')).toString()", "'1152921504606847200'"); 32 shouldBe("Number(0x1000000000000081).toString(16)", "'1000000000000100'"); 33 shouldBe("parseInt('0x1000000000000081', 16).toString(16)", "'1000000000000100'"); 34 shouldBe("(- (- '0x1000000000000081')).toString(16)", "'1000000000000100'"); 36 shouldBe("Number(0100000000000000000201).toString(8)", "'100000000000000000400'"); 37 shouldBe("parseInt('100000000000000000201', 8).toString(8)", "'100000000000000000400'"); 39 shouldBe("(- 'infinity').toString()", "'NaN'"); 41 shouldBe("parseIn [all...] |
H A D | convert-nan-to-bool.js | 26 shouldBe("NaN ? true : false", "false"); 27 shouldBe("1 ? true : false", "true"); 28 shouldBe("0 ? true : false", "false"); 29 shouldBe("-1 ? true : false", "true"); 30 shouldBe("1 * -1 ? true : false", "true"); 31 shouldBe("1 * 0 ? true : false", "false"); 32 shouldBe("1 * 1 ? true : false", "true"); 33 shouldBe("1 / -1 ? true : false", "true"); 34 shouldBe("1 / 0 ? true : false", "true"); 35 shouldBe(" [all...] |
H A D | string-substr.js | 28 shouldBe("'bar'.substr(0)", "'bar'"); 29 shouldBe("'bar'.substr(3)", "''"); 30 shouldBe("'bar'.substr(4)", "''"); 31 shouldBe("'bar'.substr(-1)", "'r'"); 32 shouldBe("'bar'.substr(-3)", "'bar'"); 33 shouldBe("'bar'.substr(-4)", "'bar'"); 35 shouldBe("'bar'.substr(0, 0)", "''"); 36 shouldBe("'bar'.substr(0, 1)", "'b'"); 37 shouldBe("'bar'.substr(0, 3)", "'bar'"); 38 shouldBe("'ba [all...] |
H A D | date-DST-pre-1970.js | 28 shouldBe("(new Date(1970, 0, 1)).getHours()", "0"); 29 shouldBe("(new Date(1969, 8, 1)).getHours()", "0"); 30 shouldBe("(new Date(1969, 9, 28)).getHours()", "0");
|
H A D | regexp-extended-characters-more.js | 28 shouldBe('"foo\\xa0\\xa0\\xa0".replace(/\\xa0*/, "")', '"foo\\xa0\\xa0\\xa0"'); 29 shouldBe('"foo\\xa0\\xa0\\xa0".replace(/\\xa0+/, "")', '"foo"'); 30 shouldBe('"foo\\xa0\\xa0\\xa0".replace(/\\xa0*$/, "")', '"foo"');
|
H A D | string_replace.js | 28 shouldBe('"YY".replace(/Y{1,4}/g,"YYYY")', '"YYYY"'); 29 shouldBe('"MM".replace(/M{1,2}/g,"M")', '"M"'); 30 shouldBe('"YY".replace(/Y{1,4}/g,"MMMM")', '"MMMM"');
|
H A D | toString-recursion.js | 29 shouldBe("var array = []; array[0] = array; array + ''", "''"); 32 shouldBe("var error = new Error; error.name = error; error.message = error; error + ''", "''"); 35 shouldBe("var regexp = /a/; regexp.source = regexp; regexp + ''", "'/a/'");
|
H A D | var-declarations-zero-width.js | 26 shouldBe("var x\u200c = 42; x\u200c", "42"); 27 shouldBe("var x\u200d = 43; x\u200d", "43"); 28 shouldBe("var x\u200c\u200d = 44; x\u200c\u200d", "44")
|
H A D | math.js | 30 shouldBe("Math.abs(NaN)", "NaN"); 31 shouldBe("Math.abs(0)", "0"); 32 shouldBe("Math.abs(-0)", "0"); 33 shouldBe("Math.abs(1)", "1"); 34 shouldBe("Math.abs(-1)", "1"); 35 shouldBe("Math.abs(Number.MIN_VALUE)", "Number.MIN_VALUE"); 36 shouldBe("Math.abs(-Number.MIN_VALUE)", "Number.MIN_VALUE"); 37 shouldBe("Math.abs(Number.MAX_VALUE)", "Number.MAX_VALUE"); 38 shouldBe("Math.abs(-Number.MAX_VALUE)", "Number.MAX_VALUE"); 39 shouldBe("Mat [all...] |
/external/chromium_org/v8/test/webkit/fast/js/kde/ |
H A D | constructor_length.js | 25 shouldBe("Object.length","1"); 26 shouldBe("Function.length","1"); 27 shouldBe("Array.length","1"); 28 shouldBe("String.length","1"); 29 shouldBe("Boolean.length","1"); 30 shouldBe("Number.length","1"); 31 shouldBe("Date.length","7"); 32 shouldBe("RegExp.length","2"); 33 shouldBe("Error.length","1"); 34 shouldBe("EvalErro [all...] |
H A D | 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")
|
H A D | Number.js | 25 shouldBe("Number()", "0"); 26 shouldBe("Number(1)", "1"); 27 shouldBe("Number(1.1)", "1.1"); 28 shouldBe("Number('1.2')", "1.2"); 29 shouldBe("isNaN(Number('a'))", "true"); 31 shouldBe("(new Number()).valueOf()", "0"); 32 shouldBe("(new Number(.4)).valueOf()", "0.4"); 33 shouldBe("(new Number('1.')).valueOf()", "1"); 34 shouldBe("isNaN(new Number('a'))", "true"); 36 shouldBe("isNa [all...] |
H A D | Error.js | 26 shouldBe("Error('msg').message", "'msg'"); 29 shouldBe("(new Error('msg')).message", "'msg'"); 31 shouldBe("(new Error('msg')).name", "'Error'"); 33 shouldBe("Object.prototype.toString.apply(Error())", "'[object Error]'"); 34 shouldBe("Object.prototype.toString.apply(Error)", "'[object Function]'"); 35 shouldBe("Object.prototype.toString.apply(EvalError)", "'[object Function]'")
|
H A D | inbuilt_function_proto.js | 25 shouldBe("Object.prototype.toString.__proto__","Function.prototype"); 26 shouldBe("Object.prototype.valueOf.__proto__","Function.prototype"); 27 shouldBe("Array.prototype.toString.__proto__","Function.prototype"); 28 shouldBe("Array.prototype.toLocaleString.__proto__","Function.prototype"); 29 shouldBe("Array.prototype.concat.__proto__","Function.prototype"); 30 shouldBe("Array.prototype.join.__proto__","Function.prototype"); 31 shouldBe("Array.prototype.pop.__proto__","Function.prototype"); 32 shouldBe("Array.prototype.push.__proto__","Function.prototype"); 33 shouldBe("Array.prototype.reverse.__proto__","Function.prototype"); 34 shouldBe("Arra [all...] |
H A D | 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")
|
H A D | Object.js | 25 shouldBe("typeof Object()", "'object'"); 26 shouldBe("var o = Object(); o.x = 11; o.x;", "11"); // wanted behaviour ? 27 // shouldBe("Object(undefined)", ???); 28 // shouldBe("Object(null)", ???); 29 shouldBe("Object(1).valueOf()", "1"); 30 shouldBe("Object(true).valueOf()", "true"); 31 shouldBe("Object('s').valueOf()", "'s'"); 33 shouldBe("typeof (new Object())", "'object'"); 34 // shouldBe("new Object(undefined)", ???); 35 // shouldBe("ne [all...] |
H A D | delete.js | 25 shouldBe("a = 1; delete a;", "true"); 26 shouldBe("delete nonexistant;", "true"); 27 shouldBe("delete NaN", "false")
|
/external/chromium_org/v8/test/webkit/fast/js/ |
H A D | regexp-non-capturing-groups.js | 29 shouldBe('/(x)?\\1y/.test("y")', 'true'); 30 shouldBe('/(x)?\\1y/.exec("y")', '["y", undefined]'); 31 shouldBe('/(x)?y/.exec("y")', '["y", undefined]'); 32 shouldBe('"y".match(/(x)?\\1y/)', '["y", undefined]'); 33 shouldBe('"y".match(/(x)?y/)', '["y", undefined]'); 34 shouldBe('"y".match(/(x)?\\1y/g)', '["y"]'); 35 shouldBe('"y".split(/(x)?\\1y/)', '["", undefined, ""]'); 36 shouldBe('"y".split(/(x)?y/)', '["", undefined, ""]'); 37 shouldBe('"y".search(/(x)?\\1y/)', '0'); 38 shouldBe('" [all...] |
H A D | regexp-no-extensions.js | 30 shouldBe('/\\x{41}/.exec("yA1")', 'null'); 31 shouldBe('/[\\x{41}]/.exec("yA1").toString()', '"1"'); 32 shouldBe('/\\x1g/.exec("x1g").toString()', '"x1g"'); 33 shouldBe('/[\\x1g]/.exec("x").toString()', '"x"'); 34 shouldBe('/[\\x1g]/.exec("1").toString()', '"1"'); 35 shouldBe('/\\2147483648/.exec(String.fromCharCode(140) + "7483648").toString()', 'String.fromCharCode(140) + "7483648"'); 36 shouldBe('/\\4294967296/.exec("\\"94967296").toString()', '"\\"94967296"'); 37 shouldBe('/\\8589934592/.exec("\\\\8589934592").toString()', '"\\\\8589934592"'); 38 shouldBe('"\\nAbc\\n".replace(/(\\n)[^\\n]+$/, "$1")', '"\\nAbc\\n"'); 39 shouldBe('/ [all...] |
H A D | regexp-non-greedy-parentheses.js | 28 shouldBe('"a".match(/(a)??/)', '["", undefined]'); 29 shouldBe('"b".match(/(a)??/)', '["", undefined]'); 30 shouldBe('"ab".match(/(a)??b/)', '["ab", "a"]'); 31 shouldBe('"aaab".match(/(a+)??b/)', '["aaab", "aaa"]'); 32 shouldBe('"abbc".match(/(a)??(b+)??c/)', '["abbc", "a", "bb"]'); 33 shouldBe('"ac".match(/(a)??(b)??c/)', '["ac", "a", undefined]'); 34 shouldBe('"abc".match(/(a(b)??)??c/)', '["abc", "ab", "b"]'); 35 shouldBe('"ac".match(/(a(b)??)??c/)', '["ac", "a", undefined]');
|
H A D | function-toString-semicolon-insertion.js | 29 shouldBe("(function(){return}).toString()", "'function () {return;}'"); 30 shouldBe("(function(){return }).toString()", "'function () {return; }'"); 31 shouldBe("(function(){return" + "\n" + "}).toString()", "'function () {return;" + "\\n" + "}'"); 32 shouldBe("(function(){}).toString()", "'function () {}'"); 33 shouldBe("(function(){ }).toString()", "'function () { }'");
|
H A D | regexp-extended-characters-crash.js | 30 shouldBe('new RegExp("[\u00c0-\u1f4d]").toString()', '/[\u00c0-\u1f4d]/.toString()'); 31 shouldBe('new RegExp("[\u3041-\u3094]").toString()', '/[\u3041-\u3094]/.toString()'); 32 shouldBe('new RegExp("[\u4d00-\u4db5]").toString()', '/[\u4d00-\u4db5]/.toString()'); 33 shouldBe('new RegExp("[\u4e00-\u9fa5]").toString()', '/[\u4e00-\u9fa5]/.toString()'); 36 shouldBe('new RegExp("[\u0001-\u1f4d]").toString()', '/[\u0001-\u1f4d]/.toString()');
|
/external/chromium_org/v8/test/webkit/fast/regex/ |
H A D | repeat-match-waldemar.js | 28 shouldBe('/(?:a*?){2,}/.exec("aa")', '["aa"]'); 29 shouldBe('/(?:a*?){2,}/.exec("a")', '["a"]'); 30 shouldBe('/(?:a*?){2,}/.exec("")', '[""]'); 32 shouldBe('/(?:a*?)/.exec("aa")', '[""]'); 33 shouldBe('/(?:a*?)/.exec("a")', '[""]'); 34 shouldBe('/(?:a*?)/.exec("")', '[""]'); 36 shouldBe('/(?:a*?)(?:a*?)(?:a*?)/.exec("aa")', '[""]'); 37 shouldBe('/(?:a*?)(?:a*?)(?:a*?)/.exec("a")', '[""]'); 38 shouldBe('/(?:a*?)(?:a*?)(?:a*?)/.exec("")', '[""]'); 40 shouldBe('/( [all...] |