webchannelbase_test.js
No description.

File Location

/goog/labs/net/webchannel/webchannelbase_test.js


Public Protected Private

Global Functions

assertHasBackChannel()
No description.
code »
assertHasForwardChannel()
No description.
code »
completeBackChannel()
No description.
code »
completeBackTestConnection()
No description.
code »
completeForwardChannel(opt_serverVersionopt_hostPrefix)
No description.
Arguments:
opt_serverVersion : number=
No description.
opt_hostPrefix : string=
No description.
code »
completeForwardTestConnection()
No description.
code »
completeTestConnection()
No description.
code »
connect(opt_serverVersionopt_hostPrefixopt_uriPrefixopt_spdyEnabled)
No description.
Arguments:
opt_serverVersion : number=
No description.
opt_hostPrefix : string=
No description.
opt_uriPrefix : string=
No description.
opt_spdyEnabled : boolean=
No description.
code »
connectForwardChannel(opt_serverVersionopt_hostPrefixopt_uriPrefixopt_spdyEnabled)
No description.
Arguments:
opt_serverVersion : number=
No description.
opt_hostPrefix : string=
No description.
opt_uriPrefix : string=
No description.
opt_spdyEnabled : boolean=
No description.
code »
debugToWindow()
No description.
code »
disconnect()
No description.
code »
formatArrayOfMaps()
Helper function to return a formatted string representing an array of maps.
code »
getSingleForwardRequest()
No description.
code »
MockChannelRequest.getXhr()
No description.
code »
hasBackChannel()
No description.
code »
hasDeadBackChannelTimer()
No description.
code »
hasForwardChannel()
No description.
code »
goog.labs.net.webChannel.requestStats.notifyStatEvent()
No description.
code »
goog.labs.net.webChannel.requestStats.notifyTimingEvent()
No description.
code »
outgoingMapsAwaitsResponse()
No description.
code »
receive()
No description.
code »
requestFailedClosesChannel()
No description.
code »
response()
No description.
code »
responseActiveXBlocked()
No description.
code »
responseDone()
No description.
code »
responseNoBackchannel(opt_lastArrayIdSentFromServeropt_outstandingDataSize)
No description.
Arguments:
opt_lastArrayIdSentFromServer : number=
No description.
opt_outstandingDataSize : number=
No description.
code »
responseRequestFailed(opt_statusCode)
No description.
Arguments:
opt_statusCode : number=
No description.
code »
responseTimeout()
No description.
code »
responseUnknownSessionId()
No description.
code »
sendMap(keyvalueopt_context)
No description.
Arguments:
key : string
No description.
value : string
No description.
opt_context : string=
No description.
code »
sendMapOnce()
No description.
code »
sendMapTwice()
No description.
code »
setFailFastWhileRetryXhrIsInFlight()
No description.
code »
setFailFastWhileWaitingForRetry()
No description.
code »
setUp()
No description.
code »
setUpPage()
No description.
code »
stubNetUtils()
Stubs goog.labs.net.webChannel.netUtils to always time out. It maintains the contract given by goog.labs.net.webChannel.netUtils.testNetwork, but always times out (calling callback(false)). stubNetUtils should be called in tests that require it before a call to testNetwork happens. It is reset at tearDown.
code »
stubSpdyCheck(spdyEnabled)
Stubs goog.labs.net.webChannel.ForwardChannelRequestPool.isSpdyEnabled_ to manage the max pool size for the forward channel.
Arguments:
spdyEnabled : boolean
Whether SPDY is enabled for the test.
code »
tearDown()
No description.
code »
testActiveXBlockedEventReportedOnlyOnce()
No description.
code »
testBackChannelRemainsEstablished_afterDoubleSendMap()
No description.
code »
testBackChannelRemainsEstablished_afterSingleSendMap()
No description.
code »
testConnect()
No description.
code »
testConnect_backChannelEstablished()
No description.
code »
testConnect_notOkToMakeRequestForBind()
No description.
code »
testConnect_notOkToMakeRequestForTest()
No description.
code »
testConnect_overrideServerHostPrefix()
No description.
code »
testConnect_withClientHostPrefix()
No description.
code »
testConnect_withServerHostPrefix()
No description.
code »
testConnect_withServerVersion()
No description.
code »
testCreateXhrIo()
No description.
code »
testFormatArrayOfMaps()
No description.
code »
testMultipleResponsesWithArraysMissing()
No description.
code »
testOnlyRetryOnceBasedOnResponse()
No description.
code »
testOutgoingMapsAwaitsResponse()
No description.
code »
testOutgoingMapsAwaitsResponseWithSpdyEnabled()
No description.
code »
testPathAbsolute()
No description.
code »
testPathRelative()
No description.
code »
testPathWithHost()
No description.
code »
testReceive()
No description.
code »
testReceive_andSendMap()
No description.
code »
testReceive_twice()
No description.
code »
testRequestFailedClosesChannel()
No description.
code »
testRequestFailedClosesChannelWithSpdyEnabled()
No description.
code »
testResponseInBufferedMode()
No description.
code »
testResponseNoBackchannel()
No description.
code »
testResponseNoBackchannelPostNotBeforeBackchannel()
No description.
code »
testResponseNoBackchannelWithNoBackchannel()
No description.
code »
testResponseNoBackchannelWithStartTimer()
No description.
code »
testResponseWithArraysMissing()
No description.
code »
testResponseWithArraysMissingAndLiveChannel()
No description.
code »
testResponseWithBigOutstandingData()
No description.
code »
testResponseWithEvilData()
No description.
code »
testResponseWithGarbage()
No description.
code »
testResponseWithGarbageInArray()
No description.
code »
testResponseWithNoArraySent()
No description.
code »
testSendMap()
No description.
code »
testSendMapWithSpdyEnabled()
No description.
code »
testSendMap_andReceive()
No description.
code »
testSendMap_twice()
No description.
code »
testSendMap_twiceWithSpdyEnabled()
No description.
code »
testSetFailFastAtRetryCount()
Makes sure that setting fail fast while not retrying doesn't cause a failure.
code »
testSetFailFastWhileRetryXhrIsInFlight()
Make sure that dropping the forward channel retry limit below the retry count reports an error, and prevents another request from firing.
code »
testSetFailFastWhileRetryXhrIsInFlightWithSpdyEnabled()
No description.
code »
testSetFailFastWhileWaitingForRetry()
Make sure that dropping the forward channel retry limit below the retry count reports an error, and prevents another request from firing.
code »
testSetFailFastWhileWaitingForRetryWithSpdyEnabled()
No description.
code »
testSpdyLimitOption()
No description.
code »
testStatEventReportedOnlyOnce()
No description.
code »
testStatEventReportedOnlyOnce_onNetworkDown()
No description.
code »
testStatEventReportedOnlyOnce_onNetworkUp()
No description.
code »
testTimingEvent()
No description.
code »
testUndeliveredMaps_clearsPendingMapsAfterNotifying()
No description.
code »
testUndeliveredMaps_doesNotNotifyIfNothingWasSent()
No description.
code »
testUndeliveredMaps_doesNotNotifyWhenSuccessful()
No description.
code »
testUndeliveredMaps_notifiesWithContext()
No description.
code »
testUndeliveredMaps_onPingTimeout()
No description.
code »
testUndeliveredMaps_serviceUnavailable()
No description.
code »

Directory webchannel

File Reference