aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDanny van Heumen <danny@dannyvanheumen.nl>2014-07-25 20:52:11 +0200
committerDanny van Heumen <danny@dannyvanheumen.nl>2014-07-30 18:30:05 +0200
commit44cdb68217a234f955ac844bcdb5243afc781394 (patch)
tree8c0cd7c2811107698c801f925b693da023dbcce8 /test
parentb41a7b7b043c425913a15efaea4aefea8638f306 (diff)
downloadjitsi-44cdb68217a234f955ac844bcdb5243afc781394.zip
jitsi-44cdb68217a234f955ac844bcdb5243afc781394.tar.gz
jitsi-44cdb68217a234f955ac844bcdb5243afc781394.tar.bz2
Warp around color codes so that it is always possible to find a color in
the Colors array.
Diffstat (limited to 'test')
-rw-r--r--test/net/java/sip/communicator/impl/protocol/irc/UtilsTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/net/java/sip/communicator/impl/protocol/irc/UtilsTest.java b/test/net/java/sip/communicator/impl/protocol/irc/UtilsTest.java
index b9d5317..5ca18a9 100644
--- a/test/net/java/sip/communicator/impl/protocol/irc/UtilsTest.java
+++ b/test/net/java/sip/communicator/impl/protocol/irc/UtilsTest.java
@@ -143,14 +143,15 @@ public class UtilsTest
public void testParseUnknownForegroundColor()
{
final String ircMessage = "\u000399TEST";
- final String htmlMessage = "99TEST";
+ final String htmlMessage = "<font color=\"Green\">TEST</font>";
Assert.assertEquals(htmlMessage, Utils.parse(ircMessage));
}
public void testParseUnknownBackgroundColor()
{
final String ircMessage = "\u000300,99TEST";
- final String htmlMessage = "<font color=\"White\">,99TEST</font>";
+ final String htmlMessage =
+ "<font color=\"White\" bgcolor=\"Green\">TEST</font>";
Assert.assertEquals(htmlMessage, Utils.parse(ircMessage));
}