Searched refs:assertThrows (Results 1 - 25 of 33) sorted by relevance

12

/external/v8/test/mjsunit/
H A Dif-in-undefined.js33 assertThrows("if ('p' in undefined) { }");
34 assertThrows("if ('p' in null) { }")
35 assertThrows("if ('p' in true) { }");
36 assertThrows("if ('p' in 5) { }");
H A Dinvalid-source-element.js31 assertThrows("eval('function() {}')");
H A Dscanner.js30 assertThrows('var \\u0030')
H A Dinvalid-lhs.js32 assertThrows("12 = 12");
33 assertThrows("x++ = 12");
34 assertThrows("eval('var x') = 12");
38 assertThrows("12++");
39 assertThrows("12--");
40 assertThrows("--12");
41 assertThrows("++12");
42 assertThrows("++(eval('12'))");
43 assertThrows("(eval('12'))++");
48 assertThrows("fo
[all...]
H A Ddelay-syntax-error.js39 assertThrows("return;");
40 assertThrows("break;");
41 assertThrows("continue;");
H A Deval-typeof-non-existing.js34 assertThrows('typeof(true ? xxx : yyy)', ReferenceError);
35 assertThrows('with ({}) { typeof(true ? xxx : yyy) }', ReferenceError);
H A Darray-length-number-conversion.js49 assertThrows("var y = []; y.length = 'abc';");
50 assertThrows("var y = []; y.length = undefined;");
51 assertThrows("var y = []; y.length = {};");
52 assertThrows("var y = []; y.length = -1;");
53 assertThrows("var y = []; y.length = {valueOf:function() { throw new Error(); }};");
H A Dgetter-in-prototype.js36 assertThrows("o.x = 42");
43 assertThrows("f()");
50 assertThrows("g()");
H A Dnumber-string-index-call.js31 assertThrows("callbacks['1']()");
H A Dcall-non-function.js60 assertThrows(WillThrow);
61 assertThrows(WillThrow);
62 assertThrows(WillThrow);
63 assertThrows(WillThrow);
H A Dd8-os.js71 assertThrows("os.system('ls', ['dir/bar']);", "dir not there");
84 assertThrows("os.mkdirp('file1');", "mkdir over file1");
85 assertThrows("os.mkdirp('file1/foo');", "mkdir over file2");
86 assertThrows("os.mkdirp('file1/');", "mkdir over file3");
87 assertThrows("os.mkdirp('file1/foo/');", "mkdir over file4");
91 assertThrows("os.chdir('dir4');", "chdir dir4 I");
93 assertThrows("os.chdir('dir4');", "chdir dir4 II");
99 assertThrows("os.chdir('dir5');", "cd dir5 I");
101 assertThrows("os.chdir('dir5');", "chdir dir5 II");
125 assertThrows("o
[all...]
H A Darray-join.js41 assertThrows("a.join('*')");
H A Dglobal-ic.js47 assertThrows("CallOnGlobal(" + i + ")");
H A Dapply.js86 assertThrows("f0.apply(this, 1);");
87 assertThrows("f0.apply(this, 1, 2);");
88 assertThrows("f0.apply(this, 1, new Array(2));");
191 assertThrows("String.prototype.concat.apply.apply('foo', primes)");
H A Dconst-eval-init.js81 assertThrows("testAssignGlobalThrows()");
H A Darray-constructor.js118 assertThrows('new Array(3.14)');
119 assertThrows('Array(2.72)');
H A Djson.js34 assertThrows(function () { n2.toJSON(); }, TypeError);
37 assertThrows(function () { n3.toJSON(); }, TypeError, 'result_not_primitive');
76 assertThrows(function () { n2.toJSON(); }, TypeError);
79 assertThrows(function () { n3.toJSON(); }, TypeError, "result_not_primitive");
162 assertThrows(function () { JSON.parse(str); }, SyntaxError);
269 assertThrows(function () { JSON.stringify(circular); }, TypeError);
H A Dindexed-accessors.js100 assertThrows('q[0] = 7');
118 assertThrows('this[a].__parent__');
/external/v8/test/mjsunit/regress/
H A Dregress-221.js33 assertThrows('eval(delete eval)');
H A Dregress-259.js33 assertThrows("try { while (true) { throw 0; }} finally {}");
H A Dregress-1112051.js30 assertThrows("f.call.apply()");
31 assertThrows("f.call.apply(null)");
32 assertThrows("f.call.apply(null, [], 0)");
33 assertThrows("f.call.apply(null, [1,2,3,4,5,6,7,8,9], 0)");
H A Dregress-192.js37 assertThrows("({ x: 42 })");
H A Dregress-341.js36 assertThrows("o instanceof F");
/external/v8/test/mjsunit/third_party/
H A Dobject-keys.js34 assertThrows(function () { Object.keys(2) }, TypeError);
35 assertThrows(function () { Object.keys("foo") }, TypeError);
36 assertThrows(function () { Object.keys(null) }, TypeError);
37 assertThrows(function () { Object.keys(undefined) }, TypeError);
/external/v8/test/mjsunit/tools/
H A Dsplaytree.js155 assertThrows('tree.remove(5)');
159 assertThrows('tree.remove(1)');
160 assertThrows('tree.remove(6)');
161 assertThrows('tree.remove(10)');

Completed in 117 milliseconds

12