summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/fields
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2017-08-25 18:44:09 +0200
committerAaron Bohy <aab@odoo.com>2017-08-25 18:55:50 +0200
commitdc07fc8baca782734215e25ef9ea6674cfb845bf (patch)
treedd87b7ebf8e71e153ba198070680e0f8a9017834 /addons/web/static/tests/fields
parent0c1c93002c9bba02ae6a95d0af3b4706d0870a17 (diff)
[FIX] barcodes: tests: don't add undefined widget to registry
Resetting the key 'test_barcode_handler' to its value before the test was technically the best solution, as a test should leave the environment unchanged. However, in this case, the widget is undefined (there is obviously no 'test_barcode_handler'). Whereas this should not be a problem (the fields in the registry are supposed to be accessed using get(), and the presence of a key mapping undefined is equivalent to the absence of the key in this case), this breaks a test in Studio if the latter one is executed after the barcode test. This is because Studio browses the map of the field registry to access each field's prototype. When it encounters an undefined value, it crashes.
Diffstat (limited to 'addons/web/static/tests/fields')
0 files changed, 0 insertions, 0 deletions