web/test/jstests/test_ajax.html
author Nicolas Chauvat <nicolas.chauvat@logilab.fr>
Fri, 14 Mar 2014 11:20:53 +0100
changeset 9571 aaf83cc07eed
parent 8879 982a49239420
permissions -rw-r--r--
[web] implement cross origin resource sharing (CORS) (closes #2491768) Partial implementation that is enough to get started but leaves out some of the advanced features like caching and non-simple methods and headers.

<html>
  <head>
    <!-- dependencies -->
    <script type="text/javascript">
      var JSON_BASE_URL = '';
    </script>
    <script type="text/javascript" src="../../data/jquery.js"></script>
    <script src="../../data/cubicweb.js" type="text/javascript"></script>
    <script src="../../data/cubicweb.htmlhelpers.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="../../data/cubicweb.ajax.js" type="text/javascript"></script>
    <!-- qunit files -->
    <script type="text/javascript" src="../../../devtools/data/qunit.js"></script>
    <link rel="stylesheet" type="text/css" media="all" href="../../../devtools/data/qunit.css" />
    <!-- test suite -->
    <script src="cwmock.js" type="text/javascript"></script>
    <script src="test_ajax.js" type="text/javascript"></script>
  </head>
  <body>
    <div id="main"> </div>
    <h1 id="qunit-header">cubicweb.ajax.js functions tests</h1>
    <h2 id="qunit-banner"></h2>
    <ol id="qunit-tests">
  </body>
</html>