From 6faf9b76cde1cdfdb591ba3c636f384cffd691aa Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Tue, 19 Mar 2019 17:40:56 +0100 Subject: [PATCH] [FIX] web: adapt new test to new version Oversight of previous forward-port. --- addons/web/static/tests/views/pivot_tests.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/web/static/tests/views/pivot_tests.js b/addons/web/static/tests/views/pivot_tests.js index f37903b116f..5dbc03e1a2b 100644 --- a/addons/web/static/tests/views/pivot_tests.js +++ b/addons/web/static/tests/views/pivot_tests.js @@ -1118,7 +1118,7 @@ QUnit.module('Views', { pivot_row_groupby: []}; // Check that column groupbys were not lost - assert.deepEqual(pivot.getContext(), expectedContext, + assert.deepEqual(pivot.getOwnedQueryParams(), {context: expectedContext}, 'Column groupby not lost after first reload'); // Set a column groupby @@ -1132,7 +1132,7 @@ QUnit.module('Views', { pivot_measures: ['__count'], pivot_row_groupby: []}; - assert.deepEqual(pivot.getContext(), expectedContext, + assert.deepEqual(pivot.getOwnedQueryParams(), {context: expectedContext}, 'Column groupby not lost after second reload'); pivot.destroy(); @@ -1158,13 +1158,13 @@ QUnit.module('Views', { var expectedContext = {pivot_column_groupby: ['customer'], pivot_measures: ['__count'], pivot_row_groupby: []}; - assert.deepEqual(pivot.getContext(), expectedContext, + assert.deepEqual(pivot.getOwnedQueryParams(), {context: expectedContext}, 'Column groupby not lost after empty results'); // Set a domain for not empty results pivot.update({domain: [['product_id', '=', 37]]}); - assert.deepEqual(pivot.getContext(), expectedContext, + assert.deepEqual(pivot.getOwnedQueryParams(), {context: expectedContext}, 'Column groupby not lost after reload after empty results'); pivot.destroy();