devtools/data/cwmock.js
author Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
Tue, 10 Aug 2010 08:39:06 +0200
changeset 6082 57933567146f
parent 5950 f84dba9b8eca
permissions -rw-r--r--
[forms] callable field kwargs now always take form _and_ field parameters + make help kwargs accept a callable too

/*
 * 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;
}