devtools/data/cwmock.js
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Mon, 04 Nov 2013 16:06:06 +0100
changeset 9378 4a668dcfa0a0
parent 5950 f84dba9b8eca
permissions -rw-r--r--
[views/templates] provide a modal main template (closes #3274672) The current NonTemplatableViewTemplate may seem to provide the desired feature if a '__notemplate' is provided in the form, unfortunately, it: * wraps the view in a spurious div * calls view.set_stream(), which has the effect of wiping any js/css resource recorded until then by the view, leading to hard-to-track missing resources symptoms

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