[gjs] Fix regression in JSUnit exception reporting



commit ffb57101c7fa6bc8c63de787916ae3e9da49fecc
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Tue May 14 21:57:11 2013 +0200

    Fix regression in JSUnit exception reporting
    
    gjstestRun was still using the old custom names for standard
    properties of Error.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=700335

 modules/jsUnit.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/modules/jsUnit.js b/modules/jsUnit.js
index 6fc7cf5..93f5eef 100644
--- a/modules/jsUnit.js
+++ b/modules/jsUnit.js
@@ -443,10 +443,10 @@ function gjstestRun(window_, setUp, tearDown) {
         if (e.comment != null)
           result += ('"' + e.comment + '"\n');
 
-        result += e.jsUnitMessage;
+        result += e.message;
 
-        if (e.stackTrace)
-          result += '\n\nStack trace follows:\n' + e.stackTrace;
+        if (e.stack)
+          result += '\n\nStack trace follows:\n' + e.stack;
 
         // assertion failure, kind of expected so just log it and flag the
         // whole test as failed


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