devtools/data/cwmock.js
author Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
Mon, 28 Mar 2011 15:23:57 +0200
branchstable
changeset 7117 44775b275d45
parent 5950 f84dba9b8eca
permissions -rw-r--r--
[facets] closes #1569459 (date-range facet with year < 1900) use lgc.date.ustrftime() and lgc.date.ticks2datetime to convert js date ticks and have a chance to handle dates with year < 1900.

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