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.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/jarmon/jarmon.test.js b/jarmon/jarmon.test.js
index 18b82d4..ee9c7bb 100644
--- a/jarmon/jarmon.test.js
+++ b/jarmon/jarmon.test.js
@@ -447,6 +447,25 @@ YUI({ logInclude: { TestRunner: true } }).use('console', 'test', function(Y) {
}));
+ Y.Test.Runner.add(new Y.Test.Case({
+ name: "jarmon.ChartEditor",
+
+ setUp: function() {
+ this.$tpl = $('<div/>').appendTo($('body'))
+ var c = new jarmon.ChartEditor(this.$tpl);
+ c.drawChartEditForm();
+ },
+
+ test_drawInitialForm: function () {
+ /**
+ * Test that the initial config form contains an rrd form field
+ **/
+ Y.Assert.areEqual(
+ this.$tpl.find('form input[name=rrd_url]').size(), 1);
+ }
+ }));
+
+
//initialize the console
var yconsole = new Y.Console({
newestOnTop: false,