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

123

/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 Dnumber-string-index-call.js30 assertThrows("callbacks['1']()");
31 assertThrows("callbacks['2']('abcdefg')");
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(); }};");
/external/v8/test/mjsunit/regress/
H A Dregress-259.js33 assertThrows("try { while (true) { throw 0; }} finally {}");
H A Dregress-918.js33 assertThrows("(label):42;");
H A Dregress-87.js36 assertThrows("/x/\\u0067");
37 assertThrows("/x/\\u0069");
38 assertThrows("/x/\\u006d");
40 assertThrows("/x/\\u0067i");
41 assertThrows("/x/\\u0069m");
42 assertThrows("/x/\\u006dg");
44 assertThrows("/x/m\\u0067");
45 assertThrows("/x/g\\u0069");
46 assertThrows("/x/i\\u006d");
48 assertThrows("/
[all...]
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-1620.js36 assertThrows("var \\u\\u\\u = 42;");
37 assertThrows("var \\u41 = 42;");
38 assertThrows("var \\u123 = 42;");
41 assertThrows("var uuu = 42; var x = \\u\\u\\u");
50 assertThrows("/x/g\\uim", SyntaxError);
51 assertThrows("/x/g\\u2im", SyntaxError);
52 assertThrows("/x/g\\u22im", SyntaxError);
53 assertThrows("/x/g\\u222im", SyntaxError);
54 assertThrows("/x/g\\\\u2222im", SyntaxError);
H A Dregress-219.js60 assertThrows("/a/ii");
62 assertThrows("/a/gii");
64 assertThrows("/a/igi");
66 assertThrows("/a/iig");
68 assertThrows("/a/gimi");
70 assertThrows("/a/giim");
72 assertThrows("/a/igim");
74 assertThrows(function(){ return RegExp("a", "ii"); })
76 assertThrows(function(){ return RegExp("a", "gii"); })
78 assertThrows(functio
[all...]
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-1415.js30 assertThrows(function(){ decodeURIComponent("%ED%A0%80"); }, URIError);
32 assertThrows(function(){ decodeURIComponent("%ED%AF%BF"); }, URIError);
34 assertThrows(function(){ decodeURIComponent("%ED%B0%80"); }, URIError);
36 assertThrows(function(){ decodeURIComponent("%ED%BF%BF"); }, URIError);
40 assertThrows(function(){ decodeURIComponent("%C1%BF"); }, URIError);
42 assertThrows(function(){ decodeURIComponent("%E0%9F%BF"); }, URIError);
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-91787.js33 assertThrows(function() {
H A Dregress-341.js36 assertThrows("o instanceof F");
H A Dregress-1924.js33 assertThrows("a: break a a", SyntaxError)
34 assertThrows("a: break a 1", SyntaxError)
35 assertThrows("a: break a ''", SyntaxError)
36 assertThrows("a: break a var b", SyntaxError)
37 assertThrows("a: break a {}", SyntaxError)
H A Dregress-603.js33 assertThrows(function() {
39 assertThrows(function() {
44 assertThrows(function() {
49 assertThrows(function() {
55 assertThrows(function() {
61 assertThrows(function() {
H A Dregress-95920.js32 assertThrows(function() {
39 assertThrows(function() {
46 assertThrows(function() {
53 assertThrows(function() {
H A Dregress-119429.js37 assertThrows(function() { recurse();} );

Completed in 170 milliseconds

123