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:31:17 UTC
svn commit: r785623 -
/myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/logging.js
Author: lofwyr
Date: Wed Jun 17 14:31:14 2009
New Revision: 785623
URL: http://svn.apache.org/viewvc?rev=785623&view=rev
Log:
adding getMaximumSeverity to javascript logging for automated tests
Modified:
myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/logging.js
Modified: myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/logging.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/logging.js?rev=785623&r1=785622&r2=785623&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/logging.js (original)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/logging.js Wed Jun 17 14:31:14 2009
@@ -15,12 +15,12 @@
* limitations under the License.
*/
-
var LOG = new Object();
Object.extend(LOG, {
IdBase: "TbgLog",
messages: new Array(),
appenders: new Array(),
+ maximumSeverity: 0,
SEVERITY_ID_POSTFIX: "clientSeverity",
DEBUG: 1,
INFO: 2,
@@ -37,11 +37,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);
for (var i = 0 ; i < this.appenders.length; i++) {
var appender = this.appenders[i];