testCore
testCore
japgolly.webapputil.test
BinaryTestUtil
BinaryTestUtil
TestAjaxClient
Module
Module
Req
ResponseDsl
TestAjaxClient
TestHttpClient
Module
Module
ReqF
ResponseDsl
TestHttpClient
TestState
TestState
TestTimersJs
TestTimersJs
TestWebSocket
TestWebSocket
Message
ArrayBuffer
Blob
Text
Message
TestWebWorker
Client
Port
Server
TestWindowConfirm
TestWindowConfirm
Obs
TestDsl
TestWindowLocation
TestWindowLocation
TestWindowPrompt
testCore
/
japgolly.webapputil.test
/
TestAjaxClient
TestAjaxClient
class
TestAjaxClient
[F[_]](autoRespondInitially:
Boolean
) extends
AjaxClient
[
F
]
Companion
object
Graph
Supertypes
trait
AjaxClient
[
F
]
class
Object
trait
Matchable
class
Any
Type members
Value members
Type members
Types
final
type
Req
=
Req
{ type Codec =
F
; }
final
type
ReqOf
[P <:
AjaxProtocol
[
F
]] =
ReqOf
[
F
,
P
]
Value members
Concrete methods
def
addAutoResponse
(p:
AjaxProtocol
[
F
])(f:
ReqOf
[p] =>
Callback
):
Unit
def
addAutoResponsePF
(f:
PartialFunction
[
Req
,
Callback
]):
Unit
def
apply
(p:
AjaxProtocol
[
F
])(req:
RequestType
):
CallbackTo
[
AsyncCallback
[
Response
[
ResponseType
]]]
def
assertReqsSent
(expect:
Int
):
Unit
def
autoRespondTo
(req:
Req
):
Unit
def
autoRespondToLast
():
Unit
def
clear
():
Unit
override
def
invoker
(p:
AjaxProtocol
[
F
]):
ServerSideProcInvoker
[
RequestType
,
ErrorMsg
,
ResponseType
]
Definition Classes
AjaxClient
def
last
():
Req
def
nthLast
(n:
Int
):
Req
def
reset
():
Unit
def
respondToLast
(p:
AjaxProtocol
[
F
]):
ResponseDsl
[
ResponseType
,
Unit
]
Concrete fields
var
autoRespond
:
Boolean
var
autoResponseFallback
:
Req
=>
Callback
var
autoResponsePFs
:
List
[
PartialFunction
[
Req
,
Callback
]]
var
reqs
:
Vector
[
Req
]
var
timeoutMs
:
Long