diff --git a/addons/web/controllers/testing.py b/addons/web/controllers/testing.py index 932da58fa07..63eac97f9e0 100644 --- a/addons/web/controllers/testing.py +++ b/addons/web/controllers/testing.py @@ -61,8 +61,8 @@ TESTING = Template(u"""
- - + +${bundle('web.assets_backend') | n} % for module, jss, tests, templates in files: % for js in jss: % if not js.endswith('/apps.js'): @@ -134,10 +134,16 @@ class TestRunnerController(http.Controller): for mod, tests in itertools.izip(sorted_mods, tests) ] - return TESTING.render(files=files, dependencies=json.dumps( + def bundle(xmlid): + return request.render(xmlid, lazy=False) + + return TESTING.render(bundle=bundle, files=files, dependencies=json.dumps( [name for name in sorted_mods if module.get_module_resource(name, 'static') - if manifests[name]['js']])) + # TODO fme: find a way to detect modules with js bundles + # if manifests[name]['js'] + ])) + def load_manifest(self, name): manifest = module.load_information_from_description_file(name)