Skip to content

Latest commit

 

History

History
 
 

stubbing-spying__navigator

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Stubbing Navigator

This is an example showing how to stub navigator.cookieEnabled.

The application

The application index.html displays a different message depending on whether the user has cookies enabled via the navigator.cookieEnabled value.

The tests

Window open stub

More info