Skip to content

Commit d761910

Browse files
committed
[IMP] developer: list content of browser object (js)
closes #1310 Signed-off-by: Géry Debongnie (ged) <[email protected]>
1 parent 43d838d commit d761910

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

content/developer/reference/frontend/framework_overview.rst

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ Browser Object
553553
==============
554554

555555
The javascript framework also provides a special object ``browser`` that
556-
provides access to all browser APIs, like ``location``, ``localStorage``
556+
provides access to many browser APIs, like ``location``, ``localStorage``
557557
or ``setTimeout``. For example, here is how one could use the
558558
``browser.setTimeout`` function:
559559

@@ -568,6 +568,32 @@ It is mostly interesting for testing purposes: all code using the browser object
568568
can be tested easily by mocking the relevant functions for the duration of the
569569
test.
570570

571+
It contains the following content:
572+
573+
.. list-table::
574+
575+
* - `addEventListener`
576+
- `cancelAnimationFrame`
577+
- `clearInterval`
578+
* - `clearTimeout`
579+
- `console`
580+
- `Date`
581+
* - `fetch`
582+
- `history`
583+
- `localStorage`
584+
* - `location`
585+
- `navigator`
586+
- `open`
587+
* - `random`
588+
- `removeEventListener`
589+
- `requestAnimationFrame`
590+
* - `sessionStorage`
591+
- `setInterval`
592+
- `setTimeout`
593+
* - `XMLHttpRequest`
594+
-
595+
-
596+
571597
.. _frontend/framework/debug_mode:
572598

573599
Debug mode

0 commit comments

Comments
 (0)