unittests/tests/utils.js
branchpopcorn-port
changeset 361 15074091bdba
parent 308 495ef0f3e483
child 362 0b1bf06c28ed
--- a/unittests/tests/utils.js	Wed Nov 30 12:23:53 2011 +0100
+++ b/unittests/tests/utils.js	Wed Nov 30 14:27:39 2011 +0100
@@ -46,4 +46,10 @@
     var output = "<a href='http://twitter.com/handle'>@handle</a> <a href='http://twitter.com/bundle'>@bundle</a> <a href='http://twitter.com/search?q=%23hashtag'>#hashtag</a> <a href='http://t.co/11111'>http://t.co/11111</a>";
     equal(IriSP.formatTweet(input), output, "the correct output is given");
   });
-}
\ No newline at end of file
+
+  test("test function to convert decimal color to hexadecimal", function() {
+    equal(IriSP.DEC_HEXA_COLOR(125), "7D", "first test passes");
+    equal(IriSP.DEC_HEXA_COLOR(24345), "5F19", "second test passes");
+
+  });
+}