Home | History | Annotate | Download | only in test

Lines Matching refs:SCRIPT

107 #define SCRIPT(x) (currentPac = String16(x))
151 int result = resolver.SetPacScript(SCRIPT(DIRECT_JS));
167 int result = resolver.SetPacScript(SCRIPT(RETURN_EMPTY_STRING_JS));
182 int result = resolver.SetPacScript(SCRIPT(PASSTHROUGH_JS));
185 // The "FindProxyForURL" of this PAC script simply concatenates all of the
250 // Try using a PAC script which defines no "FindProxyForURL" function.
253 int result = resolver.SetPacScript(SCRIPT(NO_ENTRYPOINT_JS));
261 // Try loading a malformed PAC script.
264 int result = resolver.SetPacScript(SCRIPT(MISSING_CLOSE_BRACE_JS));
281 // Run a PAC script several times, which has side-effects.
284 int result = resolver.SetPacScript(SCRIPT(SIDE_EFFECTS_JS));
286 // The PAC script increments a counter each time we invoke it.
296 // Reload the script -- the javascript environment should be reset, hence
298 result = resolver.SetPacScript(SCRIPT(SIDE_EFFECTS_JS));
311 // Execute a PAC script which throws an exception in FindProxyForURL.
314 int result = resolver.SetPacScript(SCRIPT(UNHANDLED_EXCEPTION_JS));
330 int result = resolver.SetPacScript(SCRIPT(RETURN_UNICODE_JS));
344 int result = resolver.SetPacScript(SCRIPT(PAC_LIBRARY_UNITTEST_JS));
365 // Resolve should fail, as we are not yet initialized with a script.
370 result = resolver.SetPacScript(SCRIPT(DIRECT_JS));
378 resolver.SetPacScript(SCRIPT());
384 // Load a good script once more.
385 result = resolver.SetPacScript(SCRIPT(DIRECT_JS));
399 int result = resolver.SetPacScript(SCRIPT(BINDINGS_JS));
437 // Test calling a binding (myIpAddress()) from the script's global scope.
442 int result = resolver.SetPacScript(SCRIPT(BINDING_FROM_GLOBAL_JS));
447 // myIpAddress() got called during initialization of the script.
466 // Try loading a PAC script that ends with a comment and has no terminal
468 // that we add to the script's environment.
472 int result = resolver.SetPacScript(SCRIPT(ENDS_WITH_COMMENT_JS));
484 // Try loading a PAC script that ends with a statement and has no terminal
486 // that we add to the script's environment.
491 SCRIPT(ENDS_WITH_STATEMENT_NO_SEMICOLON_JS));
509 int result = resolver.SetPacScript(SCRIPT(DNS_FAIL_JS));