diff options
| author | Yannick Tivisse <yti@odoo.com> | 2019-07-10 14:14:45 +0200 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-07-12 13:01:36 +0200 |
| commit | 52fc9a24a656939902f42ef87705201c5456efec (patch) | |
| tree | 79c55955f7559c3fda18ade8b23fc10ae58fb528 /addons/web/static/tests/fields/basic_fields_tests.js | |
| parent | f896afcc8a54eae3efcdf034e3fd256942f7fa78 (diff) | |
[REM] web: Remove toggle_button widget
This widget is not used anymore, as all the stat buttons have been removed
from the views.
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
| -rw-r--r-- | addons/web/static/tests/fields/basic_fields_tests.js | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/addons/web/static/tests/fields/basic_fields_tests.js b/addons/web/static/tests/fields/basic_fields_tests.js index c65873cc2c6..3699142971e 100644 --- a/addons/web/static/tests/fields/basic_fields_tests.js +++ b/addons/web/static/tests/fields/basic_fields_tests.js @@ -320,39 +320,6 @@ QUnit.module('basic_fields', { list.destroy(); }); - - QUnit.module('FieldBooleanButton'); - - QUnit.test('use custom terminology in form view', async function (assert) { - assert.expect(2); - var terminology = { - string_true: "Production Environment", - hover_true: "Switch to test environment", - string_false: "Test Environment", - hover_false: "Switch to production environment" - }; - var form = await createView({ - View: FormView, - model: 'partner', - data: this.data, - arch: '<form>' + - '<div name="button_box" class="oe_button_box">' + - '<button type="object" class="oe_stat_button" icon="fa-check-square">' + - '<field name="bar" widget="boolean_button" options=\'{"terminology": ' + - JSON.stringify(terminology) + '}\'/>' + - '</button>' + - '</div>' + - '</form>', - res_id: 2, - }); - - assert.containsOnce(form, ".o_stat_text.o_not_hover:contains(Production Environment)", - "button should contain correct string"); - assert.containsOnce(form, ".o_stat_text.o_hover:contains(Switch to test environment)", - "button should display correct string when hovering"); - form.destroy(); - }); - QUnit.module('FieldBooleanToggle'); QUnit.test('use boolean toggle widget in form view', async function (assert) { |
