Home
last modified time | relevance | path

Searched refs:shouldThrow (Results 1 – 25 of 76) sorted by relevance

1234

/external/chromium_org/v8/test/webkit/
Dexception-propagate-from-dfg-to-llint.js26 toString: function() { if (shouldThrow) throw {}; return ""; }
29 var shouldThrow = false; variable
34 try { shouldThrow = !shouldThrow; h(o); } catch (e) {}
35 try { shouldThrow = !shouldThrow; h(o); } catch (e) {}
36 try { shouldThrow = !shouldThrow; h(o); } catch (e) {}
37 try { shouldThrow = !shouldThrow; h(o); } catch (e) {}
38 try { shouldThrow = !shouldThrow; h(o); } catch (e) {}
39 try { shouldThrow = !shouldThrow; h(o); } catch (e) {}
40 try { shouldThrow = !shouldThrow; h(o); } catch (e) {}
41 try { shouldThrow = !shouldThrow; h(o); } catch (e) {}
[all …]
Dobject-literal-syntax.js26 shouldThrow("({a:1, get a(){}})");
27 shouldThrow("({a:1, set a(v){}})");
28 shouldThrow("({get a(){}, a:1})");
29 shouldThrow("({set a(v){}, a:1})");
30 shouldThrow("({get a(){}, get a(){}})");
31 shouldThrow("({set a(v){}, set a(v){}})");
32 shouldThrow("({set a(v){}, get a(){}, set a(v){}})");
33 shouldThrow("(function(){({a:1, get a(){}})})");
34 shouldThrow("(function(){({a:1, set a(v){}})})");
35 shouldThrow("(function(){({get a(){}, a:1})})");
[all …]
Djs-continue-break-restrictions.js27 shouldThrow("if (0) { L:{ break; } }");
28 shouldThrow("if (0) { L:{ continue L; } }");
29 shouldThrow("if (0) { L:{ continue; } }");
30 shouldThrow("if (0) { switch (1) { case 1: continue; } }");
32 shouldThrow("if (0) { A:L:{ break; } }");
33 shouldThrow("if (0) { A:L:{ continue L; } }");
34 shouldThrow("if (0) { A:L:{ continue; } }");
37 shouldThrow("if (0) { L:A:{ break; } }");
38 shouldThrow("if (0) { L:A:{ continue L; } }");
39 shouldThrow("if (0) { L:A:{ continue; } }");
[all …]
Ddelete-getters-setters.js32 shouldThrow("b1.property");
38 shouldThrow("a2.property");
44 shouldThrow("b3.property");
50 shouldThrow("a4.property");
56 shouldThrow("b5.property");
62 shouldThrow("a6.property");
68 shouldThrow("b7.property");
74 shouldThrow("a8.property");
80 shouldThrow("o1.b.property");
86 shouldThrow("o1.a.property");
[all …]
Darray-defineOwnProperty.js37 shouldThrow("Object.defineProperty([], 'length', { get:function(){return true;} })");
38 shouldThrow("Object.defineProperty([], 'length', { enumerable: true })");
39 shouldThrow("Object.defineProperty([], 'length', { configurable: true })");
40 shouldThrow("Object.defineProperty(Object.defineProperty([], 'length', { writable: false }), 'lengt…
53 shouldThrow("Object.defineProperty(Object.defineProperty([true], '0', { configurable:false, writabl…
67 shouldThrow("Object.defineProperty(Object.defineProperty([], '0', { value: 1 }), '0', { value: 2 })…
68 shouldThrow("Object.defineProperty(Object.defineProperty([], '0', { value: 'okay' }), '0', { value:…
69 shouldThrow("Object.defineProperty(Object.defineProperty([], '0', { value: true }), '0', { value: f…
70 shouldThrow("Object.defineProperty(Object.defineProperty([], '0', { value: false }), '0', { value: …
71 shouldThrow("Object.defineProperty(Object.defineProperty([], '0', { value: Math }), '0', { value: O…
[all …]
Dinstance-of-immediates.js40 testSet("1", { "1":shouldThrow, "{}":shouldThrow, "obj":shouldThrow });
44 testSet("{}", { "1":shouldThrow, "{}":shouldThrow, "obj":shouldThrow });
53 testSet("Constructor", { "1":shouldBeFalse, "{}":shouldThrow, "obj":shouldThrow });
63 testSet("Constructor", { "1":shouldBeFalse, "{}":shouldThrow, "obj":shouldThrow });
Darray-every.js82 shouldThrow("[12, 5, 8, 130, 44].every(isBigEnoughAndException)", '"exception from function"');
83 shouldThrow("[12, 54, 18, 130, 44].every(isBigEnoughAndException)", '"exception from function"');
87 shouldThrow("[12, 5, 8, 130, 44].every(5)");
88 shouldThrow("[12, 5, 8, 130, 44].every('wrong')");
89 shouldThrow("[12, 5, 8, 130, 44].every(new Object())");
90 shouldThrow("[12, 5, 8, 130, 44].every(null)");
91 shouldThrow("[12, 5, 8, 130, 44].every(undefined)");
92 shouldThrow("[12, 5, 8, 130, 44].every()");
Dnumber-toExponential.js55 shouldThrow("(123.456).toExponential(21)");
56 shouldThrow("(123.456).toExponential(100)");
57 shouldThrow("(123.456).toExponential(101)");
58 shouldThrow("(123.456).toExponential(-1)");
60 shouldThrow("(1234.567).toExponential(posInf)");
61 shouldThrow("(1234.567).toExponential(negInf)");
Dfunction-toString-object-literals.js59 shouldThrow("compileAndSerialize('a = { --1: null }')");
60 shouldThrow("compileAndSerialize('a = { -NaN: null }')");
61 shouldThrow("compileAndSerialize('a = { -0: null }')");
62 shouldThrow("compileAndSerialize('a = { -0.0: null }')");
63 shouldThrow("compileAndSerialize('a = { -Infinity: null }')");
Dparser-xml-close-comment.js26 shouldThrow("'should be a syntax error' -->");
27 shouldThrow("/**/ 1 -->");
28 shouldThrow("1 /**/ -->");
29 shouldThrow("1/*\n*/-->");
DObject-defineProperties.js26 shouldThrow("Object.defineProperties()");
27 shouldThrow("Object.defineProperties('a string')");
28 shouldThrow("Object.defineProperties({}, 'a string')");
35 shouldThrow("Object.defineProperties(emptyObject, {foo:{value: true}, bar:{get:function(){}, writab…
Dproperty-getters-and-setters.js64 shouldThrow("o5.__defineSetter__('a', null)");
65 shouldThrow("o5.__defineSetter__('a', o5)");
66 shouldThrow("o5.__defineGetter__('a', null)");
67 shouldThrow("o5.__defineGetter__('a', o5)");
73 shouldThrow("x = o6.x");
75 shouldThrow("o6.x = 42");
DObject-create.js26 shouldThrow("Object.create()");
27 shouldThrow("Object.create('a string')");
28 shouldThrow("Object.create({}, 'a string')");
29 shouldThrow("Object.create(null, 'a string')");
/external/chromium_org/v8/test/webkit/fast/js/
DObject-defineProperty.js49 shouldThrow("Object.defineProperty([1,2,3], '1', {get:getter, configurable: true})[1]", "'called ge…
51 shouldThrow("Object.defineProperty()");
52 shouldThrow("Object.defineProperty(null)");
53 shouldThrow("Object.defineProperty('foo')");
54 shouldThrow("Object.defineProperty({})");
55 shouldThrow("Object.defineProperty({}, 'foo')");
56 shouldThrow("Object.defineProperty({}, 'foo', {get:undefined, value:true}).foo");
64 shouldThrow("Object.defineProperty(createUnconfigurableProperty({}, 'foo'), 'foo', {configurable: t…
65 shouldThrow("Object.defineProperty(createUnconfigurableProperty({}, 'foo'), 'foo', {writable: true}…
66 shouldThrow("Object.defineProperty(createUnconfigurableProperty({}, 'foo'), 'foo', {enumerable: tru…
[all …]
Darray-prototype-properties.js29 shouldThrow("Array.prototype.toString.call(undefined)");
30 shouldThrow("Array.prototype.toLocaleString.call(undefined)");
31 shouldThrow("Array.prototype.concat.call(undefined, [])");
32 shouldThrow("Array.prototype.join.call(undefined, [])");
33 shouldThrow("Array.prototype.pop.call(undefined)");
34 shouldThrow("Array.prototype.push.call(undefined, {})");
35 shouldThrow("Array.prototype.reverse.call(undefined)");
36 shouldThrow("Array.prototype.shift.call(undefined)");
37 shouldThrow("Array.prototype.slice.call(undefined, 0, 1)");
38 shouldThrow("Array.prototype.sort.call(undefined)");
[all …]
Dbasic-strict-mode.js43 shouldThrow(str);
44 shouldThrow("(function(){" + str + "})");
65 shouldThrow("testThisDotAccess.call(null)");
66 shouldThrow("testThisDotAccess.call(undefined)");
71 shouldThrow("testThisBracketAccess.call(null, 'length')");
72 shouldThrow("testThisBracketAccess.call(undefined, 'length')");
77 shouldThrow("Function('\"use strict\"; with({});')");
99 shouldThrow("(function (){'use strict'; arguments.callee; })()");
100 shouldThrow("(function (){'use strict'; arguments.caller; })()");
101 shouldThrow("(function f(){'use strict'; f.arguments; })()");
[all …]
Dnumber-toprecision.js42 shouldThrow("(1234.567).toPrecision(0)");
43 shouldThrow("(1234.567).toPrecision(null)"); // just like 0
44 shouldThrow("(1234.567).toPrecision(false)"); // just like 0
45 shouldThrow("(1234.567).toPrecision('foo')"); // just like 0
46 shouldThrow("(1234.567).toPrecision(-1)");
55 shouldThrow("(1234.567).toPrecision(22)");
56 shouldThrow("(1234.567).toPrecision(100)");
57 shouldThrow("(1234.567).toPrecision(101)");
59 shouldThrow("(1234.567).toPrecision(posInf)");
60 shouldThrow("(1234.567).toPrecision(negInf)");
[all …]
Dnumber-toString.js35 shouldThrow("(1234.567).toString(0)");
37 shouldThrow("(1234.567).toString(null)");
38 shouldThrow("(1234.567).toString(false)");
39 shouldThrow("(1234.567).toString('foo')");
40 shouldThrow("(1234.567).toString(nan)"); // nan is treated like 0
42 shouldThrow("(1234.567).toString(1)");
43 shouldThrow("(1234.567).toString(true)");
44 shouldThrow("(1234.567).toString('1')");
84 shouldThrow("(1234.567).toString(37)");
85 shouldThrow("(1234.567).toString(-1)");
[all …]
Dcaller-property.js51 shouldThrow("nonStrictCaller(strictCallee)", '"TypeError: Type error"');
52 shouldThrow("strictCaller(nonStrictCallee)", '"TypeError: Function.caller used to retrieve strict c…
53 shouldThrow("strictCaller(strictCallee)", '"TypeError: Type error"');
59 shouldThrow("nonStrictCaller(boundStrictCallee)", '"TypeError: Type error"');
60 shouldThrow("strictCaller(boundNonStrictCallee)", '"TypeError: Function.caller used to retrieve str…
61 shouldThrow("strictCaller(boundStrictCallee)", '"TypeError: Type error"');
80 shouldThrow("nonStrictGetter(strictAccessor)", '"TypeError: Type error"');
81 shouldThrow("nonStrictSetter(strictAccessor)", '"TypeError: Type error"');
82 shouldThrow("strictGetter(nonStrictAccessor)", '"TypeError: Function.caller used to retrieve strict…
83 shouldThrow("strictSetter(nonStrictAccessor)", '"TypeError: Function.caller used to retrieve strict…
[all …]
Dnumber-tofixed.js88 shouldThrow("(1234.567).toFixed(21)");
89 shouldThrow("(1234.567).toFixed(100)");
90 shouldThrow("(1234.567).toFixed(101)");
91 shouldThrow("(1234.567).toFixed(-1)");
92 shouldThrow("(1234.567).toFixed(-4)");
93 shouldThrow("(1234.567).toFixed(-5)");
94 shouldThrow("(1234.567).toFixed(-20)");
95 shouldThrow("(1234.567).toFixed(-21)");
97 shouldThrow("(1234.567).toFixed(posInf)");
98 shouldThrow("(1234.567).toFixed(negInf)");
Dmodify-non-references.js30 shouldThrow("Number()++", "'ReferenceError: Invalid left-hand side expression in postfix operation'…
31 shouldThrow("Number()--", "'ReferenceError: Invalid left-hand side expression in postfix operation'…
32 shouldThrow("++Number()", "'ReferenceError: Invalid left-hand side expression in prefix operation'"…
33 shouldThrow("--Number()", "'ReferenceError: Invalid left-hand side expression in prefix operation'"…
34 shouldThrow("Number() = 1", "'ReferenceError: Invalid left-hand side in assignment'");
35 shouldThrow("Number() += 1", "'ReferenceError: Invalid left-hand side in assignment'");
Dobject-prototype-properties.js33 shouldThrow("Object.prototype.toLocaleString.call(undefined)");
34 shouldThrow("Object.prototype.valueOf.call(undefined)");
35 shouldThrow("Object.prototype.hasOwnProperty.call(undefined, 'hasOwnProperty')");
36 shouldThrow("Object.prototype.propertyIsEnumerable.call(undefined, 'propertyIsEnumerable')");
37 shouldThrow("Object.prototype.isPrototypeOf.call(undefined, this)");
/external/chromium_org/v8/test/webkit/fast/regex/
DlastIndex.js30 shouldThrow("'use strict'; delete /x/.lastIndex");
40 shouldThrow("Object.defineProperty(/x/, {get:function(){}})");
43 shouldThrow("Object.defineProperty(/x/, 'lastIndex', {enumerable:true}); true");
47 shouldThrow("Object.defineProperty(/x/, 'lastIndex', {configurable:true}); true");
58 shouldThrow("Object.defineProperty(Object.defineProperty(/x/, 'lastIndex', {writable:false}), 'last…
61 shouldThrow("Object.defineProperty(Object.defineProperty(/x/, 'lastIndex', {writable:false}), 'last…
67 shouldThrow("Object.defineProperty(/x/g, 'lastIndex', {writable:false}).exec('')");
68 shouldThrow("Object.defineProperty(/x/g, 'lastIndex', {writable:false}).exec('x')");
/external/chromium_org/v8/test/webkit/fast/js/kde/
Dparse.js31 shouldThrow("function test() { while(0) break lab; } lab: 1");
32 shouldThrow("function test() { while(0) continue lab; } lab: 1");
39 shouldThrow("function test() { while(0) break lab } lab: 1");
40 shouldThrow("function test() { while(0) continue lab } lab: 1");
52 shouldThrow("var f\xF7;");
62 shouldThrow("var f\\u00F7;");
63 shouldThrow("var \\u0030;");
64 shouldThrow("var test = { }; test.i= 0; test.i\\u002b= 1; test.i;");
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DAbstractListeningExecutorServiceTest.java155 shouldThrow(); in testSubmitFailedPrivilegedExceptionAction()
171 shouldThrow(); in testExecuteNullRunnable()
182 shouldThrow(); in testSubmitNullCallable()
238 shouldThrow(); in testSubmitEE()
252 shouldThrow(); in testInvokeAny1()
266 shouldThrow(); in testInvokeAny2()
286 shouldThrow(); in testInvokeAny3()
302 shouldThrow(); in testInvokeAny4()
333 shouldThrow(); in testInvokeAll1()
364 shouldThrow(); in testInvokeAll3()
[all …]

1234