channelrequest_test.js
No description.

File Location

/goog/labs/net/webchannel/channelrequest_test.js

Classes

MockWebChannelBase
Constructs a duck-type WebChannelBase that tracks the completed requests.

Public Protected Private

Enumerations

Global Functions

checkReachabilityEvents()
No description.
code »
createChannelRequest()
Creates a real ChannelRequest object, with some modifications for testability:
  • The channel is a mock channel.
  • The new watchdogTimeoutCallCount property tracks onWatchDogTimeout_() calls.
  • The timeout is set to WATCHDOG_TIME.
code »
mockChannel.createXhrIo()
No description.
code »
notifyServerReachabilityEvent()
No description.
code »
setUp()
No description.
code »
tearDown()
No description.
code »
testActiveXBlocked()
No description.
code »
testDuplicatedRandomParams()
No description.
code »
testNetworkEvents()
Run through the lifecycle of a long lived request, checking that the right network events are reported.
code »
testNetworkEvents_throttleReadyStateChange()
Test throttling of readystatechange events.
code »
testRequestTimeout()
Make sure that the request "completes" with an error when the timeout expires.
code »
testRequestTimeoutWithUnexpectedException()
No description.
code »

Global Variables

reachabilityEvents :
No description.
Code »

Directory webchannel

File Reference