summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2017-05-10 14:53:42 +0200
committerGéry Debongnie <ged@odoo.com>2017-05-11 09:53:08 +0200
commit33710d540c5584926fcc061ed7e6a04d48f8166e (patch)
tree52f5e3482fd2cf6e22da05af669b7c46021a1e53 /addons/web/static/src/js/views/basic/basic_controller.js
parente1edd62320fef4991ba9554ee197021b45987a60 (diff)
[FIX] web: small fixes in test framework
We fix in this commit three small issues in the test framework. 1. throw an explicit error when we try to do a fieldviewget in the mock server with a model that does not exist. This will make it easier to figure out what went wrong when copy pasting a test from one file into another, and forgetting to change the model in the createView parameters 2. wrap the result of special methods in the mock server in a deferred, so we can simply return a value when using that functionality. Also, it is more consistent with the rest of the mock server 3. for iframes, we no longer change the src attribute to #test:url. This had the problem of actually loading the page. Instead, we change it into about:blank and we copy the old url into the data-src attribute for reference.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions