Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion content/developer/reference/frontend/framework_overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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
Expand Down