safeurl_test.js
No description.

File Location

/goog/html/safeurl_test.js


Public Protected Private

Global Functions

assertBadUrl(url)
Assert that url fails sanitization.
Arguments:
url : string | !goog.string.TypedString
The URL to sanitize.
code »
assertGoodUrl(url)
Assert that url passes through sanitization unchanged.
Arguments:
url : string | !goog.string.TypedString
The URL to sanitize.
code »
assertSanitizeEncodesTo(urlexpected)
Asserts that goog.html.SafeUrl.unwrap returns the expected string when the SafeUrl has been constructed by passing the given url to goog.html.SafeUrl.sanitize.
Arguments:
url : string
The string to pass to goog.html.SafeUrl.sanitize.
expected : string
The string representation that goog.html.SafeUrl.unwrap should return.
code »
testSafeUrl()
No description.
code »
testSafeUrlSanitize_idempotentForSafeUrlArgument()
No description.
code »
testSafeUrlSanitize_percentEncodesUrl()
No description.
code »
testSafeUrlSanitize_validatesUrl()
No description.
code »
testUnwrap()
No description.
code »

Directory html

File Reference