equals(1,0,'must not call run for any mode other than "opera9"');
};
p.opera9=function(){
equals(1,1,'called run for "opera9"');
};
UnitTest.fn.prepareFakeOperaEnvironment();
p.run({
message: 'ignored\n'+'ignored\n'+'ignored\n'+'ignored\n'+'Line 40 of linked script http://site.com: in function f1\n'+' discarded()\n'+'Line 44 of linked script http://site.com\n'+' f1(1, "abc")\n'+'ignored\n'+'ignored'
stack: 'ignored\n'+'f1([arguments not available])@http://site.com/main.js:2\n'+'<anonymous function: f2>([arguments not available])@http://site.com/main.js:4\n'+'@',
stacktrace: 'ignored\n'+'Error thrown at line 129, column 5 in <anonymous function>():\n'+'ignored\n'+'Error thrown at line 129, column 5 in <anonymous function>():\n'+'ignored\n'+'Error thrown at line 124, column 4 in <anonymous function>():\n'+'ignored\n'+'Error thrown at line 594, column 2 in process():\n'+'ignored\n'+'Error thrown at line 124, column 4 in <anonymous function>():\n'+'ignored\n'+'Error thrown at line 1, column 55 in discarded():\n'+' this.undef();\n'+'called from line 1, column 333 in f1(arg1, arg2):\n'+' discarded();\n'+'called from line 1, column 470 in <anonymous function>():\n'+' f1(1, "abc");\n'+'called from line 1, column 278 in program code:\n'+' f2();'
stack: "TypeError: Object #<Object> has no method 'undef'\n"+" at Object.createException (stacktrace.js:81:18)\n"+" at Object.run (stacktrace.js:66:25)\n"+" at printStackTrace (stacktrace.js:57:62)\n"+" at instrumented (stacktrace.js:114:33)\n"+" at bar (testcase4.html:36:9)\n"+" at testcase4.html:41:9\n"+" at testcase4.html:48:7"
varstack="TypeError: Object [object Window] has no method 'undef'\n"+" at f0 (test/test-stacktrace.js:198:20)\n"+" at f1 (test/test-stacktrace.js:203:10)\n"+" at f2 (test/test-stacktrace.js:206:10)\n"+" at Object.<anonymous> (test/test-stacktrace.js:208:6)\n"+" at Object.run (test/qunit.js:89:18)\n"+" at test/qunit.js:214:10\n"+" at process (test/qunit.js:783:23)\n"+" at test/qunit.js:383:5";