summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/proxypac/proxy.pac
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2018-10-22 22:10:41 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2018-10-22 22:10:41 +0000
commit7430a9dae01f8d77a7fbbf163327ea65894cf8bb (patch)
tree1e7904a220ec809b83d2c0584bd3c5407a51d05a /tests/auto/widgets/proxypac/proxy.pac
parentf65c5fc155c9f6c3f880389a57b7652614627654 (diff)
parent34cd9bb6006b854ef8029448be10822b14a2b7ac (diff)
Merge "Merge remote-tracking branch 'origin/5.11' into 5.12" into refs/staging/5.12
Diffstat (limited to 'tests/auto/widgets/proxypac/proxy.pac')
-rw-r--r--tests/auto/widgets/proxypac/proxy.pac7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/widgets/proxypac/proxy.pac b/tests/auto/widgets/proxypac/proxy.pac
new file mode 100644
index 000000000..1d29847b9
--- /dev/null
+++ b/tests/auto/widgets/proxypac/proxy.pac
@@ -0,0 +1,7 @@
+function FindProxyForURL(url, host)
+{
+ if (shExpMatch(host, "*.proxy1.com")) return "PROXY localhost:5551";
+ if (shExpMatch(host, "*.proxy2.com")) return "PROXY localhost:5552";
+ return "PROXY proxy.url:8080";
+}
+