iframepollingtransport_test.js
No description.

File Location

/goog/net/xpc/iframepollingtransport_test.js


Public Protected Private

Global Functions

createMockPeerWindow&mockPeer.document.body.appendChild()
No description.
code »
closeWindow()
Emulates closing the specified window by clearing frames, document and location.
code »
createChannel(rolechannelNamefromHostNamefromWindowtoHostNametoWindow)
Creates a channel with the specified configuration, using frame polling.
Arguments:
role : !goog.net.xpc.CrossPageChannelRole
The channel role.
channelName : string
The channel name.
fromHostName : string
The host name of the window hosting the channel.
fromWindow : !Object
The window hosting the channel.
toHostName : string
The host name of the peer window.
toWindow : !Object
The peer window.
code »
createMockPeerWindow(url)
Creates a mock window to use as a peer. The peer window will host the frame elements.
Arguments:
url : string
The peer window's initial URL.
code »
createMockWindow(url)
Creates a mock window.
Arguments:
url : string
The window's initial URL.
code »
createMockWindow&mockLocation.replace()
No description.
code »
createMockWindow&mockWindow.setTimeout()
No description.
code »
setUp()
No description.
code »
tearDown()
No description.
code »
testConnect()
Tests that connection happens normally and callbacks are invoked.
code »
testSend_innerPeerClosed()
Tests that closing the inner peer does not cause an error.
code »
testSend_innerPeerClosing()
Tests that partially closing the inner peer does not cause an error.
code »
testSend_innerToOuter()
Tests that messages are successfully delivered to the outer peer.
code »
testSend_outerPeerClosed()
Tests that closing the outer peer does not cause an error.
code »
testSend_outerPeerClosing()
Tests that partially closing the outer peer does not cause an error.
code »
testSend_outerToInner()
Tests that messages are successfully delivered to the inner peer.
code »

Global Variables

innerChannel :
No description.
Code »
outerChannel :
No description.
Code »

Directory xpc

File Reference