[IMP] add test_ui

bzr revid: al@openerp.com-20140209232001-1efvws2pzeldbuhb
This commit is contained in:
Antony Lesuisse
2014-02-10 00:20:01 +01:00
parent 8790ae76fc
commit 85d37619e4
3 changed files with 21 additions and 0 deletions
+1
View File
@@ -2,3 +2,4 @@
import test_js
import test_menu
import test_serving_base
import test_ui
+14
View File
@@ -0,0 +1,14 @@
# -*- coding: utf-8 -*-
import os
import glob
import openerp.tests
fname, _ = os.path.splitext(__file__)
class TestUi(openerp.tests.HttpCase):
def test(self):
for i in glob.glob('%s*.js' % fname):
self.phantomjs(openerp.modules.module.get_module_resource('base','tests', i))
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
+6
View File
@@ -0,0 +1,6 @@
// Load helper
phantom.injectJs(phantom.args[0]);
pt = new PhantomTest();
pt.run_admin("/", "console.log('ok')", "console");