devtools/data/cwmock.js
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 03 May 2011 17:43:53 +0200
changeset 7301 93e96700e0c0
parent 5950 f84dba9b8eca
permissions -rw-r--r--
[configuration] exit with proper message when sources file is unreadable (you usually started cw while logged with a wrong user). Closes #1631238

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