From d99e80f92a6f8d940958c6bdb652b2ce4e1deea4 Mon Sep 17 00:00:00 2001 From: Julien Mougenot Date: Fri, 20 Sep 2019 12:00:06 +0000 Subject: [FIX] web: column resize trying to freeze the list Before this commit, resizing a column would cause the list to develop a mind of its own and to grow/shrink random columns according to its own will. Now, resizing a column does not "freeze" the list anymore and simply gives a static width to the resized column. --- addons/web/static/tests/views/list_tests.js | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'addons/web/static/tests') diff --git a/addons/web/static/tests/views/list_tests.js b/addons/web/static/tests/views/list_tests.js index 70c83df49ae..277a980bb4d 100644 --- a/addons/web/static/tests/views/list_tests.js +++ b/addons/web/static/tests/views/list_tests.js @@ -1637,7 +1637,7 @@ QUnit.module('Views', { }); QUnit.test('editable list: list view in an initially unselected notebook page', async function (assert) { - assert.expect(9); + assert.expect(8); this.data.foo.records = [{ id: 1, o2m: [1] }]; this.data.bar = { @@ -1746,23 +1746,6 @@ QUnit.module('Views', { "list has been correctly frozen after sorting a column"); form.destroy(); - - // Case 5: resize a column - form = await createView(formOptions); - await testUtils.dom.click(form.$('.nav-item:last-child .nav-link')); - - const resizeHandle = form.$('.o_resize')[0]; - await testUtils.dom.dragAndDrop(resizeHandle, resizeHandle, { - mousemoveTarget: window, - mouseupTarget: window, - }); - [titi, grosminet] = form.$('th'); - assert.ok( - titi.style.width.split('px')[0] > 80 && - grosminet.style.width.split('px')[0] > 700, - "list has been correctly frozen after resizing a column"); - - form.destroy(); }); QUnit.test('editable list: list view hidden by an invisible modifier', async function (assert) { -- cgit v1.2.3