summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Wall <richard@largo>2010-11-28 14:50:38 +0000
committerRichard Wall <richard@largo>2010-11-28 14:50:38 +0000
commit7bcfbd72d1ded68fdd55a49a0b90e226eb8ceed1 (patch)
tree358eaaf1920879504c5b58487bc7f5d9cbd59b0e
parent834649eb48062724a1f66c0c7473fb93f743bf74 (diff)
The beginnings of a test for jarmon.Chart
-rw-r--r--jarmon/jarmon.test.js17
1 files changed, 3 insertions, 14 deletions
diff --git a/jarmon/jarmon.test.js b/jarmon/jarmon.test.js
index bab708d..c838023 100644
--- a/jarmon/jarmon.test.js
+++ b/jarmon/jarmon.test.js
@@ -279,21 +279,10 @@ YUI({ logInclude: { TestRunner: true } }).use('console', 'test', function(Y) {
Y.Test.Runner.add(new Y.Test.Case({
name: "jarmon.Chart",
- XsetUp: function() {
- this.d = new jarmon.downloadBinary('build/test.rrd')
- .addCallback(
- function(self, binary) {
- return new RRDFile(binary);
- }, this)
- .addErrback(
- function(ret) {
- console.log(ret);
- });
- },
-
test_draw: function () {
/**
- *
+ * Test that a rendered chart has the correct dimensions, legend,
+ * axis, labels etc
**/
var $tpl = $('<div><div class="chart"></div></div>').appendTo($('body'));
var c = new jarmon.Chart($tpl, jarmon.Chart.BASE_OPTIONS);
@@ -304,7 +293,7 @@ YUI({ logInclude: { TestRunner: true } }).use('console', 'test', function(Y) {
d.addCallback(
function(self) {
self.resume(function() {
- Y.Assert.areEqual(1, 1);
+ // TODO: write useful tests
});
}, this);
this.wait();