added tests for DEC_TO_HEXA. popcorn-port
authorhamidouk
Wed, 30 Nov 2011 14:27:39 +0100
branchpopcorn-port
changeset 361 15074091bdba
parent 360 326fd52d95bb
child 362 0b1bf06c28ed
added tests for DEC_TO_HEXA.
unittests/tests/utils.js
--- 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");
+
+  });
+}