Home
last modified time | relevance | path

Searched refs:shouldBeTrue (Results 1 – 25 of 97) sorted by relevance

1234

/external/v8/test/webkit/fast/js/kde/
Doperators.js125 shouldBeTrue("!undefined");
126 shouldBeTrue("!null");
127 shouldBeTrue("!!true");
128 shouldBeTrue("!false");
129 shouldBeTrue("!!1");
130 shouldBeTrue("!0");
131 shouldBeTrue("!!'a'");
132 shouldBeTrue("!''");
134 shouldBeTrue("nonSpeculativeNot(undefined)");
135 shouldBeTrue("nonSpeculativeNot(null)");
[all …]
DGlobalObject.js38 shouldBeTrue("isNaN(NaN)");
39 shouldBeTrue("isNaN('NaN')");
42 shouldBeTrue("isFinite(1)");
43 shouldBeTrue("isFinite('1')");
54 shouldBeTrue("isNaN(parseInt())");
55 shouldBeTrue("isNaN(parseInt(''))");
56 shouldBeTrue("isNaN(parseInt(' '))");
57 shouldBeTrue("isNaN(parseInt('a'))");
66 shouldBeTrue("isNaN(parseInt('10', 40))");
69 shouldBeTrue("isNaN(parseInt('Infinity'))");
[all …]
Dmath.js33 shouldBeTrue("isNegativeZero(negativeZero)");
59 shouldBeTrue("isNegativeZero(Math.round(negativeZero))");
61 shouldBeTrue("isNegativeZero(Math.round(-0.2))");
62 shouldBeTrue("isNegativeZero(Math.round(-0.5))");
67 shouldBeTrue("isNaN(Math.round())");
68 shouldBeTrue("isNaN(Math.round(NaN))");
76 shouldBeTrue("isNaN(Math.log(NaN))");
77 shouldBeTrue("isNaN(Math.log(-1))");
83 shouldBeTrue("isNegativeZero(Math.min(negativeZero, 0))");
89 shouldBeTrue("isNaN(Math.max(1,NaN,3))");
[all …]
DRegExp.js27 shouldBeTrue("isNaN(Number(new RegExp()))");
44 shouldBeTrue("rg.global");
46 shouldBeTrue("ri.ignoreCase");
48 shouldBeTrue("rm.multiline");
55 shouldBeTrue("rg.global");
57 shouldBeTrue("ri.ignoreCase");
59 shouldBeTrue("rm.multiline");
112 shouldBeTrue("caught"); // #40435
144 shouldBeTrue("reg.ignoreCase == true");
145 shouldBeTrue("reg.global === false");
[all …]
/external/v8/test/webkit/
Dclass-constructor-return.js50 shouldBeTrue('(new BaseNoReturn) instanceof BaseNoReturn');
53 shouldBeTrue('(new BaseReturnImplicit) instanceof BaseReturnImplicit');
54 shouldBeTrue('(new BaseReturnImplicit) !== undefined');
55 shouldBeTrue('(new BaseReturnUndefined) instanceof BaseReturnUndefined');
56 shouldBeTrue('(new BaseReturnUndefined) !== undefined');
59 shouldBeTrue('(new BaseReturnThis) instanceof BaseReturnThis');
63 shouldBeTrue('typeof (new BaseReturnObject) === "object"');
65 shouldBeTrue('(new BaseReturnObject2) === globalVariable');
68 shouldBeTrue('(new BaseReturnString) instanceof BaseReturnString');
69 shouldBeTrue('typeof (new BaseReturnString) !== "string"');
[all …]
Dcomparison-operators-greater.js106 shouldBeTrue("0 >= 0");
107 shouldBeTrue("1 >= 0");
108 shouldBeTrue("1 >= 1");
109 shouldBeTrue("1 > 0");
115 shouldBeTrue("if (0 >= 0 || 0) true; else false");
116 shouldBeTrue("if (1 >= 0 || 0) true; else false");
117 shouldBeTrue("if (1 >= 1 || 0) true; else false");
118 shouldBeTrue("if (0 < 1 || 0) true; else false");
124 shouldBeTrue("0.5 >= 0");
125 shouldBeTrue("1.5 >= 0");
[all …]
Dcomparison-operators-less.js104 shouldBeTrue("0 <= 0");
105 shouldBeTrue("0 <= 1");
106 shouldBeTrue("1 <= 1");
107 shouldBeTrue("0 < 1");
113 shouldBeTrue("if (0 <= 0 || 0) true; else false");
114 shouldBeTrue("if (0 <= 1 || 0) true; else false");
115 shouldBeTrue("if (1 <= 1 || 0) true; else false");
116 shouldBeTrue("if (0 < 1 || 0) true; else false");
122 shouldBeTrue("0 <= 0.5");
123 shouldBeTrue("0 <= 1.5");
[all …]
Dobject-literal-syntax.js26 shouldBeTrue("({a:1, get a(){}}), true");
27 shouldBeTrue("({a:1, set a(v){}}), true");
28 shouldBeTrue("({get a(){}, a:1}), true");
29 shouldBeTrue("({set a(v){}, a:1}), true");
30 shouldBeTrue("({get a(){}, get a(){}}), true");
31 shouldBeTrue("({set a(v){}, set a(v){}}), true");
32 shouldBeTrue("({set a(v){}, get a(){}, set a(v){}}), true");
33 shouldBeTrue("(function(){({a:1, get a(){}})}), true");
34 shouldBeTrue("(function(){({a:1, set a(v){}})}), true");
35 shouldBeTrue("(function(){({get a(){}, a:1})}), true");
[all …]
Darray-proto-func-length-getter-except.js47 shouldBeTrue("test(Array.prototype.join)");
48 shouldBeTrue("test(Array.prototype.pop)");
49 shouldBeTrue("test(Array.prototype.push)");
50 shouldBeTrue("test(Array.prototype.reverse)");
51 shouldBeTrue("test(Array.prototype.shift)");
52 shouldBeTrue("test(Array.prototype.slice)");
53 shouldBeTrue("test(Array.prototype.sort)");
54 shouldBeTrue("test(Array.prototype.splice)");
55 shouldBeTrue("test(Array.prototype.unshift)");
56 shouldBeTrue("test(Array.prototype.indexOf)");
[all …]
Dprototypes.js66 shouldBeTrue("Array.prototype.isPrototypeOf([])");
67 shouldBeTrue("Object.prototype.isPrototypeOf({})");
68 shouldBeTrue("Date.prototype.isPrototypeOf(new Date)");
69 shouldBeTrue("Number.prototype.isPrototypeOf(new Number)");
70 shouldBeTrue("Object.prototype.isPrototypeOf(new Object)");
71 shouldBeTrue("String.prototype.isPrototypeOf(new String)");
72 shouldBeTrue("Object.prototype.isPrototypeOf(Array.prototype)");
73 shouldBeTrue("Object.prototype.isPrototypeOf(Date.prototype)");
74 shouldBeTrue("Object.prototype.isPrototypeOf(Number.prototype)");
75 shouldBeTrue("Object.prototype.isPrototypeOf(String.prototype)");
[all …]
Dcodegen-loops-logical-nodes.js36 shouldBeTrue("while_or_eq()");
46 shouldBeTrue("while_or_neq()");
56 shouldBeTrue("while_or_less()");
66 shouldBeTrue("while_or_lesseq()");
76 shouldBeTrue("while_and_eq()");
86 shouldBeTrue("while_and_neq()");
96 shouldBeTrue("while_and_less()");
106 shouldBeTrue("while_and_lesseq()");
115 shouldBeTrue("for_or_eq()");
124 shouldBeTrue("for_or_neq()");
[all …]
Darray-proto-func-property-getter-except.js49 shouldBeTrue("test(Array.prototype.sort)");
50 shouldBeTrue("test(Array.prototype.every)");
51 shouldBeTrue("test(Array.prototype.some)");
52 shouldBeTrue("test(Array.prototype.forEach)");
53 shouldBeTrue("test(Array.prototype.map)");
54 shouldBeTrue("test(Array.prototype.filter)");
55 shouldBeTrue("test(Array.prototype.reduce)");
56 shouldBeTrue("test(Array.prototype.reduceRight)");
59 shouldBeTrue("test(Array.prototype.join)");
60 shouldBeTrue("test(Array.prototype.pop)");
[all …]
Dfunction-declaration-statement.js44 shouldBeTrue("ifTest()");
59 shouldBeTrue("ifElseTest()");
74 shouldBeTrue("doWhileTest()");
88 shouldBeTrue("whileTest()");
102 shouldBeTrue("forTest()");
115 shouldBeTrue("forVarTest()");
129 shouldBeTrue("forInTest()");
143 shouldBeTrue("forInVarTest()");
157 shouldBeTrue("forInVarInitTest()");
170 shouldBeTrue("withTest()");
[all …]
Dobject-literal-direct-put.js26 shouldBeTrue("({a:true}).a");
27 shouldBeTrue("({__proto__: {a:false}, a:true}).a");
28 shouldBeTrue("({__proto__: {set a(v) {throw 'Should not call setter'; }}, a:true}).a");
29 shouldBeTrue("({__proto__: {get a() {throw 'Should not reach getter'; }}, a:true}).a");
30 shouldBeTrue("({__proto__: {get a() {throw 'Should not reach getter'; }, b:true}, a:true}).b");
32 shouldBeTrue("({__proto__: {__proto__: {a:false}}, a:true}).a");
33 shouldBeTrue("({__proto__: {__proto__: {set a(v) {throw 'Should not call setter'; }}}, a:true}).a");
34 shouldBeTrue("({__proto__: {__proto__: {get a() {throw 'Should not reach getter'; }}}, a:true}).a");
35 shouldBeTrue("({__proto__: {__proto__: {get a() {throw 'Should not reach getter'; }, b:true}}, a:tr…
Dtypeof-constant-string.js33 shouldBeTrue("isUndefined(undefined)");
41 shouldBeTrue("isUndefinedStrict(undefined)");
49 shouldBeTrue("isBoolean(true)");
50 shouldBeTrue("isBoolean(false)");
58 shouldBeTrue("isBooleanStrict(true)");
59 shouldBeTrue("isBooleanStrict(false)");
67 shouldBeTrue("isNumber(1)");
75 shouldBeTrue("isNumberStrict(1)");
83 shouldBeTrue("isString('string')");
91 shouldBeTrue("isStringStrict('string')");
[all …]
Dclass-syntax-prototype.js46 shouldBeTrue('class A {}; A.foo = "foo"; enumeratedProperties(A).includes("foo")');
51 shouldBeTrue('class A { static foo() {} }; descriptor(A, "foo").writable');
55 shouldBeTrue('class A { static foo() {} }; descriptor(A, "foo").configurable');
63 shouldBeTrue('class A { static get foo() {} }; descriptor(A, "foo").configurable');
66 shouldBeTrue('class A { foo() {} }; descriptor(A.prototype, "foo").writable');
71 shouldBeTrue('class A { foo() {} }; descriptor(A.prototype, "foo").configurable');
79 shouldBeTrue('class A { get foo() {} }; descriptor(A.prototype, "foo").configurable');
82 shouldBeTrue('class A { }; descriptor(A.prototype, "constructor").writable');
84 shouldBeTrue('class A { }; x = {}; A.prototype.constructor = function () { return x; }; (new A) ins…
88 shouldBeTrue('class A { }; descriptor(A.prototype, "constructor").configurable');
Dcodegen-temporaries.js30 shouldBeTrue("a");
574 shouldBeTrue("less_test1()");
582 shouldBeTrue("less_test2()");
590 shouldBeTrue("less_test3()");
598 shouldBeTrue("greater_test1()");
606 shouldBeTrue("greater_test2()");
614 shouldBeTrue("greater_test3()");
622 shouldBeTrue("lesseq_test1()");
630 shouldBeTrue("lesseq_test2()");
638 shouldBeTrue("lesseq_test3()");
[all …]
DpreventExtensions.js83 shouldBeTrue("(new inextensible).prototypeExists");
84 shouldBeTrue("(new sealed).prototypeExists");
85 shouldBeTrue("(new frozen).prototypeExists");
117 shouldBeTrue('Object.isFrozen(func)') class
124 shouldBeTrue('Object.isFrozen(strictFunc)')
131 shouldBeTrue('Object.isFrozen(array)')
138 shouldBeTrue('Object.isFrozen(args)')
151 shouldBeTrue('preventExtensionsFreezeIsFrozen(function foo(){})')
152 shouldBeTrue('preventExtensionsFreezeIsFrozen(function foo(){ "use strict"; })')
153 shouldBeTrue('preventExtensionsFreezeIsFrozen([0,1,2])')
[all …]
/external/v8/test/webkit/fast/js/
Dbasic-strict-mode.js113 shouldBeTrue('"caller" in function(){"use strict"}');
115 shouldBeTrue('(function(){"use strict";}).__proto__.hasOwnProperty("caller")');
116 shouldBeTrue('"arguments" in function(){"use strict"}');
118 shouldBeTrue('(function(){"use strict";}).__proto__.hasOwnProperty("arguments")');
141 shouldBeTrue("'use strict'; if (0) { someGlobal = 'Shouldn\\'t be able to assign this.'; }; true;");
173 shouldBeTrue("(function (a){'use strict'; a = false; return a !== arguments[0]; })(true)");
174 shouldBeTrue("(function (a){'use strict'; arguments[0] = false; return a !== arguments[0]; })(true)…
175 shouldBeTrue("(function (a){'use strict'; a=false; return arguments; })(true)[0]");
176 shouldBeTrue("(function (a){'use strict'; arguments[0]=false; return a; })(true)");
177 shouldBeTrue("(function (a){'use strict'; arguments[0]=true; return arguments; })(false)[0]");
[all …]
Dprimitive-property-access-edge-cases.js102 shouldBeTrue("checkGet(1, Number)");
103 shouldBeTrue("checkGet('hello', String)");
104 shouldBeTrue("checkGet(true, Boolean)");
105 shouldBeTrue("checkSet(1, Number)");
106 shouldBeTrue("checkSet('hello', String)");
107 shouldBeTrue("checkSet(true, Boolean)");
108 shouldBeTrue("checkGetStrict(1, Number)");
109 shouldBeTrue("checkGetStrict('hello', String)");
110 shouldBeTrue("checkGetStrict(true, Boolean)");
111 shouldBeTrue("checkSetStrict(1, Number)");
[all …]
Dread-modify-eval.js151 shouldBeTrue('multTest();');
152 shouldBeTrue('divTest();');
153 shouldBeTrue('addTest();');
154 shouldBeTrue('subTest();');
155 shouldBeTrue('lshiftTest();');
156 shouldBeTrue('rshiftTest();');
157 shouldBeTrue('urshiftTest();');
158 shouldBeTrue('andTest();');
159 shouldBeTrue('xorTest();');
160 shouldBeTrue('orTest();');
[all …]
Dstring-capitalization.js62 shouldBeTrue('expected[String.fromCharCode(0xA78D).toLowerCase()]');
63 shouldBeTrue('expected[String.fromCharCode(0x0265).toUpperCase()]');
78 shouldBeTrue('expected[String.fromCharCode(0x10C7).toLowerCase()]');
79 shouldBeTrue('expected[String.fromCharCode(0x2D27).toUpperCase()]');
82 shouldBeTrue('expected[String.fromCharCode(0x2D2D).toLowerCase()]');
83 shouldBeTrue('expected[String.fromCharCode(0x10CD).toUpperCase()]');
86 shouldBeTrue('expected[String.fromCharCode(0x2CF2).toLowerCase()]');
87 shouldBeTrue('expected[String.fromCharCode(0x2CF3).toUpperCase()]');
90 shouldBeTrue('expected[String.fromCharCode(0xA792).toLowerCase()]');
91 shouldBeTrue('expected[String.fromCharCode(0xA793).toUpperCase()]');
[all …]
Darguments.js565 shouldBeTrue("argumentsParam(true)");
568 shouldBeTrue("argumentsFunctionConstructorParam(true)");
609 shouldBeTrue("shadowedArgumentsApply([true])");
613 shouldBeTrue("shadowedArgumentsIndex([true])");
630 shouldBeTrue(String( a0 === 100 ));
631 shouldBeTrue(String( arguments[0] === 100 ));
633 shouldBeTrue(String( a0 === 300 ));
634 shouldBeTrue(String( arguments[0] === 300 ));
636 shouldBeTrue(String( a0 === 400 ));
637 shouldBeTrue(String( arguments[0] === 400 ));
[all …]
/external/v8/test/webkit/fast/regex/
DunicodeCaseInsensitive.js26 shouldBeTrue('/ΣΤΙΓΜΑΣ/i.test("στιγμας")');
27 shouldBeTrue('/ΔΣΔ/i.test("δςδ")');
28 shouldBeTrue('/ς/i.test("σ")');
29 shouldBeTrue('/σ/i.test("ς")');
32 shouldBeTrue('/\u1f16/i.test("\u1f16")')
46 shouldBeTrue('/' + ucs2CodePoint(set[i]) + '/i.test("' + ucs2CodePoint(set[j]) + '")')
47shouldBeTrue('/[' + ucs2CodePoint(set[i] - 1) + '-' + ucs2CodePoint(set[i] + 1) + ']/i.test("' + u…
68 shouldBeTrue('/\u03cf/i.test("\u03cf")')
69 shouldBeTrue('/\u03d7/i.test("\u03cf")')
70 shouldBeTrue('/\u03cf/i.test("\u03d7")')
[all …]
DtoString.js52 shouldBeTrue('testForwardSlash("^/$", "/");');
53 shouldBeTrue('testForwardSlash("^\/$", "/");');
55 shouldBeTrue('testForwardSlash("^\\/$", "/");');
57 shouldBeTrue('testForwardSlash("^\\\\/$", "\\/");');
58 shouldBeTrue('testForwardSlash("^\\\\\\/$", "\\/");');
60 shouldBeTrue('testForwardSlash("^\\\\\\\\/$", "\\\\/");');
61 shouldBeTrue('testForwardSlash("^\\\\\\\\\\/$", "\\\\/");');
63 shouldBeTrue('testForwardSlash("x/x/x", "x\\/x\\/x");');
64 shouldBeTrue('testForwardSlash("x\\/x/x", "x\\/x\\/x");');
65 shouldBeTrue('testForwardSlash("x/x\\/x", "x\\/x\\/x");');
[all …]

1234