summaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorFreeyorp <TheFreeYorp@NOSPAM.G.m.a.i.l.replace>2013-06-25 23:26:50 +1200
committerFreeyorp <TheFreeYorp@NOSPAM.G.m.a.i.l.replace>2013-06-25 23:26:50 +1200
commit2cf8ba330dc60fa4c269c4fdb16716a1d9ad1e90 (patch)
tree5f0b36d1e8ebabcd989011ae98d4ed8121caf01b /package.json
parent3953b0496e101e0ecd80672af45abbd63cf3fd1f (diff)
downloadmanaportal-2cf8ba330dc60fa4c269c4fdb16716a1d9ad1e90.tar.gz
manaportal-2cf8ba330dc60fa4c269c4fdb16716a1d9ad1e90.tar.bz2
manaportal-2cf8ba330dc60fa4c269c4fdb16716a1d9ad1e90.tar.xz
manaportal-2cf8ba330dc60fa4c269c4fdb16716a1d9ad1e90.zip
Add dye API, canvas loading, future tests
The provisional API generates structured dye data from a dye string, and dyes an image when provided dyeable image data and the associated dyeing data. The splitting of an image URI and the dye string should probably be handled by a resource manager. Tests are distinguished between stable tests and future tests. Stable tests should pass at all times. Future tests should pass once implemented, and be moved to stable test suites. To run the future tests as well, run ./todo.sh. The current logic to load and extract image data should probably be refactored out from the test file and into some common file or resource manager file. Might need a custom assertion function for comparing image data to avoid flooding the console if something doesn't fully match. Finally, declare "use strict".
Diffstat (limited to 'package.json')
-rw-r--r--package.json5
1 files changed, 3 insertions, 2 deletions
diff --git a/package.json b/package.json
index 661b533..cca8995 100644
--- a/package.json
+++ b/package.json
@@ -6,9 +6,10 @@
"smash": "~0.0.8",
"uglify-js": "2.2.x",
"vows": "0.7.x",
- "jsdom": "0.5.x"
+ "jsdom": "0.5.x",
+ "canvas": "1.0.x"
},
"scripts": {
- "test": "node_modules/vows/bin/vows --spec 'test/*/*.js$'"
+ "test": "ls test/*/*.js | grep -v 'future\\.js$' | xargs node_modules/vows/bin/vows"
}
}