gjs r51 - trunk/test/js/modules



Author: jobi
Date: Fri Oct 24 15:16:25 2008
New Revision: 51
URL: http://svn.gnome.org/viewvc/gjs?rev=51&view=rev

Log:
test: include line number to jsUnit stack trace

Patch by Tommi Komulainen

Modified:
   trunk/test/js/modules/jsUnit.js

Modified: trunk/test/js/modules/jsUnit.js
==============================================================================
--- trunk/test/js/modules/jsUnit.js	(original)
+++ trunk/test/js/modules/jsUnit.js	Fri Oct 24 15:16:25 2008
@@ -283,6 +283,11 @@
       name = 'anonymous';
     }
 
+    var line = framedata.match(/(:\d+)$/)[1];
+    if (line) {
+        name += line;
+    }
+
     stack[stack.length] = name;
   }
   // remove top level anonymous functions to match IE



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]