[MERGE] trunk
[odoo/odoo.git] / addons / web / tests / test_ui.py
1 # -*- coding: utf-8 -*-
2 import os
3
4 import openerp.tests
5
6 class TestUi(openerp.tests.HttpCase):
7     def test_01_jsfile_ui_hello(self):
8         self.phantom_jsfile(os.path.join(os.path.dirname(__file__), 'test_ui_hello.js'))
9     def test_02_jsfile_ui_load(self):
10         self.phantom_jsfile(os.path.join(os.path.dirname(__file__), 'test_ui_load.js'))
11     def test_03_js_public(self):
12         self.phantom_js('/',"console.log('ok')","console")
13     def test_04_js_admin(self):
14         self.phantom_js('/',"console.log('ok')","openerp.client.action_manager.inner_widget.views.form", login='admin')
15
16 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: