[refactor][xs]: rename view test to view-grid test.

This commit is contained in:
Rufus Pollock
2012-04-13 19:02:11 +01:00
parent 3f509b46dc
commit 92f1fba38d
2 changed files with 2 additions and 2 deletions

View File

@@ -1,25 +0,0 @@
(function ($) {
module("View");
test('new DataGridRow View', function () {
var $el = $('<tr />');
$('.fixtures .test-datatable').append($el);
var doc = new recline.Model.Document({
'id': 1,
'b': '2',
'a': '1'
});
var view = new recline.View.DataGridRow({
model: doc
, el: $el
, fields: new recline.Model.FieldList([{id: 'a'}, {id: 'b'}])
});
view.render();
ok($el.attr('data-id'), '1');
var tds = $el.find('td');
equal(tds.length, 3);
equal($(tds[1]).attr('data-field'), 'a');
});
})(this.jQuery);