testfunc/test/jstests/test_utils.html
author Rémi Cardona <remi.cardona@logilab.fr>
Wed, 13 Mar 2013 18:36:49 +0100
branchstable
changeset 8730 d4d9f33fd01b
parent 7363 2293c49b290a
permissions -rw-r--r--
[web/request] Prune extraneous 'pageid' from generated ajax URL parameters (closes #2758130) If 'pageid' is given through extraparams, it is sent twice to the browser. On the JS side, the final URL loadxhtml() will end up using will have 'pageid' set twice which CubicWeb will readily accept as a list. Pruning this parameter makes sure it is exactly once.

<html>
  <head>
    <script type="text/javascript" src="../../data/jquery.js"></script>
    <script src="../../data/jquery.corner.js" type="text/javascript"></script>
    <script src="../../data/cubicweb.js" type="text/javascript"></script>
    <script src="../../data/cubicweb.python.js" type="text/javascript"></script>
    <script src="../../data/cubicweb.compat.js" type="text/javascript"></script>
    <script src="utils.js" type="text/javascript"></script>
    <script type="text/javascript" src="qunit.js"></script>
    <link rel="stylesheet" type="text/css" media="all" href="qunit.css" />
    <script src="cwmock.js" type="text/javascript"></script>
    <script src="test_utils.js" type="text/javascript"></script>
  </head>
  <body>
    <div id="main">
    </div>
    <h1 id="qunit-header">cw.utils functions tests</h1>
    <h2 id="qunit-banner"></h2>
    <h2 id="qunit-userAgent"></h2>
    <ol id="qunit-tests">
  </body>
</html>