devtools/data/cwmock.js
author Christophe de Vienne <christophe@unlish.com>
Wed, 28 Jan 2015 09:46:55 +0100
changeset 10274 1f84295bfe95
parent 5950 f84dba9b8eca
permissions -rw-r--r--
[webrequest] Lazy-load search_state - The update_search_state function will hit the session data only if __mode is present in the form. - set_search_state keep the same semantics - Direct access to search_state in the session data is changed by an access to the new property. Closes #4875761

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