plzwrk-0.0.0.10: A front-end framework

Copyright(c) Mike Solomon 2020
LicenseGPL-3
Maintainermike@meeshkan.com
Stabilityexperimental
PortabilityPOSIX, Windows
Safe HaskellNone
LanguageHaskell2010

Web.Framework.Plzwrk.MockJSVal

Description

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

data MockJSVal Source #

Constructors

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 
Instances
Show MockJSVal Source # 
Instance details

Defined in Web.Framework.Plzwrk.MockJSVal

defaultInternalBrowser :: IO (IORef MockBrowserInternal) Source #

makeMockBrowserWithContext :: IORef MockBrowserInternal -> IO (JSEnv Int) Source #