devtools/data/cwmock.js
author Julien Cristau <julien.cristau@logilab.fr>
Fri, 06 Sep 2013 11:01:20 +0200 (2013-09-06)
branchstable
changeset 9235 3eb8d65824f5
parent 5950 f84dba9b8eca
permissions -rw-r--r--
[devtools] fix race when creating backupdir If somebody else creates backupdir between our stat() and mkdir() (like, say, another test running in parallel), we shouldn't crash.
/*
 * 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;
}