diff --git a/ui/tests/index.html b/ui/tests/index.html index b3924ce024c..232921f342c 100644 --- a/ui/tests/index.html +++ b/ui/tests/index.html @@ -80,5 +80,6 @@ + diff --git a/ui/tests/test.multiEdit.js b/ui/tests/test.multiEdit.js new file mode 100644 index 00000000000..bc698e1672b --- /dev/null +++ b/ui/tests/test.multiEdit.js @@ -0,0 +1,21 @@ +(function($) { + module('Mutli-edit'); + + test('Basic', function() { + var multiEdit = { + fields: { + fieldA: { label: 'fieldA' }, + fieldB: { label: 'fieldB' }, + add: { label: 'add', addButton: true } + }, + add: { + label: 'addAction', + action: function() {} + }, + dataProvider: function() {} + }; + var $multiEdit = $('
'); + + ok($multiEdit.multiEdit(multiEdit), 'Initialize multi-edit'); + }); +}(jQuery));