devtools/data/cwmock.js
author Julien Cristau <julien.cristau@logilab.fr>
Thu, 22 Mar 2012 11:50:43 +0100
branchstable
changeset 8327 4d76492508f3
parent 5950 f84dba9b8eca
permissions -rw-r--r--
[devtools] make xvfb-run not wait 3s each time (closes #2265710) Ask Xvfb to tell us when it's ready instead of unconditionally waiting 3 seconds. Sync from http://anonscm.debian.org/gitweb/?p=pkg-xorg/xserver/xorg-server.git;a=blob_plain;f=debian/local/xvfb-run;hb=HEAD

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