[TEST] that selectable=false leads to no insertion of selection checkbox

bzr revid: xmo@openerp.com-20110407123824-6zys5lutnqt90zya
This commit is contained in:
Xavier Morel
2011-04-07 14:38:24 +02:00
parent ee6df3ca58
commit acaf85e762
+14 -1
View File
@@ -44,5 +44,18 @@ $(document).ready(function () {
start();
});
});
asyncTest('render no checkbox if selectable=false', 1, function () {
var listview = new openerp.base.ListView(
{}, null,
'qunit-fixture', {model: null}, false,
{selectable: false});
listview.on_loaded(fvg);
listview.do_fill_table([{}, {}, {}]).then(function () {
equal(listview.$element.find('tbody th').length, 0);
start();
});
});
});