You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2009/06/17 16:29:43 UTC

svn commit: r785622 - /myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/logging.js

Author: lofwyr
Date: Wed Jun 17 14:29:42 2009
New Revision: 785622

URL: http://svn.apache.org/viewvc?rev=785622&view=rev
Log:
adding getMaximumSeverity to javascript logging for automated tests

Modified:
    myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/logging.js

Modified: myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/logging.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/logging.js?rev=785622&r1=785621&r2=785622&view=diff
==============================================================================
--- myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/logging.js (original)
+++ myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/logging.js Wed Jun 17 14:29:42 2009
@@ -21,6 +21,7 @@
   IdBase: "TbgLog",
   messages: new Array(),
   appenders: new Array(),
+  maximumSeverity: 0,
   SEVERITY_ID_POSTFIX: "clientSeverity",
   DEBUG: 1,
   INFO:  2,
@@ -38,11 +39,18 @@
     }
   },
 
+  getMaximumSeverity: function() {
+    return this.maximumSeverity;
+  },
+
   addAppender: function(appender) {
     this.appenders.push(appender);
   },
 
   addMessage: function(msg) {
+    if (this.maximumSeverity < msg.type) {
+      this.maximumSeverity = msg.type;
+    }
     this.messages.push(msg);
     while (this.messages.length > this.HISTORY_SIZE) {
       this.messages.shift();