[IMP] developer: list content of browser object (js)

closes odoo/documentation#1310

Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
This commit is contained in:
Géry Debongnie 2021-11-11 08:08:09 +00:00
parent 43d838d826
commit d761910466

View File

@ -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