From 56e8e0673cb936a0793d57e4037cb49af407e8de Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Mon, 26 Mar 2012 14:07:37 -0700 Subject: [PATCH] Add basic multi-edit widget test --- ui/tests/index.html | 1 + ui/tests/test.multiEdit.js | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 ui/tests/test.multiEdit.js 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));