summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreeyorp <TheFreeYorp@NOSPAM.G.m.a.i.l.replace>2013-06-28 17:48:07 +1200
committerFreeyorp <TheFreeYorp@NOSPAM.G.m.a.i.l.replace>2013-06-28 17:48:07 +1200
commit5f5b7a43a0c9f4506cebb15d260a2e05d96d9104 (patch)
tree3582f11547b67893f2350fa04171b1bc9efecc38
parent15462cc5f1ed02c0614476bf85de66edeec98801 (diff)
downloadmanaportal-5f5b7a43a0c9f4506cebb15d260a2e05d96d9104.tar.gz
manaportal-5f5b7a43a0c9f4506cebb15d260a2e05d96d9104.tar.bz2
manaportal-5f5b7a43a0c9f4506cebb15d260a2e05d96d9104.tar.xz
manaportal-5f5b7a43a0c9f4506cebb15d260a2e05d96d9104.zip
Add test for asDyeString
-rw-r--r--test/mp/future.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/mp/future.js b/test/mp/future.js
index 3d47c28..25f7a21 100644
--- a/test/mp/future.js
+++ b/test/mp/future.js
@@ -62,10 +62,15 @@ suite.addBatch({
"The manaportal dye": {
topic: load("mp/dye", "mp/resource").expression("mp").document(),
"parseDyeString": {
- "Extracts the dye channel data from the dyestring": function(mp) {
+ "extracts the dye channel data from the dyestring": function(mp) {
assert.equal(mp.dye.parseDyeString(dyeString), dyeData);
}
},
+ "asDyeString": {
+ "reconstructs the dyestring from the dye channel data": function(mp) {
+ assert.equal(mp.dye.asDyeString(dyeData), dyeString);
+ }
+ },
"dyeImage": {
"with the big recolorable cake": unshiftLoadImageBind("test/data/bigcake.png", {
"to the big white cake dyed by TMWW": unshiftLoadImageBind("test/data/whitecake.png", {