devtools/data/cwmock.js
author Denis Laxalde <denis.laxalde@logilab.fr>
Mon, 16 Jun 2014 10:08:32 +0200
changeset 9965 a8769b752299
parent 5950 f84dba9b8eca
permissions -rw-r--r--
[CWEP002] Account for attribute formula in schema bootstrap This isn't enough to have computed attribute support, it is only in order not to crash when yams 0.40 is used. Related to #3546717.

/*
 * cubicweb js mock for unit tests
 * This module defines variables and functions used in quite a few places
 * in cw js framework that can't be used or guessed without a real CW server
 */

var pageid = 'my-page-id';

function _(message) {
    return message;
}