◆ TestJavaScriptCookies()
void FiftyOne.Pipeline.JavaScriptBuilderElementTests.CookiesTests.TestJavaScriptCookies | ( | bool | enableInConfig, |
bool | enableInEvidence, | ||
bool | expectCookie | ||
) |
Test various configurations for enabling cookies to verify that cookies are/aren't written for each configuration.
The source JavaScript contains code to set a cookie. The JSBuilder element should replace this if the config says that cookies are not enabled.
- Parameters
-
- enableInConfig - True if cookies are enabled in the element configuration.
- enableInEvidence - True if cookies are enabled in the evidence.
- expectCookie - True if the test should expect cookies to be enabled for this configuration.