Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing tests

  • Loading branch information...
commit b74aebe73e813deee88acf2d99e8967815d43bed 1 parent 7e36aa1
@eriwen eriwen authored
Showing with 9 additions and 9 deletions.
  1. +9 −9 test-stacktrace.js
View
18 test-stacktrace.js
@@ -131,7 +131,7 @@
e.push({ stack: 'f1(1,"abc")@file.js:40\n()@file.js:41\n@:0 \nf44()@file.js:494'});
if(mode == 'firefox') {
function f1(arg1, arg2) {
- try {var _err = __undef__ << 1;} catch (exception) {
+ try {this.undef();} catch (exception) {
e.push(exception);
}
}
@@ -156,7 +156,7 @@
e.push({ stack: 'ignored\n at f0 (file.js:132:3)\n at file.js:135:3\n at f1 (file.js:132:13)\n at file.js:135:23\n at Object.<anonymous> (file.js:137:9)\n at file.js:137:32 at process (file.js:594:22)'});
if(mode == 'chrome') {
function f0() {
- try {var _err = __undef__ << 1;} catch (exception) {
+ try {this.undef();} catch (exception) {
e.push(exception);
}
}
@@ -183,10 +183,10 @@
var mode = printStackTrace.implementation.prototype.mode(UnitTest.fn.createGenericError());
var e = [];
e.push({ stack: 'ignored\nf1([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\nError thrown at line 129, column 5 in <anonymous function>():\nignored\nError thrown at line 129, column 5 in <anonymous function>():\nignored\nError thrown at line 124, column 4 in <anonymous function>():\nignored\nError thrown at line 594, column 2 in process():\nignored\nError thrown at line 124, column 4 in <anonymous function>():\nignored\nError thrown at line 1, column 55 in discarded():\n var _err = __undef__ << 1;\ncalled from line 1, column 333 in f1(arg1, arg2):\n discarded();\ncalled from line 1, column 470 in <anonymous function>():\n f1(1, "abc");\ncalled from line 1, column 278 in program code:\n f2();' });
+ stacktrace: 'ignored\nError thrown at line 129, column 5 in <anonymous function>():\nignored\nError thrown at line 129, column 5 in <anonymous function>():\nignored\nError thrown at line 124, column 4 in <anonymous function>():\nignored\nError thrown at line 594, column 2 in process():\nignored\nError thrown at line 124, column 4 in <anonymous function>():\nignored\nError thrown at line 1, column 55 in discarded():\n this.undef();\ncalled from line 1, column 333 in f1(arg1, arg2):\n discarded();\ncalled from line 1, column 470 in <anonymous function>():\n f1(1, "abc");\ncalled from line 1, column 278 in program code:\n f2();' });
if (mode == 'opera10') {
function discarded() {
- try {var _err = __undef__ << 1;} catch (exception) {
+ try {this.undef();} catch (exception) {
e.push(exception);
}
}
@@ -217,7 +217,7 @@
e.push({ message: 'ignored\nignored\nignored\nignored\nLine 40 of linked script http://site.com: in function f1\n discarded()\nLine 44 of linked script http://site.com\n f1(1, "abc")\nignored\nignored'});
if(mode == 'opera') {
function discarded() {
- try {var _err = __undef__ << 1;} catch (exception) {
+ try {this.undef();} catch (exception) {
e.push(exception);
}
}
@@ -377,7 +377,7 @@
if (mode == 'firefox') {
var f2 = function() {
try {
- var _err = __undef__ << 1;
+ this.undef();
} catch(e) {
results.push(p.run());
}
@@ -404,7 +404,7 @@
if (mode == 'chrome') {
var f2 = function() {
try {
- var _err = __undef__ << 1;
+ this.undef();
} catch(e) {
results.push(p.run());
}
@@ -431,7 +431,7 @@
if (mode == 'opera') {
var f2 = function() {
try {
- var _err = __undef__ << 1;
+ this.undef();
} catch(e) {
results.push(p.run());
}
@@ -457,7 +457,7 @@
if (mode == 'other') {
var f2 = function() {
- try { var _err = __undef__ << 1; } catch(e) {
+ try { this.undef(); } catch(e) {
results.push(p.run());
}
};
Please sign in to comment.
Something went wrong with that request. Please try again.