From 52fc9a24a656939902f42ef87705201c5456efec Mon Sep 17 00:00:00 2001 From: Yannick Tivisse Date: Wed, 10 Jul 2019 14:14:45 +0200 Subject: [REM] web: Remove toggle_button widget This widget is not used anymore, as all the stat buttons have been removed from the views. --- .../web/static/tests/fields/basic_fields_tests.js | 33 ---------------------- 1 file changed, 33 deletions(-) (limited to 'addons/web/static/tests/fields/basic_fields_tests.js') 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: '
' + - '
' + - '' + - '
' + - '
', - 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) { -- cgit v1.2.3