mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[MIG] web_widget_float_formula: v9 with i18n
* Update JS to use v9 module system * Fix non-functioning logic for obtaining the value of an input element * Eliminate redundant calls (e.g. there were multiple calls to eval) * Modify formula cleanup to use localized decimal point and thousands separator characters * Add JS unit tests
This commit is contained in:
5
web_widget_float_formula/tests/__init__.py
Normal file
5
web_widget_float_formula/tests/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright 2016 LasLabs Inc.
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from . import test_js
|
||||
15
web_widget_float_formula/tests/test_js.py
Normal file
15
web_widget_float_formula/tests/test_js.py
Normal file
@@ -0,0 +1,15 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright 2016 LasLabs Inc.
|
||||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
|
||||
|
||||
from openerp.tests import HttpCase
|
||||
|
||||
|
||||
class TestJS(HttpCase):
|
||||
|
||||
def test_js(self):
|
||||
self.phantom_js(
|
||||
"/web/tests?module=web_widget_float_formula",
|
||||
"",
|
||||
login="admin",
|
||||
)
|
||||
Reference in New Issue
Block a user