web/test/test_jscript.py
branchstable
changeset 5994 97c55baefa0c
parent 5766 c397819f2482
equal deleted inserted replaced
5976:00b1b6b906cf 5994:97c55baefa0c
       
     1 from cubicweb.devtools.qunit import QUnitTestCase, unittest_main
       
     2 
       
     3 from os import path as osp
       
     4 
       
     5 
       
     6 class JScript(QUnitTestCase):
       
     7 
       
     8     all_js_tests = (
       
     9         ("jstests/test_utils.js", (
       
    10             "../data/cubicweb.js",
       
    11             "../data/cubicweb.compat.js",
       
    12             "../data/cubicweb.python.js",
       
    13             "jstests/utils.js",
       
    14             ),
       
    15          ),
       
    16 
       
    17         ("jstests/test_htmlhelpers.js", (
       
    18             "../data/cubicweb.js",
       
    19             "../data/cubicweb.compat.js",
       
    20             "../data/cubicweb.python.js",
       
    21             "../data/cubicweb.htmlhelpers.js",
       
    22             ),
       
    23          ),
       
    24 
       
    25         ("jstests/test_ajax.js", (
       
    26             "../data/cubicweb.python.js",
       
    27             "../data/cubicweb.js",
       
    28             "../data/cubicweb.compat.js",
       
    29             "../data/cubicweb.htmlhelpers.js",
       
    30             "../data/cubicweb.ajax.js",
       
    31             ), (
       
    32             "jstests/ajax_url0.html",
       
    33             "jstests/ajax_url1.html",
       
    34             "jstests/ajax_url2.html",
       
    35             "jstests/ajaxresult.json",
       
    36             ),
       
    37          ),
       
    38     )
       
    39 
       
    40 
       
    41 if __name__ == '__main__':
       
    42     unittest_main()