Searched refs:assertThrows (Results 1 - 25 of 46) 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 Ddelay-syntax-error.js36 assertThrows("if (false) break;");
37 assertThrows("if (false) continue;");
40 assertThrows("return;");
41 assertThrows("break;");
42 assertThrows("continue;");
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 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.js37 assertThrows("o.x = 42");
38 assertThrows("o[0] = 42");
45 assertThrows("f()");
52 assertThrows("g()");
58 assertThrows("g2()");
H A Dnumber-string-index-call.js31 assertThrows("callbacks['1']()");
H A Dvalue-of.js33 assertThrows(function() { o + 1 }, MyException);
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 Dstrict-mode.js30 assertThrows("'use strict';\n" + code, exception);
31 assertThrows('"use strict";\n' + code, exception);
38 assertThrows("\
59 assertThrows(function() {
78 assertThrows('\
133 assertThrows('\
160 assertThrows('\
189 assertThrows("var x = { get foo() { }, get foo() { } };", SyntaxError);
190 assertThrows("var x = { get foo(){}, get 'foo'(){}};", SyntaxError);
191 assertThrows("va
[all...]
H A Dlimit-locals.js45 assertThrows("function_with_n_locals(32768)");
46 assertThrows("function_with_n_locals(100000)");
/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-918.js33 assertThrows("(label):42;");
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-1036894.js28 assertThrows("$=function anonymous() { /*noex*/do {} while(({ get x(x) { break ; }, set x() { (undefined);} })); }");
31 assertThrows("$=function anonymous() { /*noex*/do {} while(({ get x(x) { break ; }, set x() { (undefined);} })); }");
35 assertThrows("$=function anonymous() { /*noex*/do {} while(({ get x(x) { break ; }, set x() { (undefined);} })); }");
H A Dregress-1107.js32 assertThrows("x");
H A Dregress-990205.js38 assertThrows("f()");
H A Dregress-1309.js30 assertThrows("o.__proto__ = {}");
H A Dregress-341.js36 assertThrows("o instanceof F");
H A Dregress-1122.js65 assertThrows("function_with_n_params_and_m_args(35000, 35000)");
66 assertThrows("function_with_n_params_and_m_args(100000, 100000)");
67 assertThrows("function_with_n_params_and_m_args(35000, 30000)");
68 assertThrows("function_with_n_params_and_m_args(30000, 35000)");
H A Dregress-1118.js50 assertThrows("h()");

Completed in 135 milliseconds

12