diff options
author | Richard Wall <richard@largo> | 2010-12-30 00:37:31 +0000 |
---|---|---|
committer | Richard Wall <richard@largo> | 2010-12-30 00:37:31 +0000 |
commit | c71886f059b6d2ad68f55a37c891f26898a5c7be (patch) | |
tree | 141d330ca9fbdb3ae5946a7e22830cf070080eeb /jarmon/jarmon.test.js | |
parent | 579605cb677a0345688c5421b0075b26111c4393 (diff) |
Refactor rrdqueryremote to allow a new query for available data sources.
Diffstat (limited to 'jarmon/jarmon.test.js')
-rw-r--r-- | jarmon/jarmon.test.js | 14 |
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, |