HomeSort by relevance Sort by last modified time
    Searched full:shouldbe (Results 76 - 100 of 456) sorted by null

1 2 34 5 6 7 8 91011>>

  /external/v8/test/webkit/
dfg-put-by-id-allocate-storage-polymorphic.js 45 shouldBe("o.a", "1");
46 shouldBe("o.b", "2");
47 shouldBe("o.c", "3");
48 shouldBe("o.d", "4");
49 shouldBe("o.e", "5");
50 shouldBe("o.f", "6");
51 shouldBe("o.g", "7");
53 shouldBe("o.foo", "42");
55 shouldBe("o.foo", "void 0");
regexp-alternatives.js 29 shouldBe('s1.match(/<((\\/([^>]+)>)|(([^>]+)>))/)', '["<p>","p>",undefined,undefined,"p>","p"]');
30 shouldBe('s1.match(/<((ABC>)|(\\/([^>]+)>)|(([^>]+)>))/)', '["<p>","p>",undefined,undefined,undefined,"p>","p"]');
31 shouldBe('s1.match(/<(a|\\/p|.+?)>/)', '["<p>","p"]');
34 shouldBe('s1.match(/<((\\/([^>]+)>)|((([^>])+)>))/)', '["<p>","p>",undefined,undefined,"p>","p","p"]');
35 shouldBe('s1.match(/<((ABC>)|(\\/([^>]+)>)|((([^>])+)>))/)', '["<p>","p>",undefined,undefined,undefined,"p>","p","p"]');
36 shouldBe('s1.match(/<(a|\\/p|(.)+?)>/)', '["<p>","p","p"]');
40 shouldBe('s2.match(/<((\\/([^>]+)>)|(([^>]+)>))\\5/)', '["<p>p","p>",undefined,undefined,"p>","p"]');
41 shouldBe('s2.match(/<((ABC>)|(\\/([^>]+)>)|(([^>]+)>))\\6/)', '["<p>p","p>",undefined,undefined,undefined,"p>","p"]');
42 shouldBe('s2.match(/<(a|\\/p|.+?)>\\1/)', '["<p>p","p"]');
JSON-stringify-replacer.js 73 shouldBe("JSON.stringify(object, returnObjectFor1)", '\'{"0":0,"1":{},"2":2}\'');
74 shouldBe("JSON.stringify(array, returnObjectFor1)", '\'[0,{},2,null]\'');
76 shouldBe("JSON.stringify(object, returnArrayFor1)", '\'{"0":0,"1":[],"2":2}\'');
77 shouldBe("JSON.stringify(array, returnArrayFor1)", '\'[0,[],2,null]\'');
79 shouldBe("JSON.stringify(object, returnUndefinedFor1)", '\'{"0":0,"2":2}\'');
80 shouldBe("JSON.stringify(array, returnUndefinedFor1)", '\'[0,null,2,null]\'');
82 shouldBe("JSON.stringify(object, returnFunctionFor1)", '\'{"0":0,"2":2}\'');
83 shouldBe("JSON.stringify(array, returnFunctionFor1)", '\'[0,null,2,null]\'');
85 shouldBe("JSON.stringify(object, returnNullFor1)", '\'{"0":0,"1":null,"2":2}\'');
86 shouldBe("JSON.stringify(array, returnNullFor1)", '\'[0,null,2,null]\'')
    [all...]
bitops-type-tag.js 27 shouldBe("aDouble>>27", "0");
28 shouldBe("aDouble>>27|0", "0");
29 shouldBe("aDouble>>0", "100000000");
30 shouldBe("aDouble>>0|0", "100000000");
31 shouldBe("aDouble|0", "100000000");
33 shouldBe("(function(x){ return 2147483648>>>x; })(31)", "1");
string-property-iteration.js 32 shouldBe('stringProperties.length', '5');
33 shouldBe('stringProperties[0]', '"0"');
34 shouldBe('stringProperties[1]', '"1"');
35 shouldBe('stringProperties[2]', '"2"');
36 shouldBe('stringProperties[3]', '"3"');
37 shouldBe('stringProperties[4]', '"4"');
number-cell-reuse.js 33 shouldBe("leftConstantRightSimple(2)", "0.4");
40 shouldBe("leftConstantRightComplex(1)", "0.2");
47 shouldBe("leftSimpleRightConstant(2)", "0.4");
54 shouldBe("leftComplexRightConstant(1)", "0.2");
62 shouldBe("leftThisRightSimple.call(2, 2)", "8");
70 shouldBe("leftThisRightComplex.call(2, 2)", "12");
78 shouldBe("leftSimpleRightThis.call(2, 2)", "8");
86 shouldBe("leftComplexRightThis.call(2, 2)", "12");
sort-large-array.js 31 shouldBe("test.length", "10010");
32 shouldBe("test[9999]", "9999");
33 shouldBe("test[10000]", "10000");
34 shouldBe("test.slice(0, 20).join(', ')", "'0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19'");
35 shouldBe("test.slice(9990, 10010).join(', ')", "'9990, 9991, 9992, 9993, 9994, 9995, 9996, 9997, 9998, 9999, 10000, 10001, 10002, 10003, 10004, 10005, 10006, 10007, 10008, 10009'");
41 shouldBe("testNoValues.length", "10110");
42 shouldBe("testNoValues[9999]", "undefined");
43 shouldBe("testNoValues[10000]", "undefined");
array-defineOwnProperty.js 30 shouldBe("Object.defineProperty([], 'length', { value: 1 }).length", '1');
31 shouldBe("var a = Object.defineProperty([], 'length', { writable: false }); a[1] = 1; a.length", '0');
32 shouldBe("var a = Object.defineProperty([], 'length', { writable: false }); a.length = 1; a.length", '0');
34 shouldBe("var a = Object.defineProperty([], 'length', {}); a.length = 1; a.length", '1');
43 shouldBe("var a = Object.defineProperty([], '0', { value: 42 }); a[0]", '42');
45 shouldBe("var a = Object.defineProperty([42], '0', { writable: false }); a[0] = 1; a[0]", '42');
46 shouldBe("var a = Object.defineProperty([42], '0', { enumerable: false }); a[0] + Object.keys(a).length", '42');
47 shouldBe("var a = Object.defineProperty([42], '0', { configurable: false }); a.length = 0; a[0]", '42');
49 shouldBe("var foo = 0; Object.defineProperty([], '0', { set:function(x){foo = x;} })[0] = 42; foo", '42');
56 shouldBe("Object.defineProperty(Object.defineProperty([], '0', { value: 1, writable:true }), '0', { value: (…)
    [all...]
string-trim.js 63 shouldBe("whitespace["+i+"].s.trim()", "''");
64 shouldBe("whitespace["+i+"].s.trimLeft()", "''");
65 shouldBe("whitespace["+i+"].s.trimRight()", "''");
73 shouldBe("wsString.trim()", "''");
74 shouldBe("wsString.trimLeft()", "''");
75 shouldBe("wsString.trimRight()", "''");
77 shouldBe("trimString.trim()", "testString");
78 shouldBe("trimString.trimLeft()", "leftTrimString");
79 shouldBe("trimString.trimRight()", "rightTrimString");
81 shouldBe("leftTrimString.trim()", "testString")
    [all...]
class-syntax-extends.js 43 shouldBe('Object.getPrototypeOf(new Base)', 'Base.prototype');
45 shouldBe('Object.getPrototypeOf(new Derived)', 'Derived.prototype');
46 shouldBe('Object.getPrototypeOf(Derived.prototype)', 'Base.prototype');
47 shouldBe('(new Derived).baseMethod()', '"base"');
48 shouldBe('(new Derived).overridenMethod()', '"derived"');
49 shouldBe('Derived.staticBaseMethod()', '"base"');
50 shouldBe('Derived.staticOverridenMethod()', '"derived"');
57 shouldBe('x.__proto__', 'Base');
58 shouldBe('Object.getPrototypeOf(x)', 'Base');
59 shouldBe('x.prototype.__proto__', 'Base.prototype')
    [all...]
  /external/v8/test/webkit/fast/js/kde/
object_prototype_tostring.js 27 shouldBe("_array.toString()","\"[object Array]\"");
30 shouldBe("_string.toString()","\"[object String]\"");
33 shouldBe("_boolean.toString()","\"[object Boolean]\"");
36 shouldBe("_number.toString()","\"[object Number]\"");
39 shouldBe("_object.toString()","\"[object Object]\"");
42 shouldBe("_date.toString()","\"[object Date]\"");
45 shouldBe("_regexp.toString()","\"[object RegExp]\"");
48 shouldBe("_error.toString()","\"[object Error]\"");
51 shouldBe("_function.toString()","\"[object Function]\"");
Boolean.js 25 shouldBe("Boolean()", "false");
26 shouldBe("Boolean(true)", "true");
27 shouldBe("Boolean(false)", "false");
28 shouldBe("(new Boolean(true)).valueOf()", "true");
29 shouldBe("(new Boolean(false)).valueOf()", "false");
30 shouldBe("(new Boolean(Boolean(true))).valueOf()", "true");
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]'");
conditional.js 25 shouldBe("true ? 1 : 2", "1");
26 shouldBe("false ? 1 : 2", "2");
27 shouldBe("'abc' ? 1 : 2", "1");
28 shouldBe("null ? 1 : 2", "2");
29 shouldBe("undefined ? 1 : 2", "2");
33 shouldBe("/*var a=1;if (undefined) a = 2;*/ a", "1");
eval.js 25 shouldBe("eval.length", "1");
26 shouldBe("eval('this')", "this");
33 var bx = b.x // rule out side effects of eval() in shouldBe() test function
34 shouldBe("bx", "99");
39 shouldBe("cx", "99");
44 shouldBe("o.eval('str')", "1");
45 shouldBe("o.eval('this')", "this");
56 shouldBe("lotto()", "0");
iteration.js 30 shouldBe("count", "10");
38 shouldBe("count", "5");
45 shouldBe("count", "10");
56 shouldBe("properties", "'a=11;b=22;'");
64 // shouldBe("properties", "'abyx'");
73 shouldBe("list","'[0]=100;[1]=101;'");
79 shouldBe("list", "'123'");
  /external/v8/test/webkit/fast/js/
object-prototype-constructor.js 30 shouldBe("f.constructor", "Foo.Bar");
31 shouldBe("typeof f.constructor", '"function"');
36 shouldBe("f2.constructor", "Foo2.Bar");
37 shouldBe("typeof f2.constructor", '"function"');
41 shouldBe("f3.constructor", "Foo3.Bar");
42 shouldBe("typeof f3.constructor", '"function"');
date-toisostring.js 39 shouldBe("new Date(-400).toISOString()", "'1969-12-31T23:59:59.600Z'");
40 shouldBe("new Date(0).toISOString()", "'1970-01-01T00:00:00.000Z'");
41 shouldBe("new Date('1 January 1500 UTC').toISOString()", "'1500-01-01T00:00:00.000Z'");
42 shouldBe("new Date('1 January 2000 UTC').toISOString()", "'2000-01-01T00:00:00.000Z'");
43 shouldBe("new Date('1 January 4000 UTC').toISOString()", "'4000-01-01T00:00:00.000Z'");
44 shouldBe("new Date('1 January 100000 UTC').toISOString()", "'+100000-01-01T00:00:00.000Z'");
45 shouldBe("new Date('1 January -1 UTC').toISOString()", "'-000001-01-01T00:00:00.000Z'");
46 shouldBe("new Date('10 March 2000 UTC').toISOString()", "'2000-03-10T00:00:00.000Z'");
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]');
string-fontsize.js 31 shouldBe("'_'.fontsize('\"')", '"<font size=\\"&quot;\\">_</font>"');
34 shouldBe("'_'.fontsize('b')", '"<font size=\\"b\\">_</font>"');
37 shouldBe("'<'.fontsize('b')", '"<font size=\\"b\\"><</font>"');
40 shouldBe("'_'.fontsize(0x2A)", '"<font size=\\"42\\">_</font>"');
43 shouldBe("'_'.fontsize('\"')", '"<font size=\\"&quot;\\">_</font>"');
44 shouldBe("'_'.fontsize('\" color=\"b')", '"<font size=\\"&quot; color=&quot;b\\">_</font>"');
47 shouldBe("String.prototype.fontsize.call(0x2A, 0x2A)", '"<font size=\\"42\\">42</font>"');
56 shouldBe("String.prototype.fontsize.length", "1");
string-link.js 31 shouldBe("'_'.link('\"')", '"<a href=\\"&quot;\\">_</a>"');
34 shouldBe("'_'.link('b')", '"<a href=\\"b\\">_</a>"');
37 shouldBe("'<'.link('b')", '"<a href=\\"b\\"><</a>"');
40 shouldBe("'_'.link(0x2A)", '"<a href=\\"42\\">_</a>"');
43 shouldBe("'_'.link('\"')", '"<a href=\\"&quot;\\">_</a>"');
44 shouldBe("'_'.link('\" target=\"_blank')", '"<a href=\\"&quot; target=&quot;_blank\\">_</a>"');
47 shouldBe("String.prototype.link.call(0x2A, 0x2A)", '"<a href=\\"42\\">42</a>"');
56 shouldBe("String.prototype.link.length", "1");
function-toString-parentheses.js 53 shouldBe("compileAndSerialize('" + expression + "')",
62 shouldBe("compileAndSerialize('" + expression + "')",
193 shouldBe("compileAndSerialize('(1)[a]()')",
196 shouldBe("compileAndSerialize('new (1)()')",
213 shouldBe("compileAndSerializeLeftmostTest('({ }).x')", "'({ }).x'");
214 shouldBe("compileAndSerializeLeftmostTest('x = { }')", "'x = { }'");
215 shouldBe("compileAndSerializeLeftmostTest('(function () { })()')", "'(function () { })()'");
216 shouldBe("compileAndSerializeLeftmostTest('x = function () { }')", "'x = function () { }'");
218 shouldBe("compileAndSerializeLeftmostTest('var a')", "'var a'");
219 shouldBe("compileAndSerializeLeftmostTest('var a = 1')", "'var a = 1'")
    [all...]
regexp-ranges-and-escaped-hyphens.js 30 shouldBe('regexp01.toString()', '"1235"');
34 shouldBe('regexp01a.toString()', '"123 5"');
38 shouldBe('regexp01b.toString()', '"1-3 5"');
40 shouldBe('regexp01c.toString()', '"1-3 5"');
43 shouldBe('regexp01d.toString()', '"123 5"');
45 shouldBe('regexp01e.toString()', '"123 5"');
48 shouldBe('regexp01f.toString()', '"-3"');
50 shouldBe('regexp01g.toString()', '"2-"');
54 shouldBe('regexp02.toString()', '"1-35"');
57 shouldBe('regexp02a.toString()', '"1-3 5"')
    [all...]
Object-defineProperty.js 26 shouldBe("JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {value:1}), 'foo'))",
28 shouldBe("JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {}), 'foo'))",
30 shouldBe("JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {get:undefined}), 'foo'))",
32 shouldBe("JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {value:1, writable: false}), 'foo'))",
34 shouldBe("JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {value:1, writable: true}), 'foo'))",
36 shouldBe("JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {value:1, enumerable: false}), 'foo'))",
38 shouldBe("JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {value:1, enumerable: true}), 'foo'))",
40 shouldBe("JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {value:1, configurable: false}), 'foo'))",
42 shouldBe("JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {value:1, configurable: true}), 'foo'))",
44 shouldBe("JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty([1,2,3], 'foo', {value:1, co (…)
    [all...]
string-anchor.js 31 shouldBe("'_'.anchor('b')", '"<a name=\\"b\\">_</a>"');
34 shouldBe("'<'.anchor('b')", '"<a name=\\"b\\"><</a>"');
37 shouldBe("'_'.anchor(0x2A)", '"<a name=\\"42\\">_</a>"');
40 shouldBe("'_'.anchor('\"')", '"<a name=\\"&quot;\\">_</a>"');
41 shouldBe("'_'.anchor('\" href=\"http://www.evil.com')", '"<a name=\\"&quot; href=&quot;http://www.evil.com\\">_</a>"');
44 shouldBe("String.prototype.anchor.call(0x2A, 0x2A)", '"<a name=\\"42\\">42</a>"');
53 shouldBe("String.prototype.anchor.length", "1");

Completed in 133 milliseconds

1 2 34 5 6 7 8 91011>>