summaryrefslogtreecommitdiff
path: root/jarmon/jarmon.test.js
diff options
context:
space:
mode:
authorRichard Wall <richard@largo>2010-12-31 13:23:09 +0000
committerRichard Wall <richard@largo>2010-12-31 13:23:09 +0000
commit0b6a4a8cd443b6d0a4ac9ffc42e4e094ed5bfe9b (patch)
treef4d403e894eda250277a6de08a96f4f6568f1e8b /jarmon/jarmon.test.js
parent9fd4c47c8e3d87efd89acab8c1b59a5f526506d4 (diff)
A skeleton chart editing control
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,