testfunc/test/test_jscript.py
brancholdstable
changeset 8879 982a49239420
parent 8878 a71d3928443b
child 8880 1cad6662e199
child 11843 c0a49a137217
equal deleted inserted replaced
8878:a71d3928443b 8879:982a49239420
     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             "../../web/data/cubicweb.js",
       
    11             "../../web/data/cubicweb.compat.js",
       
    12             "../../web/data/cubicweb.python.js",
       
    13             "jstests/utils.js",
       
    14             ),
       
    15          ),
       
    16 
       
    17         ("jstests/test_htmlhelpers.js", (
       
    18             "../../web/data/cubicweb.js",
       
    19             "../../web/data/cubicweb.compat.js",
       
    20             "../../web/data/cubicweb.python.js",
       
    21             "../../web/data/cubicweb.htmlhelpers.js",
       
    22             ),
       
    23          ),
       
    24 
       
    25         ("jstests/test_ajax.js", (
       
    26             "../../web/data/cubicweb.python.js",
       
    27             "../../web/data/cubicweb.js",
       
    28             "../../web/data/cubicweb.compat.js",
       
    29             "../../web/data/cubicweb.htmlhelpers.js",
       
    30             "../../web/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()