HomeSort by relevance Sort by last modified time
    Searched full:shouldbe (Results 1 - 25 of 438) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/chromium_org/v8/test/webkit/
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.3" + "2.1"', '"10.32.1"')
    [all...]
ToNumber.js 57 shouldBe("+undefined", "NaN");
58 shouldBe("+null", "0");
59 shouldBe("+false", "0");
60 shouldBe("+true", "1");
61 shouldBe("+2", "2");
62 shouldBe("+''", "0");
63 shouldBe("+' '", "0");
64 shouldBe("+' 1'", "1");
65 shouldBe("+'1 '", "1");
66 shouldBe("+'x1'", "NaN")
    [all...]
keywords-and-reserved_words.js 67 shouldBe('classifyIdentifier("x")', '"identifier"');
68 shouldBe('classifyIdentifier("id")', '"identifier"');
69 shouldBe('classifyIdentifier("identifier")', '"identifier"');
70 shouldBe('classifyIdentifier("keyword")', '"identifier"');
71 shouldBe('classifyIdentifier("strict")', '"identifier"');
72 shouldBe('classifyIdentifier("use")', '"identifier"');
74 shouldBe('classifyIdentifier("abstract")', '"identifier"');
75 shouldBe('classifyIdentifier("boolean")', '"identifier"');
76 shouldBe('classifyIdentifier("byte")', '"identifier"');
77 shouldBe('classifyIdentifier("char")', '"identifier"')
    [all...]
regexp-zero-length-alternatives.js 39 shouldBe('emptyStr.match(re1)', '[""]');
40 shouldBe('s1.match(re1)', '[""]');
41 shouldBe('s2.match(re1)', '["aaaa"]');
42 shouldBe('s3.match(re1)', '["aa"]');
46 shouldBe('emptyStr.match(re2)', '[""]');
47 shouldBe('s1.match(re2)', '[""]');
48 shouldBe('s2.match(re2)', '["aaaa"]');
49 shouldBe('s3.match(re2)', '["aa"]');
53 shouldBe('emptyStr.match(re3)', '[""]');
54 shouldBe('s1.match(re3)', '[""]')
    [all...]
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("1 / 1 ? true : false", "true")
    [all...]
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("Math.abs(Infinity)", "Infinity")
    [all...]
parseInt.js 27 shouldBe("parseInt('123')", '123');
28 shouldBe("parseInt('123x4')", '123');
29 shouldBe("parseInt('-123')", '-123');
30 shouldBe("parseInt('0x123')", '0x123');
31 shouldBe("parseInt('0x123x4')", '0x123');
32 shouldBe("parseInt('-0x123x4')", '-0x123');
33 shouldBe("parseInt('-')", 'Number.NaN');
34 shouldBe("parseInt('0x')", 'Number.NaN');
35 shouldBe("parseInt('-0x')", 'Number.NaN');
38 shouldBe("parseInt('123', undefined)", '123')
    [all...]
array-holes.js 76 shouldBe("var a = []; a.length = 1; showHoles(a)", "'[hole]'");
77 shouldBe("var a = []; a[0] = undefined; showHoles(a)", "'[undefined]'");
78 shouldBe("var a = []; a[0] = undefined; delete a[0]; showHoles(a)", "'[hole]'");
80 shouldBe("showHoles([0, , 2])", "'[0, hole, 2]'");
81 shouldBe("showHoles([0, 1, ,])", "'[0, 1, hole]'");
82 shouldBe("showHoles([0, , 2].concat([3, , 5]))", "'[0, hole, 2, 3, hole, 5]'");
83 shouldBe("showHoles([0, , 2, 3].reverse())", "'[3, 2, hole, 0]'");
84 shouldBe("a = [0, , 2, 3]; a.shift(); showHoles(a)", "'[hole, 2, 3]'");
85 shouldBe("showHoles([0, , 2, 3].slice(0, 3))", "'[0, hole, 2]'");
86 shouldBe("showHoles([0, , 2, 3].sort())", "'[0, 2, 3, hole]'")
    [all...]
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("'bar'.substr(0, 4)", "'bar'")
    [all...]
dfg-multiply.js 42 shouldBe("doMultiplyConstant2(1)", "2");
43 shouldBe("doMultiplyConstant2(2)", "4");
44 shouldBe("doMultiplyConstant2(4)", "8");
45 shouldBe("doMultiplyConstant3(1)", "3");
46 shouldBe("doMultiplyConstant3(2)", "6");
47 shouldBe("doMultiplyConstant3(4)", "12");
48 shouldBe("doMultiplyConstant4(1)", "4");
49 shouldBe("doMultiplyConstant4(2)", "8");
50 shouldBe("doMultiplyConstant4(4)", "16");
55 shouldBe("doMultiplyConstant2(1073741824)", "2147483648")
    [all...]
parseFloat.js 55 shouldBe("parseFloat()", "NaN");
56 shouldBe("parseFloat('')", "NaN");
57 shouldBe("parseFloat(' ')", "NaN");
58 shouldBe("parseFloat(' 0')", "0");
59 shouldBe("parseFloat('0 ')", "0");
60 shouldBe("parseFloat('x0')", "NaN");
61 shouldBe("parseFloat('0x')", "0");
62 shouldBe("parseFloat(' 1')", "1");
63 shouldBe("parseFloat('1 ')", "1");
64 shouldBe("parseFloat('x1')", "NaN")
    [all...]
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('"y".match(/[\\uFEFF]/)', 'null')
    [all...]
  /external/chromium_org/v8/test/webkit/fast/js/kde/
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("isNaN(Number.NaN)", "true")
    [all...]
operators.js 144 shouldBe("+9", "9");
145 shouldBe("var i = 10; +i", "10");
148 shouldBe("-11", "-11");
149 shouldBe("var i = 12; -i", "-12");
152 shouldBe("var i = 0; ++i;", "1");
153 shouldBe("var i = 0; ++i; i", "1");
154 shouldBe("var i = 0; i++;", "0");
155 shouldBe("var i = 0; i++; i", "1");
156 shouldBe("var i = true; i++", "1");
157 shouldBe("var i = true; i++; i", "2")
    [all...]
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("Array.prototype.shift.__proto__","Function.prototype")
    [all...]
Array.js 28 shouldBe("Array().length", "0");
29 shouldBe("(new Array()).length", "0");
30 shouldBe("(new Array(3)).length", "3");
31 shouldBe("(new Array(11, 22)).length", "2");
32 shouldBe("(new Array(11, 22))[0]", "11");
33 shouldBe("Array(11, 22)[1]", "22");
35 shouldBe("String(new Array(11, 22))", "'11,22'");
36 shouldBe("var a = []; a[0] = 33; a[0]", "33");
37 shouldBe("var a = []; a[0] = 33; a.length", "1");
38 shouldBe("var a = [11, 22]; a.length = 1; String(a);", "'11'")
    [all...]
RegExp.js 25 shouldBe("(new RegExp()).source", "'(?:)'");
26 shouldBe("Boolean(new RegExp())", "true");
30 shouldBe("RegExp(/x/).source", "'x'");
31 //shouldBe("RegExp(/x/, 'g').source", "'/x/'"); // can't supply flags when constructing one RegExp from another, says mozilla
32 shouldBe("RegExp('x', 'g').global", "true");
33 shouldBe("RegExp('x').source", "'x'");
36 shouldBe("new RegExp('x').source", "'x'");
43 shouldBe("typeof (/a/).global", "'boolean'");
49 shouldBe("rg.toString()", "'/a/g'");
50 shouldBe("ri.toString()", "'/a/i'")
    [all...]
GlobalObject.js 29 shouldBe("h.charCodeAt(1)", "239");
30 shouldBe("u.charCodeAt(1)", "4660");
31 shouldBe("escape(h)", "'a%EFc'");
32 shouldBe("escape(u)", "'a%u1234c'");
33 shouldBe("escape(z)", "'%00'");
34 shouldBe("unescape(escape(h))", "h");
35 shouldBe("unescape(escape(u))", "u");
36 shouldBe("unescape(escape(z))", "z");
47 shouldBe('isNaN(parseInt("Hello", 8))', "true");
48 shouldBe('isNaN(parseInt("FFF", 10))', "true")
    [all...]
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("new Object(null)", ???)
    [all...]
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("EvalError.length","1")
    [all...]
object_prototype.js 35 shouldBe("sub.x","1");
36 shouldBe("sub.y","2");
37 shouldBe("sub.hasOwnProperty('x')","false");
38 shouldBe("sub.hasOwnProperty('y')","true");
40 shouldBe("sub.x","6");
41 shouldBe("sub.hasOwnProperty('x')","true");
43 shouldBe("sub.y","undefined");
44 shouldBe("sub.hasOwnProperty('y')","false");
62 shouldBe("obj.hasClass1","true");
63 shouldBe("obj.hasClass2","true")
    [all...]
  /external/chromium_org/content/test/data/indexeddb/
database_test.js 14 shouldBe("objectStore.name", "'employees'");
15 shouldBe("objectStore.keyPath", "'id'");
17 shouldBe('db.name', 'dbname');
18 shouldBe('db.version', '1');
19 shouldBe('db.objectStoreNames.length', '1');
20 shouldBe('db.objectStoreNames[0]', '"employees"');
24 shouldBe('db.objectStoreNames.length', '0');
  /external/chromium_org/v8/test/webkit/fast/regex/
dotstar.js 28 shouldBe("regexp1.exec('blah')", "['blah']");
29 shouldBe("regexp1.exec('1blah')", "['1blah']");
30 shouldBe("regexp1.exec('blah1')", "['blah1']");
31 shouldBe("regexp1.exec('blah blah blah')", "['blah blah blah']");
32 shouldBe("regexp1.exec('blah\\nsecond')", "['blah']");
33 shouldBe("regexp1.exec('first\\nblah')", "['blah']");
34 shouldBe("regexp1.exec('first\\nblah\\nthird')", "['blah']");
35 shouldBe("regexp1.exec('first\\nblah2\\nblah3')", "['blah2']");
39 shouldBe("regexp2.exec('blah')", "['blah']");
40 shouldBe("regexp2.exec('1blah')", "['1blah']")
    [all...]
  /external/chromium_org/v8/test/webkit/fast/js/
arguments.js 78 shouldBe("access_1(1, 2, 3)", "1");
79 shouldBe("access_2(1, 2, 3)", "2");
80 shouldBe("access_3(1, 2, 3)", "3");
81 shouldBe("access_4(1, 2, 3)", "undefined");
82 shouldBe("access_5(1, 2, 3)", "undefined");
84 shouldBe("access_1(1)", "1");
85 shouldBe("access_2(1)", "undefined");
86 shouldBe("access_3(1)", "undefined");
87 shouldBe("access_4(1)", "undefined");
88 shouldBe("access_5(1)", "undefined")
    [all...]
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('/x$/.exec("x\\n")', 'null')
    [all...]

Completed in 138 milliseconds

1 2 3 4 5 6 7 8 91011>>