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 Int) [LogEvent] | |
MockJSString Int String [LogEvent] | |
MockJSDouble Int Double [LogEvent] | |
MockJSInt Int Int [LogEvent] | |
MockJSBool Int Bool [LogEvent] | |
MockJSByteString Int ByteString [LogEvent] | |
MockJSArray Int [Int] [LogEvent] | |
MockMouseEvent Int |
makeMockBrowser :: IO (Browserful Int) Source #
defaultInternalBrowser :: IO (IORef MockBrowserInternal) Source #
makeMockBrowserWithContext :: IORef MockBrowserInternal -> IO (Browserful Int) Source #