summaryrefslogtreecommitdiff
path: root/addons/base_import/static/lib/javascript-state-machine
diff options
context:
space:
mode:
authorAlexandre Kühn <aku@odoo.com>2018-11-23 14:11:42 +0000
committerAlexandre Kühn <aku@odoo.com>2018-11-26 11:34:00 +0000
commitfb895f911911b813cac310bb71d2c38e51807b96 (patch)
tree532147b0c5a22cd44c5b2981d2c64afbefb7bc05 /addons/base_import/static/lib/javascript-state-machine
parentfb051d342085b4558de7cdf489527e8b888181df (diff)
[ADD] web:tests: test utils for drag/drop files
This commit adds test helper functions to drag and drop files: - `createFile`: create a file that can be used for drag and drop in tests. - `dragoverFile`: to drag a file created from `createFile` over a DOM element. - `dropFile`: to drop a file created from `createFile` on a DOM element. These utility functions are available from `testUtils.file`. Example of usage: ```js var testUtils = require('web.test_utils'); testUtils.file.createFile({ name: 'text.txt', content: 'hello, world', contentType: 'text/plain', }).then(function (file) { testUtils.file.dragoverFile($el, file); testUtils.file.dropFile($el, file); }); ```
Diffstat (limited to 'addons/base_import/static/lib/javascript-state-machine')
0 files changed, 0 insertions, 0 deletions