documentation/wowl_markdown_doc/browser.md
Géry Debongnie eff7c05465 [DOC] add master-wowl doc (UNFINISHED)
I know, the doc is still in md, it was only temporary. we will convert
it to rst someday
2021-05-31 15:29:27 +02:00

692 B

Browser

Overview

The browser object is a part of the environment. It contains all window API that perform some kind of side effects. This is useful when we need to disable/configure/modify/react to any call to these APIs. It is also necessary to be able to mock them properly in a test environment.

console.log(env.browser); // display the content of browser

Exported values

Here is a list of all entities available in the browser object:

  • Date
  • XMLHTTPRequest
  • clearInterval
  • clearTimeout
  • console
  • fetch
  • localStorage
  • location
  • random
  • requestAnimationFrame
  • setInterval
  • setTimeout