/external/chromium_org/v8/test/webkit/ |
exception-propagate-from-dfg-to-llint.js | 26 toString: function() { if (shouldThrow) throw {}; return ""; } 29 var shouldThrow = false; 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) { [all...] |
delete-getters-setters.js | 32 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...] |
number-toExponential.js | 55 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)");
|
array-every.js | 82 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()");
|
instance-of-immediates.js | 40 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 }); [all...] |
array-defineOwnProperty.js | 37 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 }), 'length', { writable: true })"); 53 shouldThrow("Object.defineProperty(Object.defineProperty([true], '0', { configurable:false, writable: false }), '0', { writable: true })[0]"); 67 shouldThrow("Object.defineProperty(Object.defineProperty([], '0', { value: 1 }), '0', { value: 2 })[0]"); 68 shouldThrow("Object.defineProperty(Object.defineProperty([], '0', { value: 'okay' }), '0', { value: 'not ok' })[0]"); 69 shouldThrow("Object.defineProperty(Object.defineProperty([], '0', { value: true }), '0', { value: false })[0]"); 70 shouldThrow("Object.defineProperty(Object.defineProperty([], '0', { value: false }), '0', { value: true })[0]"); 71 shouldThrow("Object.defineProperty(Object.defineProperty([], '0', { value: Math }), '0', { value: Object })[0] (…) [all...] |
function-toString-object-literals.js | 59 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 }')");
|
property-getters-and-setters.js | 64 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");
|
JSON-stringify-replacer.js | 91 shouldThrow("JSON.stringify(object, returnCycleObjectFor1)"); 92 shouldThrow("JSON.stringify(array, returnCycleObjectFor1)"); 94 shouldThrow("JSON.stringify(object, returnCycleArrayFor1)"); 95 shouldThrow("JSON.stringify(array, returnCycleArrayFor1)");
|
Object-create.js | 26 shouldThrow("Object.create()"); 27 shouldThrow("Object.create('a string')"); 28 shouldThrow("Object.create({}, 'a string')"); 29 shouldThrow("Object.create(null, 'a string')");
|
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
ObjectIdentifier.java | 184 * invalid or null and shouldThrow is false 186 * shouldThrow is true 188 private static int[] toIntArray(String str, boolean shouldThrow) { 190 if (! shouldThrow) { 198 if (! shouldThrow) { 211 if (! shouldThrow) { 221 if (! shouldThrow) { 230 if (! shouldThrow) { 237 if (! shouldThrow) { 254 if (! shouldThrow) { [all...] |
/external/chromium_org/v8/test/webkit/fast/js/ |
number-toprecision.js | 42 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...] |
number-toString.js | 35 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...] |
number-tofixed.js | 88 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)") [all...] |
basic-strict-mode.js | 43 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...] |
caller-property.js | 51 shouldThrow("nonStrictCaller(strictCallee)", '"TypeError: Type error"'); 52 shouldThrow("strictCaller(nonStrictCallee)", '"TypeError: Function.caller used to retrieve strict caller"'); 53 shouldThrow("strictCaller(strictCallee)", '"TypeError: Type error"'); 59 shouldThrow("nonStrictCaller(boundStrictCallee)", '"TypeError: Type error"'); 60 shouldThrow("strictCaller(boundNonStrictCallee)", '"TypeError: Function.caller used to retrieve strict caller"'); 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 caller"'); 83 shouldThrow("strictSetter(nonStrictAccessor)", '"TypeError: Function.caller used to retrieve strict caller"') [all...] |
Object-defineProperty.js | 49 shouldThrow("Object.defineProperty([1,2,3], '1', {get:getter, configurable: true})[1]", "'called getter'"); 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: true})"); 65 shouldThrow("Object.defineProperty(createUnconfigurableProperty({}, 'foo'), 'foo', {writable: true})"); 66 shouldThrow("Object.defineProperty(createUnconfigurableProperty({}, 'foo'), 'foo', {enumerable: true})") [all...] |
date-toisostring.js | 36 shouldThrow("Date.toISOString.call({})"); 37 shouldThrow("Date.toISOString.call(0)");
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
AbstractListeningExecutorServiceTest.java | 155 shouldThrow(); 171 shouldThrow(); 182 shouldThrow(); 238 shouldThrow(); 252 shouldThrow(); 266 shouldThrow(); 286 shouldThrow(); 302 shouldThrow(); 333 shouldThrow(); 364 shouldThrow(); [all...] |
AtomicDoubleArrayTest.java | 72 shouldThrow(); 95 shouldThrow(); 107 shouldThrow(); 119 shouldThrow(); 123 shouldThrow(); 127 shouldThrow(); 131 shouldThrow(); 135 shouldThrow(); 139 shouldThrow(); 143 shouldThrow(); [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_with.py | 169 def shouldThrow(): 174 self.assertRaises(RuntimeError, shouldThrow) 183 def shouldThrow(): 186 self.assertRaises(RuntimeError, shouldThrow) 355 def shouldThrow(): 360 self.assertRaises(RuntimeError, shouldThrow) 366 def shouldThrow(): 371 self.assertRaises(ZeroDivisionError, shouldThrow) 377 def shouldThrow(): 385 self.assertRaises(RuntimeError, shouldThrow) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_with.py | 169 def shouldThrow(): 174 self.assertRaises(RuntimeError, shouldThrow) 183 def shouldThrow(): 186 self.assertRaises(RuntimeError, shouldThrow) 355 def shouldThrow(): 360 self.assertRaises(RuntimeError, shouldThrow) 366 def shouldThrow(): 371 self.assertRaises(ZeroDivisionError, shouldThrow) 377 def shouldThrow(): 385 self.assertRaises(RuntimeError, shouldThrow) [all...] |
/external/guava/guava-tests/test/com/google/common/io/ |
CloseablesTest.java | 127 private void setupCloseable(boolean shouldThrow) throws IOException { 130 if (shouldThrow) {
|
/external/chromium_org/v8/test/webkit/fast/regex/ |
constructor.js | 30 shouldThrow("re === RegExp(re,'i')"); 31 shouldThrow("re !== new RegExp(re,'i')");
|
/external/chromium_org/v8/test/mjsunit/regress/ |
regress-1355.js | 39 function shouldThrow() { 44 assertThrows("shouldThrow()");
|