HomeSort by relevance Sort by last modified time
    Searched full:shouldbe (Results 26 - 50 of 436) sorted by null

12 3 4 5 6 7 8 91011>>

  /external/chromium_org/v8/test/webkit/
string-property-deletion.js 27 shouldBe('str.length', '3');
28 shouldBe('delete str.length', 'false');
29 shouldBe('delete str[0]', 'false');
30 shouldBe('delete str[1]', 'false');
31 shouldBe('delete str[2]', 'false');
32 shouldBe('delete str[3]', 'true');
33 shouldBe('delete str[-1]', 'true');
34 shouldBe('delete str[4294967294]', 'true');
35 shouldBe('delete str[4294967295]', 'true');
36 shouldBe('delete str[4294967296]', 'true')
    [all...]
dfg-min-max.js 41 shouldBe("doMin(1.5, 2.5)", "1.5");
42 shouldBe("doMin(2.5, 1.5)", "1.5");
43 shouldBe("doMin(1.5, 1.5)", "1.5");
44 shouldBe("doMin(2.5, 2.5)", "2.5");
46 shouldBe("doMin(1.5, NaN)", "NaN");
47 shouldBe("doMin(2.5, NaN)", "NaN");
48 shouldBe("doMin(NaN, 1.5)", "NaN");
49 shouldBe("doMin(NaN, 2.5)", "NaN");
51 shouldBe("doMin(NaN, NaN)", "NaN");
53 shouldBe("doMax(1.5, 2.5)", "2.5")
    [all...]
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("parseInt('100000000000000000000000000000000000000000000000000000000000000000000000000000000000000 (…)
    [all...]
regexp-compile.js 29 shouldBe("re.toString()", "'/a/i'");
32 shouldBe("re.multiline", "false");
33 shouldBe("re.ignoreCase", "false");
34 shouldBe("re.global", "false");
35 shouldBe("re.test('A')", "false");
36 shouldBe("re.toString()", "'/a/'");
39 shouldBe("re.toString()", "'/b/g'");
42 shouldBe("re.toString()", "'/c/'");
45 shouldBe("re.ignoreCase", "true");
46 shouldBe("re.test('C')", "true")
    [all...]
order-of-operations.js 33 shouldBe('(function(){ leftRight = ""; left() > right(); return leftRight; })()', '"LeftRight"');
34 shouldBe('(function(){ leftRight = ""; left() >= right(); return leftRight; })()', '"LeftRight"');
35 shouldBe('(function(){ leftRight = ""; left() < right(); return leftRight; })()', '"LeftRight"');
36 shouldBe('(function(){ leftRight = ""; left() <= right(); return leftRight; })()', '"LeftRight"');
37 shouldBe('(function(){ leftRight = ""; left() + right(); return leftRight; })()', '"LeftRight"');
38 shouldBe('(function(){ leftRight = ""; left() - right(); return leftRight; })()', '"LeftRight"');
39 shouldBe('(function(){ leftRight = ""; left() / right(); return leftRight; })()', '"LeftRight"');
40 shouldBe('(function(){ leftRight = ""; left() * right(); return leftRight; })()', '"LeftRight"');
41 shouldBe('(function(){ leftRight = ""; left() % right(); return leftRight; })()', '"LeftRight"');
42 shouldBe('(function(){ leftRight = ""; left() << right(); return leftRight; })()', '"LeftRight"')
    [all...]
sparse-array.js 32 shouldBe('array[0]', 'undefined');
33 shouldBe('array[49999]', 'undefined');
34 shouldBe('array[50000]', '100');
35 shouldBe('array[50001]', 'undefined');
37 shouldBe('array[0]', 'NaN');
38 shouldBe('array[49999]', 'undefined');
39 shouldBe('array[50000]', '100');
40 shouldBe('array[50001]', 'undefined');
45 shouldBe('array[0]', 'NaN');
46 shouldBe('array[49999]', 'undefined')
    [all...]
boolean-argument-prediction.js 36 shouldBe("predictBooleanArgument(true)", "\"yes\"");
37 shouldBe("predictBooleanArgument(false)", "\"no\"");
44 shouldBe("predictBooleanArgument(true)", "\"yes\"");
45 shouldBe("predictBooleanArgument(false)", "\"no\"");
47 shouldBe("predictBooleanArgument(0)", "\"no\"");
48 shouldBe("predictBooleanArgument(1)", "\"yes\"");
49 shouldBe("predictBooleanArgument(2)", "\"yes\"");
50 shouldBe("predictBooleanArgument(3)", "\"yes\"");
51 shouldBe("predictBooleanArgument(4)", "\"yes\"");
61 shouldBe("predictBooleanArgument(true)", "\"yes\"")
    [all...]
dfg-put-by-id-reallocate-storage-polymorphic.js 52 shouldBe("o.a", "1");
53 shouldBe("o.b", "2");
54 shouldBe("o.c", "3");
55 shouldBe("o.d", "4");
56 shouldBe("o.e", "5");
57 shouldBe("o.f", "6");
58 shouldBe("o.g", "7");
59 shouldBe("o.h", "8");
60 shouldBe("o.i", "9");
61 shouldBe("o.j", "10")
    [all...]
eval-throw-return.js 39 shouldBe('eval("1;")', "1");
40 shouldBe('eval("1; try { foo = [2,3,throwFunc(), 4]; } catch (e){}")', "1");
41 shouldBe('eval("1; try { 2; throw \\"\\"; } catch (e){}")', "2");
42 shouldBe('eval("1; try { 2; throwFunc(); } catch (e){}")', "2");
43 shouldBe('eval("1; try { 2; throwFunc(); } catch (e){3;} finally {}")', "3");
44 shouldBe('eval("1; try { 2; throwFunc(); } catch (e){3;} finally {4;}")', "4");
45 shouldBe('eval("function blah() { 1; }\\n blah();")', "undefined");
46 shouldBe('eval("var x = 1;")', "undefined");
47 shouldBe('eval("if (true) { 1; } else { 2; }")', "1");
48 shouldBe('eval("if (false) { 1; } else { 2; }")', "2")
    [all...]
Object-keys.js 26 shouldBe("Object.keys({})", "[]");
27 shouldBe("Object.keys({a:null})", "['a']");
28 shouldBe("Object.keys({a:null, b:null})", "['a', 'b']");
29 shouldBe("Object.keys({b:null, a:null})", "['b', 'a']");
30 shouldBe("Object.keys([])", "[]");
31 shouldBe("Object.keys([null])", "['0']");
32 shouldBe("Object.keys([null,null])", "['0','1']");
33 shouldBe("Object.keys([null,null,,,,null])", "['0','1','5']");
34 shouldBe("Object.keys({__proto__:{a:null}})", "[]");
35 shouldBe("Object.keys({__proto__:[1,2,3]})", "[]")
    [all...]
date-constructor.js 34 shouldBe('isNaN(new Date(""))', 'true');
38 shouldBe('new Date(1111).getTime()', '1111');
39 shouldBe('new Date(object).getTime()', '1111');
40 shouldBe('new Date(new Date(1111)).getTime()', '1111');
41 shouldBe('new Date(new Date(1111).toString()).getTime()', '1000');
43 shouldBe('new Date(1111, 1).getTime() - timeZoneOffset', '-27104803200000');
44 shouldBe('new Date(1111, 1, 1).getTime() - timeZoneOffset', '-27104803200000');
45 shouldBe('new Date(1111, 1, 1, 1).getTime() - timeZoneOffset', '-27104799600000');
46 shouldBe('new Date(1111, 1, 1, 1, 1).getTime() - timeZoneOffset', '-27104799540000');
47 shouldBe('new Date(1111, 1, 1, 1, 1, 1).getTime() - timeZoneOffset', '-27104799539000')
    [all...]
array-reduceRight.js 48 shouldBe("[0,1,2,3].reduceRight(function(a,b){ return a + b; })", "6");
49 shouldBe("[1,2,3].reduceRight(function(a,b){ return a + b; })", "6");
50 shouldBe("[0,1,2,3].reduceRight(function(a,b){ return a + b; }, 4)", "10");
51 shouldBe("[1,2,3].reduceRight(function(a,b){ return a + b; }, 4)", "10");
52 shouldBe("toObject([0,1,2,3]).reduceRight(function(a,b){ return a + b; })", "6");
53 shouldBe("toObject([1,2,3]).reduceRight(function(a,b){ return a + b; })", "6");
54 shouldBe("toObject([0,1,2,3]).reduceRight(function(a,b){ return a + b; }, 4)", "10");
55 shouldBe("toObject([1,2,3]).reduceRight(function(a,b){ return a + b; }, 4)", "10");
56 shouldBe("toUnorderedObject([0,1,2,3]).reduceRight(function(a,b){ return a + b; })", "6");
57 shouldBe("toUnorderedObject([1,2,3]).reduceRight(function(a,b){ return a + b; })", "6")
    [all...]
prototypes.js 28 shouldBe("('').__proto__", "String.prototype");
29 shouldBe("(0).__proto__", "Number.prototype");
30 shouldBe("([]).__proto__", "Array.prototype");
31 shouldBe("({}).__proto__", "Object.prototype");
32 shouldBe("(new Date).__proto__", "Date.prototype");
33 shouldBe("(new Number).__proto__", "Number.prototype");
34 shouldBe("(new Object).__proto__", "Object.prototype");
35 shouldBe("(new String).__proto__", "String.prototype");
36 shouldBe("Array.prototype.__proto__", "Object.prototype");
37 shouldBe("Date.prototype.__proto__", "Object.prototype")
    [all...]
array-lastIndexOf.js 33 shouldBe('lastIndex', '-1');
35 shouldBe('lastIndex', '2');
37 shouldBe('lastIndex', '3');
39 shouldBe('lastIndex', '-1');
41 shouldBe('lastIndex', '3');
43 shouldBe('lastIndex', '0');
45 shouldBe('lastIndex', '0');
47 shouldBe('lastIndex', '3');
52 shouldBe('lastIndex', '-1');
57 shouldBe('lastIndex', '-1')
    [all...]
dfg-put-by-id-reallocate-storage.js 49 shouldBe("o.a", "1");
50 shouldBe("o.b", "2");
51 shouldBe("o.c", "3");
52 shouldBe("o.d", "4");
53 shouldBe("o.e", "5");
54 shouldBe("o.f", "6");
55 shouldBe("o.g", "7");
56 shouldBe("o.h", "8");
57 shouldBe("o.i", "9");
58 shouldBe("o.j", "10")
    [all...]
strict-callback-this.js 112 shouldBe('testArrayPrototypeSort(strictThrowThisString)', 'undefinedString');
113 shouldBe('testArrayPrototypeFilter(strictThrowThisString)', 'undefinedString');
114 shouldBe('testArrayPrototypeMap(strictThrowThisString)', 'undefinedString');
115 shouldBe('testArrayPrototypeEvery(strictThrowThisString)', 'undefinedString');
116 shouldBe('testArrayPrototypeForEach(strictThrowThisString)', 'undefinedString');
117 shouldBe('testArrayPrototypeSome(strictThrowThisString)', 'undefinedString');
118 shouldBe('testStringPrototypeReplace(strictThrowThisString)', 'undefinedString');
120 shouldBe('testArrayPrototypeSort(nonstrictThrowThisString)', 'globalObjectString');
121 shouldBe('testArrayPrototypeFilter(nonstrictThrowThisString)', 'globalObjectString');
122 shouldBe('testArrayPrototypeMap(nonstrictThrowThisString)', 'globalObjectString')
    [all...]
array-reduce.js 48 shouldBe("[0,1,2,3].reduce(function(a,b){ return a + b; })", "6");
49 shouldBe("[1,2,3].reduce(function(a,b){ return a + b; })", "6");
50 shouldBe("[0,1,2,3].reduce(function(a,b){ return a + b; }, 4)", "10");
51 shouldBe("[1,2,3].reduce(function(a,b){ return a + b; }, 4)", "10");
52 shouldBe("toObject([0,1,2,3]).reduce(function(a,b){ return a + b; })", "6");
53 shouldBe("toObject([1,2,3]).reduce(function(a,b){ return a + b; })", "6");
54 shouldBe("toObject([0,1,2,3]).reduce(function(a,b){ return a + b; }, 4)", "10");
55 shouldBe("toObject([1,2,3]).reduce(function(a,b){ return a + b; }, 4)", "10");
56 shouldBe("toUnorderedObject([0,1,2,3]).reduce(function(a,b){ return a + b; })", "6");
57 shouldBe("toUnorderedObject([1,2,3]).reduce(function(a,b){ return a + b; })", "6")
    [all...]
  /external/chromium_org/v8/test/webkit/fast/js/kde/
math.js 37 shouldBe("String()+Math.E", "'2.718281828459045'");
38 shouldBe("String()+Math.LN2", "'0.6931471805599453'");
39 shouldBe("String()+Math.LN10", "'2.302585092994046'");
40 shouldBe("String()+Math.LOG2E", "'1.4426950408889634'");
41 shouldBe("String()+Math.LOG10E", "'0.4342944819032518'");
42 shouldBe("String()+Math.PI", "'3.141592653589793'");
43 shouldBe("String()+Math.SQRT1_2", "'0.7071067811865476'");
44 shouldBe("String()+Math.SQRT2", "'1.4142135623730951'");
46 shouldBe("String()+Number.NaN", "'NaN'");
47 shouldBe("String()+Number.NEGATIVE_INFINITY", "'-Infinity'")
    [all...]
prototype_length.js 25 shouldBe("Object.prototype.length","undefined");
26 shouldBe("Function.prototype.length","0");
27 shouldBe("Array.prototype.length","0");
28 shouldBe("String.prototype.length","0");
29 shouldBe("Boolean.prototype.length","undefined");
30 shouldBe("Number.prototype.length","undefined");
31 shouldBe("Date.prototype.length","undefined");
32 shouldBe("RegExp.prototype.length","undefined");
33 shouldBe("Error.prototype.length","undefined");
37 shouldBe("Array.prototype.length","6")
    [all...]
var_decl_init.js 158 shouldBe("varInFunction()","true");
159 shouldBe("varInVarList()","true");
160 shouldBe("varListOrder()","true");
161 shouldBe("varInBlock()","true");
162 shouldBe("varInIf()","true");
163 shouldBe("varInElse()","true");
164 shouldBe("varInDoWhile()","true");
165 shouldBe("varInWhile()","true");
166 shouldBe("varInFor()","true");
167 shouldBe("varInForIn()","true")
    [all...]
  /external/chromium_org/v8/test/webkit/fast/js/
regexp-unicode-handling.js 56 shouldBe("cy('Re: Moose')", "'Moose'")
57 shouldBe("cy('\\u8f6c\\u53d1: Moose')", "'Moose'")
72 shouldBe("inlineRe.source", "newFromInlineRe.source")
73 shouldBe("inlineRe.source", "evalFromInlineRe.source")
74 shouldBe("inlineRe.source", "evalInlineRe.source")
75 shouldBe("inlineRe.source", "newFromEvalInlineRe.source")
76 shouldBe("inlineRe.source", "evalFromEvalInlineRe.source")
77 shouldBe("inlineRe.source", "explicitRe.source")
78 shouldBe("inlineRe.source", "newFromExplicitRe.source")
79 shouldBe("inlineRe.source", "evalFromExplicitRe.source"
    [all...]
array-functions-non-arrays.js 96 shouldBe("properties(['b', 'a'])", "'0:b, 1:a, length:2(DontDelete, DontEnum)'");
97 shouldBe("properties({ length:2, 0:'b', 1:'a' })", "'0:b, 1:a, length:2'");
99 shouldBe("properties(new OneItemConstructor)", "'0:a(FromPrototype), length:1(FromPrototype)'");
100 shouldBe("properties(new TwoItemConstructor)", "'0:b(FromPrototype), 1:a(FromPrototype), length:2(FromPrototype)'");
102 shouldBe("Array.prototype.toString.call({})", '"' + ({}).toString() + '"');
103 shouldBe("Array.prototype.toString.call(new Date)", '"' + Object.prototype.toString.call(new Date) + '"');
104 shouldBe("Array.prototype.toString.call({sort: function() { return 'sort' }})", '"' + Object.prototype.toString.call({}) + '"');
105 shouldBe("Array.prototype.toString.call({join: function() { return 'join' }})", '"join"');
106 shouldBe("Array.prototype.toString.call({__proto__: Array.prototype, 0: 'a', 1: 'b', 2: 'c', length: 3})", '"a,b,c"');
107 shouldBe("({__proto__: Array.prototype, 0: 'a', 1: 'b', 2: 'c', length: 3}).toString()", '"a,b,c"')
    [all...]
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('"y".replace(/(x)?\\1y/, "z")', '"z"')
    [all...]
  /external/chromium_org/v8/test/webkit/fast/regex/
pcre-test-4.js 31 shouldBe('regex0.exec(input0);', 'results');
34 shouldBe('regex0.exec(input1);', 'results');
37 shouldBe('regex0.exec(input2);', 'results');
41 shouldBe('regex0.exec(input3);', 'results');
46 shouldBe('regex1.exec(input0);', 'results');
49 shouldBe('regex1.exec(input1);', 'results');
52 shouldBe('regex1.exec(input2);', 'results');
56 shouldBe('regex1.exec(input3);', 'results');
59 shouldBe('regex1.exec(input4);', 'results');
64 shouldBe('regex2.exec(input0);', 'results')
    [all...]
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('/(?:a*?){2}/.exec("aa")', '[""]')
    [all...]

Completed in 403 milliseconds

12 3 4 5 6 7 8 91011>>