/external/chromium_org/v8/test/webkit/ |
D | exception-propagate-from-dfg-to-llint.js | 26 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 …]
|
D | object-literal-syntax.js | 26 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 …]
|
D | js-continue-break-restrictions.js | 27 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 …]
|
D | 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 …]
|
D | 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 }), '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 …]
|
D | 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 });
|
D | 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()");
|
D | 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)");
|
D | 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 }')");
|
D | parser-xml-close-comment.js | 26 shouldThrow("'should be a syntax error' -->"); 27 shouldThrow("/**/ 1 -->"); 28 shouldThrow("1 /**/ -->"); 29 shouldThrow("1/*\n*/-->");
|
D | Object-defineProperties.js | 26 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…
|
D | 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");
|
D | 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')");
|
/external/chromium_org/v8/test/webkit/fast/js/ |
D | Object-defineProperty.js | 49 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 …]
|
D | array-prototype-properties.js | 29 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 …]
|
D | 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 …]
|
D | 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 …]
|
D | 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 …]
|
D | caller-property.js | 51 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 …]
|
D | 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)");
|
D | modify-non-references.js | 30 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'");
|
D | object-prototype-properties.js | 33 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/ |
D | lastIndex.js | 30 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/ |
D | parse.js | 31 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/ |
D | AbstractListeningExecutorServiceTest.java | 155 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 …]
|