[FIX] re-enable web_tests_demo tests
bzr revid: xmo@openerp.com-20140131152753-81418oy8wjzxkgmt
This commit is contained in:
parent
ae3223907b
commit
8be916910e
|
@ -1,7 +1,5 @@
|
||||||
|
|
||||||
// niv: I desactivate these until the testing framework has been adapted to better use
|
openerp.testing.section('basic section', function (test) {
|
||||||
// the new way to declare JavaScript modules
|
|
||||||
/*openerp.testing.section('basic section', function (test) {
|
|
||||||
test('my first test', function () {
|
test('my first test', function () {
|
||||||
ok(true, "this test has run");
|
ok(true, "this test has run");
|
||||||
});
|
});
|
||||||
|
@ -88,18 +86,18 @@
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// test('actual RPC', {rpc: 'rpc', asserts: 4}, function (instance) {
|
test('actual RPC', {rpc: 'rpc', asserts: 4}, function (instance) {
|
||||||
// var Model = new instance.web.Model('web_tests_demo.model');
|
var Model = new instance.web.Model('web_tests_demo.model');
|
||||||
// return Model.call('create', [{name: "Bob"}])
|
return Model.call('create', [{name: "Bob"}])
|
||||||
// .then(function (id) {
|
.then(function (id) {
|
||||||
// return Model.call('read', [[id]]);
|
return Model.call('read', [[id]]);
|
||||||
// }).then(function (records) {
|
}).then(function (records) {
|
||||||
// strictEqual(records.length, 1);
|
strictEqual(records.length, 1);
|
||||||
// var record = records[0];
|
var record = records[0];
|
||||||
// strictEqual(record.name, "Bob");
|
strictEqual(record.name, "Bob");
|
||||||
// strictEqual(record.thing, false);
|
strictEqual(record.thing, false);
|
||||||
// // default value
|
// default value
|
||||||
// strictEqual(record.other, 'bob');
|
strictEqual(record.other, 'bob');
|
||||||
// });
|
});
|
||||||
// });
|
});
|
||||||
});*/
|
});
|
||||||
|
|
Loading…
Reference in New Issue