devtools/data/cwmock.js
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Tue, 08 Oct 2013 14:02:28 +0200
changeset 9284 4c37808fd284
parent 5950 f84dba9b8eca
permissions -rw-r--r--
[js] add a selector string escaping function will help use id strings in jquery selector expressions, e.g: "foo.[subject]:42" -> "foo\.\[subject\]\:42" Related to #3154531.

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