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] | |
MockJSFunction1 Int (MockJSVal -> IO ()) [LogEvent] | |
MockJSFunction2 Int (MockJSVal -> MockJSVal -> IO ()) [LogEvent] | |
MockJSFunction3 Int (MockJSVal -> MockJSVal -> 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 |
defaultInternalBrowser :: IO (IORef MockBrowserInternal) Source #