Copyright | (c) Mike Solomon 2020 |
---|---|
License | GPL-3 |
Maintainer | mike@meeshkan.com |
Stability | experimental |
Portability | POSIX, Windows |
Safe Haskell | None |
Language | Haskell2010 |
This module exports a mock browser called
defaultInternalBrowser
used in plzwrk's tests
and that can be used in your unit tests as well.
Documentation
MockJSElement Int String MockAttributes [MockJSVal] [LogEvent] | |
MockJSTextNode Int String [LogEvent] | |
MockJSFunction Int (MockJSVal -> IO ()) [LogEvent] | |
MockJSObject Int (HashMap String MockJSVal) [LogEvent] | |
MockJSString Int String [LogEvent] | |
MockJSNumber Int Double [LogEvent] | |
MockJSArray Int [MockJSVal] [LogEvent] | |
MockMouseEvent Int |
makeMockBrowser :: IO (Browserful Int) Source #
defaultInternalBrowser :: IO (IORef MockBrowserInternal) Source #
makeMockBrowserWithContext :: IORef MockBrowserInternal -> IO (Browserful Int) Source #