summaryrefslogtreecommitdiff
path: root/jarmon/jarmon.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'jarmon/jarmon.test.js')
-rw-r--r--jarmon/jarmon.test.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/jarmon/jarmon.test.js b/jarmon/jarmon.test.js
index c838023..fda076f 100644
--- a/jarmon/jarmon.test.js
+++ b/jarmon/jarmon.test.js
@@ -301,6 +301,20 @@ YUI({ logInclude: { TestRunner: true } }).use('console', 'test', function(Y) {
}));
+ Y.Test.Runner.add(new Y.Test.Case({
+ name: "jarmon.ChartConfig",
+
+ test_draw: function () {
+ /**
+ * Test that a rendered chart has the correct dimensions, legend,
+ * axis, labels etc
+ **/
+ var c = new jarmon.ChartConfig($('<div/>').appendTo($('body')));
+ c.draw();
+ },
+ }));
+
+
//initialize the console
var yconsole = new Y.Console({
newestOnTop: false,