window_test.js
No description.

File Location

/goog/window/window_test.js


Public Protected Private

Global Functions

canOpenPopups()
Some tests should only run locally, because they will trigger popup blockers on http urls.
code »
continueAfterWindowLoaded(continueFnopt_numTries)
Uses setTimeout to keep checking if a new window has been loaded, and once it has, calls the given continuation function and then calls asyncTestCase.continueTesting() to resume the flow of the test.
Arguments:
continueFn : Function
Continuation function to be called when the new window has loaded.
opt_numTries : number=
Number of times this method has checked if the window has loaded, to prevent getting in an endless setTimeout loop. (Used internally, callers should omit.)
code »
testOpenBlank&continueFn()
No description.
code »
continueTestOpenWindow(noreferrerurlParam)
Helper callback to do asserts after the window opens.
Arguments:
noreferrer : boolean
Whether the noreferrer option is being tested.
urlParam : string
Url param appended to the url being opened.
code »
doTestOpenWindow(noreferrerurlParam)
Helper to kick off a test that opens a window and checks that the referrer is hidden if requested and the url is properly encoded/decoded.
Arguments:
noreferrer : boolean
Whether to test the noreferrer option.
urlParam : string
Url param to append to the url being opened.
code »
setUp()
No description.
code »
setUpPage()
No description.
code »
stripReferrer()
No description.
code »
tearDown()
No description.
code »
testOpenAmpersand()
No description.
code »
testOpenBlank()
No description.
code »
testOpenDoubleQuote()
No description.
code »
testOpenDoubleQuote&testOpenDoubleQuote()
No description.
code »
testOpenEncoded()
No description.
code »
testOpenEncodedHidingReferrer()
No description.
code »
testOpenEncodedPercent()
No description.
code »
testOpenEncodedPercentHidingReferrer()
No description.
code »
testOpenNotEncoded()
No description.
code »
testOpenNotEncodedHidingReferrer()
No description.
code »
testOpenSemicolon()
No description.
code »
testOpenSingleQuote()
No description.
code »
testTwoSemicolons()
No description.
code »

Global Variables

MAX_WIN_LOAD_TRIES :
No description.
Code »
REDIRECT_URL_PREFIX :
No description.
Code »
WIN_LOAD_TRY_TIMEOUT :
No description.
Code »
newWin :
No description.
Code »
newWinLoaded :
No description.
Code »
newWinLoaded :
No description.
Code »
winLoadCounter :
No description.
Code »

Directory window

File Reference