diff options
| author | Alexandre Kühn <aku@odoo.com> | 2018-04-05 14:13:33 +0200 |
|---|---|---|
| committer | Alexandre Kühn <aku@odoo.com> | 2018-04-05 14:57:49 +0200 |
| commit | fef6d7967f31b38abc96b97a67c0265be4c371aa (patch) | |
| tree | 224400cacc566889f7d049c14bc9bf7113a7e5f4 /addons/web/static/src/js/views/graph/graph_view.js | |
| parent | fd4939dc7865f5cbe06e47f423961219ffe1379e (diff) | |
[FIX] mail: various discuss test fixes
This commit fixes two issues with discuss tests (JS):
1. Improved mocked `message_fetch` rpc
Some tests were incorrectly mocking the `message_fetch` rpc.
With this commit, the mock server correctly mock this route,
so that tests should simply pass the records as data, and the
mock server correctly handles this rpc.
2. Patch `_.debounce` and `_.throttle`
The test "older messages are loaded on scroll" failed with
Google Chrome right after destroying the widget discuss.
This is due to a debounced function that called its inner
function at this moment.
With this commit, any discuss test patch `_.debounce` and
`_.throttle` so that the inner functions are executed
immediately and synchronously.
Diffstat (limited to 'addons/web/static/src/js/views/graph/graph_view.js')
0 files changed, 0 insertions, 0 deletions
