[IMP] developer: list content of browser object (js)
closes odoo/documentation#1312
X-original-commit: d761910466
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
This commit is contained in:
parent
d015bc03fa
commit
eb9cd7558c
@ -553,7 +553,7 @@ Browser Object
|
||||
==============
|
||||
|
||||
The javascript framework also provides a special object ``browser`` that
|
||||
provides access to all browser APIs, like ``location``, ``localStorage``
|
||||
provides access to many browser APIs, like ``location``, ``localStorage``
|
||||
or ``setTimeout``. For example, here is how one could use the
|
||||
``browser.setTimeout`` function:
|
||||
|
||||
@ -568,6 +568,32 @@ It is mostly interesting for testing purposes: all code using the browser object
|
||||
can be tested easily by mocking the relevant functions for the duration of the
|
||||
test.
|
||||
|
||||
It contains the following content:
|
||||
|
||||
.. list-table::
|
||||
|
||||
* - `addEventListener`
|
||||
- `cancelAnimationFrame`
|
||||
- `clearInterval`
|
||||
* - `clearTimeout`
|
||||
- `console`
|
||||
- `Date`
|
||||
* - `fetch`
|
||||
- `history`
|
||||
- `localStorage`
|
||||
* - `location`
|
||||
- `navigator`
|
||||
- `open`
|
||||
* - `random`
|
||||
- `removeEventListener`
|
||||
- `requestAnimationFrame`
|
||||
* - `sessionStorage`
|
||||
- `setInterval`
|
||||
- `setTimeout`
|
||||
* - `XMLHttpRequest`
|
||||
-
|
||||
-
|
||||
|
||||
.. _frontend/framework/debug_mode:
|
||||
|
||||
Debug mode
|
||||
|
Loading…
Reference in New Issue
Block a user