incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject svn commit: r1397509 - /incubator/ooo/trunk/test/testcommon/source/org/openoffice/test/common/XMLReporter.xsl
Date Fri, 12 Oct 2012 10:51:37 GMT
Author: hdu
Date: Fri Oct 12 10:51:36 2012
New Revision: 1397509

URL: http://svn.apache.org/viewvc?rev=1397509&view=rev
Log:
only decorate ignore annotations if the regexp matches to the decoration pattern

Modified:
    incubator/ooo/trunk/test/testcommon/source/org/openoffice/test/common/XMLReporter.xsl

Modified: incubator/ooo/trunk/test/testcommon/source/org/openoffice/test/common/XMLReporter.xsl
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/test/testcommon/source/org/openoffice/test/common/XMLReporter.xsl?rev=1397509&r1=1397508&r2=1397509&view=diff
==============================================================================
--- incubator/ooo/trunk/test/testcommon/source/org/openoffice/test/common/XMLReporter.xsl
(original)
+++ incubator/ooo/trunk/test/testcommon/source/org/openoffice/test/common/XMLReporter.xsl
Fri Oct 12 10:51:36 2012
@@ -164,9 +164,10 @@ function refresh() {
 		} else if (c = $$(e, 'ignored')) {
 			status = 'Ignored';
 			message = text(c.getAttribute("message"));
-		    var bugPattern = /(.*)#(\d+)(.*)/;
-		    bugPattern.test(message);
-		    message = '<a href="https://issues.apache.org/ooo/show_bug.cgi?id=' + RegExp.$2
+ '">' + RegExp.$1 + RegExp.$2 + '</a>' + RegExp.$3;
+			var bugPattern = /(.*)#(\d+)(.*)/;
+			if( bugPattern.test(message) ) {
+				message = '<a href="https://issues.apache.org/ooo/show_bug.cgi?id=' + RegExp.$2 +
'">' + RegExp.$1 + RegExp.$2 + '</a>' + RegExp.$3;
+			}
 		}
 		
 		html += '<tr class="' + status + '"><td>' 
@@ -228,4 +229,4 @@ function onload() {
 </html>
 </xsl:template>
 </xsl:stylesheet>    
-   
\ No newline at end of file
+   



Mime
View raw message