test-pac.html (514B)
1 <!DOCTYPE HTML> 2 <title>test behavior of PROXY configuration (PAC)</title> 3 <meta name="pac" content="resources/proxy.sub.pac"> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <script> 7 promise_test(async t => { 8 const response = await fetch('http://not-a-real-domain.wpt.test/infrastructure/resources/ok.txt'); 9 const text = await response.text(); 10 assert_equals(text, 'OK'); 11 }, 'test that PAC metadata is respected'); 12 </script>