[IMP] use asyncTest rather than test + stop()

bzr revid: xmo@openerp.com-20110322205218-h2skfkandip8pv8u
This commit is contained in:
Xavier Morel
2011-03-22 21:52:18 +01:00
parent 77b9c7bd8b
commit 8570ae1fff
+1 -2
View File
@@ -248,7 +248,7 @@ $(document).ready(function () {
openerp = window.openerp.init();
}
});
test('Get pre-set active_ids', 6, function () {
asyncTest('Get pre-set active_ids', 6, function () {
var dataset = new openerp.base.DataSet({
rpc: function (url, params, on_success) {
equal(url, '/base/dataset/get');
@@ -260,7 +260,6 @@ $(document).ready(function () {
));
}
});
stop(500);
dataset.select([1, 2, 3]);
dataset.on_active_ids.add(function (data_records) {
equal(data_records.length, 3);