From 90873e5c3eead6cc0927d067f3c3da3f5fd5f49c Mon Sep 17 00:00:00 2001
From: Cinder <cinder.roxley@phoenixviewer.com>
Date: Sat, 16 Aug 2014 11:10:28 -0600
Subject: [PATCH] Jira highlighting tests

---
 indra/llui/tests/llurlentry_test.cpp | 39 ++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/indra/llui/tests/llurlentry_test.cpp b/indra/llui/tests/llurlentry_test.cpp
index c3f0e92cb0..9d92cff725 100755
--- a/indra/llui/tests/llurlentry_test.cpp
+++ b/indra/llui/tests/llurlentry_test.cpp
@@ -846,4 +846,43 @@ namespace tut
 			"secondlife:///app/region/Product%20Engine",
 			"Product Engine");
 	}
+	
+	template<> template<>
+	void object::test<14>()
+	{
+		//
+		// test LLUrlEntryJira - Jira highlighting
+		//
+		LLUrlEntryJira jira;
+		testRegex("Jira ALCH-6969", jira,
+				  "XXX ALCH-6969 XXX",
+				  "http://alchemy.atlassian.net/browse/ALCH-6969");
+		testRegex("Jira STORM-991", jira,
+				  "XXX STORM-991 XXX",
+				  "http://jira.secondlife.com/browse/STORM-991");
+		testRegex("Jira OPEN-22", jira,
+				  "XXX OPEN-22 XXX",
+				  "http://jira.secondlife.com/browse/OPEN-22");
+		testRegex("Jira BUG-3930244", jira,
+				  "XXX BUG-3930244 XXX",
+				  "http://jira.secondlife.com/browse/BUG-3930244");
+		testRegex("Jira Fireshits", jira,
+				  "XXX FIRE-93013 XXX",
+				  "http://jira.phoenixviewer.com/browse/FIRE-93013");
+		testLabel("Jira ALCH-6969", jira,
+				  "http://alchemy.atlasian.net/browse/ALCH-6969",
+				  "ALCH-6969");
+		testLabel("Jira STORM-991", jira,
+				  "http://jira.secondlife.com/browse/STORM-991",
+				  "STORM-991");
+		testLabel("Jira OPEN-22", jira,
+				  "http://jira.secondlife.com/browse/OPEN-22",
+				  "OPEN-22");
+		testLabel("Jira BUG-3930244", jira,
+				  "http://jira.secondlife.com/browse/BUG-3930244",
+				  "BUG-3930244");
+		testLabel("Jira Fireshits", jira,
+				  "http://jira.phoenixviewer.com/browse/FIRE-93013",
+				  "FIRE-93013");
+	}
 }
-- 
GitLab