diff options
author | Richard Wall <richard@largo> | 2011-01-01 12:22:51 +0000 |
---|---|---|
committer | Richard Wall <richard@largo> | 2011-01-01 12:22:51 +0000 |
commit | 4b91cf5648ebddf60e793cb90ad209439b595dbd (patch) | |
tree | 9dfe8d1c472e06d0827cc4385d7d388f1eae4972 /jarmon/jarmon.test.js | |
parent | 0b6a4a8cd443b6d0a4ac9ffc42e4e094ed5bfe9b (diff) |
Allow add delete of data source records
Diffstat (limited to 'jarmon/jarmon.test.js')
-rw-r--r-- | jarmon/jarmon.test.js | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/jarmon/jarmon.test.js b/jarmon/jarmon.test.js index ee9c7bb..08ac433 100644 --- a/jarmon/jarmon.test.js +++ b/jarmon/jarmon.test.js @@ -452,7 +452,20 @@ YUI({ logInclude: { TestRunner: true } }).use('console', 'test', function(Y) { setUp: function() { this.$tpl = $('<div/>').appendTo($('body')) - var c = new jarmon.ChartEditor(this.$tpl); + var c = new jarmon.ChartEditor( + this.$tpl, + { + title: 'Foo', + datasources: [ + ['data/cpu-0/cpu-wait.rrd', 0, 'CPU-0 Wait', '%'], + ['data/cpu-1/cpu-wait.rrd', 0, 'CPU-1 Wait', '%'], + ['data/cpu-0/cpu-system.rrd', 0, 'CPU-0 System', '%'], + ['data/cpu-1/cpu-system.rrd', 0, 'CPU-1 System', '%'], + ['data/cpu-0/cpu-user.rrd', 0, 'CPU-0 User', '%'], + ['data/cpu-1/cpu-user.rrd', 0, 'CPU-1 User', '%'] + ] + } + ); c.drawChartEditForm(); }, |