From 7bcfbd72d1ded68fdd55a49a0b90e226eb8ceed1 Mon Sep 17 00:00:00 2001 From: Richard Wall Date: Sun, 28 Nov 2010 14:50:38 +0000 Subject: The beginnings of a test for jarmon.Chart --- jarmon/jarmon.test.js | 17 +++-------------- 1 file 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 = $('
').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(); -- cgit v1.2.3