Skip to content

Commit 4075c35

Browse files
author
homyakov
committed
Added Captured Opera exceptions
1 parent baadfd1 commit 4075c35

1 file changed

Lines changed: 76 additions & 0 deletions

File tree

‎test/CapturedExceptions.js‎

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,68 @@
11
var CapturedExceptions = {};
22

3+
CapturedExceptions.opera_854 = {
4+
message: "Statement on line 44: Type mismatch (usually a non-object value used where an object is required)\n" +
5+
"Backtrace:\n" +
6+
" Line 44 of linked script file://localhost/G:/aptana/DevTools/stacktrace/javascript-stacktrace/stacktrace.js\n" +
7+
" this.undef();\n" +
8+
" Line 31 of linked script file://localhost/G:/aptana/DevTools/stacktrace/javascript-stacktrace/stacktrace.js\n" +
9+
" ex = ex || this.createException();\n" +
10+
" Line 18 of linked script file://localhost/G:/aptana/DevTools/stacktrace/javascript-stacktrace/stacktrace.js\n" +
11+
" var p = new printStackTrace.implementation(), result = p.run(ex);\n" +
12+
" Line 4 of inline#1 script in file://localhost/G:/aptana/DevTools/stacktrace/javascript-stacktrace/test/functional/testcase1.html\n" +
13+
" printTrace(printStackTrace());\n" +
14+
" Line 7 of inline#1 script in file://localhost/G:/aptana/DevTools/stacktrace/javascript-stacktrace/test/functional/testcase1.html\n" +
15+
" bar(n - 1);\n" +
16+
" Line 11 of inline#1 script in file://localhost/G:/aptana/DevTools/stacktrace/javascript-stacktrace/test/functional/testcase1.html\n" +
17+
" bar(2);\n" +
18+
" Line 15 of inline#1 script in file://localhost/G:/aptana/DevTools/stacktrace/javascript-stacktrace/test/functional/testcase1.html\n" +
19+
" foo();\n" +
20+
"",
21+
'opera#sourceloc': 44
22+
};
23+
24+
CapturedExceptions.opera_902 = {
25+
message: "Statement on line 44: Type mismatch (usually a non-object value used where an object is required)\n" +
26+
"Backtrace:\n" +
27+
" Line 44 of linked script file://localhost/G:/aptana/DevTools/stacktrace/javascript-stacktrace/stacktrace.js\n" +
28+
" this.undef();\n" +
29+
" Line 31 of linked script file://localhost/G:/aptana/DevTools/stacktrace/javascript-stacktrace/stacktrace.js\n" +
30+
" ex = ex || this.createException();\n" +
31+
" Line 18 of linked script file://localhost/G:/aptana/DevTools/stacktrace/javascript-stacktrace/stacktrace.js\n" +
32+
" var p = new printStackTrace.implementation(), result = p.run(ex);\n" +
33+
" Line 4 of inline#1 script in file://localhost/G:/aptana/DevTools/stacktrace/javascript-stacktrace/test/functional/testcase1.html\n" +
34+
" printTrace(printStackTrace());\n" +
35+
" Line 7 of inline#1 script in file://localhost/G:/aptana/DevTools/stacktrace/javascript-stacktrace/test/functional/testcase1.html\n" +
36+
" bar(n - 1);\n" +
37+
" Line 11 of inline#1 script in file://localhost/G:/aptana/DevTools/stacktrace/javascript-stacktrace/test/functional/testcase1.html\n" +
38+
" bar(2);\n" +
39+
" Line 15 of inline#1 script in file://localhost/G:/aptana/DevTools/stacktrace/javascript-stacktrace/test/functional/testcase1.html\n" +
40+
" foo();\n" +
41+
"",
42+
'opera#sourceloc': 44
43+
};
44+
45+
CapturedExceptions.opera_927 = {
46+
message: "Statement on line 43: Type mismatch (usually a non-object value used where an object is required)\n" +
47+
"Backtrace:\n" +
48+
" Line 43 of linked script file://localhost/G:/js/stacktrace.js\n" +
49+
" this.undef();\n" +
50+
" Line 31 of linked script file://localhost/G:/js/stacktrace.js\n" +
51+
" ex = ex || this.createException();\n" +
52+
" Line 18 of linked script file://localhost/G:/js/stacktrace.js\n" +
53+
" var p = new printStackTrace.implementation(), result = p.run(ex);\n" +
54+
" Line 4 of inline#1 script in file://localhost/G:/js/test/functional/testcase1.html\n" +
55+
" printTrace(printStackTrace());\n" +
56+
" Line 7 of inline#1 script in file://localhost/G:/js/test/functional/testcase1.html\n" +
57+
" bar(n - 1);\n" +
58+
" Line 11 of inline#1 script in file://localhost/G:/js/test/functional/testcase1.html\n" +
59+
" bar(2);\n" +
60+
" Line 15 of inline#1 script in file://localhost/G:/js/test/functional/testcase1.html\n" +
61+
" foo();\n" +
62+
"",
63+
'opera#sourceloc': 43
64+
};
65+
366
CapturedExceptions.opera_964 = {
467
message: "Statement on line 42: Type mismatch (usually non-object value supplied where object required)\n" +
568
"Backtrace:\n" +
@@ -121,3 +184,16 @@ CapturedExceptions.opera_1151 = {
121184
"called from line 15, column 3 in file://localhost/G:/js/test/functional/testcase1.html:\n" +
122185
" foo();"
123186
};
187+
188+
CapturedExceptions.chrome_15 = {
189+
'arguments': ["undef", printStackTrace.implementation],
190+
message: "Object #<Object> has no method 'undef'",
191+
stack: "TypeError: Object #<Object> has no method 'undef'\n" +
192+
" at Object.createException (http://127.0.0.1:8000/js/stacktrace.js:42:18)\n" +
193+
" at Object.run (http://127.0.0.1:8000/js/stacktrace.js:31:25)\n" +
194+
" at printStackTrace (http://127.0.0.1:8000/js/stacktrace.js:18:62)\n" +
195+
" at bar (http://127.0.0.1:8000/js/test/functional/testcase1.html:13:17)\n" +
196+
" at bar (http://127.0.0.1:8000/js/test/functional/testcase1.html:16:5)\n" +
197+
" at foo (http://127.0.0.1:8000/js/test/functional/testcase1.html:20:5)\n" +
198+
" at http://127.0.0.1:8000/js/test/functional/testcase1.html:24:4"
199+
};

0 commit comments

Comments
 (0)