diff options
| author | Sébastien Theys <seb@odoo.com> | 2019-05-23 14:47:40 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2019-05-27 16:32:52 +0000 |
| commit | 8ab696dc824bdcb832d81f2540dd7030dd291d0a (patch) | |
| tree | 8a62cf0a31f9dfd6305991b02d87dea334689bf1 /addons/web_editor/static/tests/field_html_tests.js | |
| parent | d25d3324e2ae105429a965c8f9cfb08c861e95d9 (diff) | |
[IMP] web_editor, web_unsplash: split media widget (image & document)
The common code is kept in a generic File widget, while the split allows for
easier customization.
PR: #33509
Diffstat (limited to 'addons/web_editor/static/tests/field_html_tests.js')
| -rw-r--r-- | addons/web_editor/static/tests/field_html_tests.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/addons/web_editor/static/tests/field_html_tests.js b/addons/web_editor/static/tests/field_html_tests.js index 5c7bd70d117..477519d4060 100644 --- a/addons/web_editor/static/tests/field_html_tests.js +++ b/addons/web_editor/static/tests/field_html_tests.js @@ -193,21 +193,6 @@ QUnit.module('web_editor', {}, function () { if (args.method === "generate_access_token") { return Promise.resolve(); } - if (args.kwargs.domain[7][2].join(',') === "image/gif,image/jpe,image/jpeg,image/jpg,image/gif,image/png") { - return Promise.resolve([{ - "id": 1, - "public": true, - "name": "image", - "datas_fname": "image.png", - "mimetype": "image/png", - "checksum": false, - "url": "/web_editor/static/src/img/transparent.png", - "type": "url", - "res_id": 0, - "res_model": false, - "access_token": false - }]); - } } return this._super(route, args); }, |
